service_phone.go 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. package v1
  2. import (
  3. "property-applete-gateway/param/base"
  4. "property-applete-gateway/pb/v1"
  5. )
  6. type ServicePhoneClassAddBody struct {
  7. ClassName string `form:"class_name" json:"class_name"`
  8. Enable bool `form:"enable" json:"enable"`
  9. }
  10. type ServicePhoneClassAddRequest struct {
  11. base.Header
  12. ServicePhoneClassAddBody
  13. }
  14. type ServicePhoneClassAddResponse struct{
  15. base.Result
  16. Data v1.ServicePhoneClassAddReply `json:"data"`
  17. }
  18. type ServicePhoneClassUpdateBody struct {
  19. ClassName string `form:"class_name" json:"class_name"`
  20. Enable bool `form:"enable" json:"enable"`
  21. Id int64 `form:"id"`
  22. }
  23. type ServicePhoneClassUpdateRequest struct{
  24. base.Header
  25. ServicePhoneClassUpdateBody
  26. }
  27. type ServicePhoneClassUpdateResponse struct{
  28. base.Result
  29. }
  30. type ServicePhoneClassDelQuery struct {
  31. Id int64 `form:"id"`
  32. }
  33. type ServicePhoneClassDelRequest struct{
  34. base.Header
  35. ServicePhoneClassDelQuery
  36. }
  37. type ServicePhoneClassDelResponse struct{
  38. base.Result
  39. }
  40. type ServicePhoneClassListQuery struct {
  41. Page int64 `form:"page" json:"page"`
  42. PageSize int64 `form:"page_size" json:"page_size"`
  43. }
  44. type ServicePhoneClassListRequest struct{
  45. base.Header
  46. ServicePhoneClassListQuery
  47. }
  48. type ServicePhoneClassListResponse struct{
  49. base.Result
  50. Data v1.ServicePhoneClassListReply `json:"data"`
  51. }
  52. type ServicePhoneAddBody struct {
  53. Name string `form:"name" json:"name"`
  54. Phone string `form:"phone" json:"phone"`
  55. ClassId int64 `form:"class_id" json:"class_id"`
  56. Enable bool `form:"enable" json:"enable"`
  57. }
  58. type ServicePhoneAddRequest struct {
  59. base.Header
  60. ServicePhoneAddBody
  61. }
  62. type ServicePhoneAddResponse struct{
  63. base.Result
  64. Data v1.ServicePhoneAddReply `json:"data"`
  65. }
  66. type ServicePhoneUpdateBody struct {
  67. Name string `form:"name" json:"name"`
  68. Phone string `form:"phone" json:"phone"`
  69. Enable bool `form:"enable" json:"enable"`
  70. Id int64 `form:"id"`
  71. }
  72. type ServicePhoneUpdateRequest struct{
  73. base.Header
  74. ServicePhoneUpdateBody
  75. }
  76. type ServicePhoneUpdateResponse struct{
  77. base.Result
  78. }
  79. type ServicePhoneDelQuery struct {
  80. Id int64 `form:"id"`
  81. }
  82. type ServicePhoneDelRequest struct{
  83. base.Header
  84. ServicePhoneDelQuery
  85. }
  86. type ServicePhoneDelResponse struct{
  87. base.Result
  88. }
  89. type ServicePhoneListQuery struct {
  90. Page int64 `form:"page" json:"page"`
  91. PageSize int64 `form:"page_size" json:"page_size"`
  92. ClassId int64 `form:"class_id" json:"class_id"`
  93. }
  94. type ServicePhoneListRequest struct{
  95. base.Header
  96. ServicePhoneListQuery
  97. }
  98. type ServicePhoneListResponse struct{
  99. base.Result
  100. Data v1.ServicePhoneListReply `json:"data"`
  101. }