household.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package v1
  2. import (
  3. "property-system-gateway/param/base"
  4. "property-system-gateway/pb/v1"
  5. )
  6. type HouseholdApproveBody struct {
  7. Status bool `form:"status"`
  8. Feedback string `form:"feedback"`
  9. Id int64 `form:"id"`
  10. }
  11. type HouseholdApproveRequest struct {
  12. base.Header
  13. HouseholdApproveBody
  14. }
  15. type HouseholdApproveResponse struct {
  16. base.Result
  17. }
  18. type HouseholdListQuery struct {
  19. Page int64 `form:"page" json:"page"`
  20. PageSize int64 `form:"page_size" json:"page_size"`
  21. ApproveStatus int32 `form:"approve_status" json:"approve_status"`
  22. UserType int32 `form:"user_type" json:"user_type"`
  23. Name string `form:"name" json:"name"`
  24. }
  25. type HouseholdListRequest struct {
  26. base.Header
  27. HouseholdListQuery
  28. }
  29. type HouseholdListResponse struct {
  30. base.Result
  31. Data v1.HouseholdListReply `json:"data"`
  32. }
  33. type HouseholdUserListQuery struct {
  34. Page int64 `form:"page" json:"page"`
  35. PageSize int64 `form:"page_size" json:"page_size"`
  36. UserType int32 `form:"user_type" json:"user_type"`
  37. Name string `form:"name" json:"name"`
  38. HouseId int64 `form:"house_id" json:"house_id"`
  39. GateId string `form:"gate_id" json:"gate_id"`
  40. BuildingId int64 `form:"building_id" json:"building_id"`
  41. UnitId int64 `form:"unit_id" json:"unit_id"`
  42. Phone string `form:"phone" json:"phone"`
  43. }
  44. type HouseholdUserListRequest struct {
  45. base.Header
  46. HouseholdUserListQuery
  47. }
  48. type HouseholdUserListResponse struct {
  49. base.Result
  50. Data v1.GardenHouseholdUserListReply `json:"data"`
  51. }