department.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package v1
  2. import (
  3. "property-applete-gateway/param/base"
  4. "property-applete-gateway/pb/v1"
  5. )
  6. type DepartmentAddBody struct {
  7. DepartmentName string `form:"department_name" json:"department_name"`
  8. Desc string `form:"desc"`
  9. }
  10. type DepartmentAddRequest struct {
  11. base.Header
  12. DepartmentAddBody
  13. }
  14. type DepartmentAddResponse struct {
  15. base.Result
  16. Data v1.DepartmentAddReply `json:"data"`
  17. }
  18. type DepartmentUpdateBody struct {
  19. DepartmentName string `form:"department_name" json:"department_name"`
  20. Desc string `form:"desc"`
  21. Id int64 `form:"id"`
  22. }
  23. type DepartmentUpdateRequest struct {
  24. base.Header
  25. DepartmentUpdateBody
  26. }
  27. type DepartmentUpdateResponse struct {
  28. base.Result
  29. }
  30. type DepartmentDelQuery struct {
  31. Id int64 `form:"id"`
  32. }
  33. type DepartmentDelRequest struct {
  34. base.Header
  35. DepartmentDelQuery
  36. }
  37. type DepartmentDelResponse struct {
  38. base.Result
  39. }
  40. type DepartmentListQuery struct {
  41. Page int64 `form:"page"`
  42. PageSize int64 `form:"page_size"`
  43. }
  44. type DepartmentListRequest struct {
  45. base.Header
  46. DepartmentListQuery
  47. }
  48. type DepartmentListResponse struct {
  49. base.Result
  50. Data v1.DepartmentListReply `json:"data"`
  51. }