household.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package v1
  2. import (
  3. "property-applete-gateway/param/base"
  4. "property-applete-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. }
  40. type HouseholdUserListRequest struct {
  41. base.Header
  42. HouseholdUserListQuery
  43. }
  44. type HouseholdUserListResponse struct {
  45. base.Result
  46. Data v1.GardenHouseholdUserListReply `json:"data"`
  47. }