household.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package v1
  2. import (
  3. "property-household-gateway/param/base"
  4. "property-household-gateway/pb/v1"
  5. )
  6. type HouseholdApplyBody struct {
  7. // 1业主 2家人 3租客
  8. UserType int32 `form:"user_type" json:"user_type"`
  9. Phone string `form:"phone" json:"phone"`
  10. // 姓名
  11. Name string `form:"name" json:"name"`
  12. // 房屋id
  13. HouseId int64 `form:"house_id" json:"house_id"`
  14. // 1 身份证 2 护照
  15. IdType int32 `form:"id_type" json:"id_type"`
  16. // 证件号
  17. IdNumber string `form:"id_number" json:"id_number"`
  18. // 附件
  19. Appendix []string `form:"appendix" json:"appendix"`
  20. // 小区id
  21. GardenId int64 `form:"garden_id" json:"garden_id"`
  22. }
  23. type HouseholdApplyRequest struct {
  24. base.Header
  25. HouseholdApplyBody
  26. }
  27. type HouseholdApplyResponse struct {
  28. base.Result
  29. Data v1.HouseholdApplyReply `json:"data"`
  30. }
  31. type HouseholdApproveBody struct {
  32. Status bool `form:"status" json:"status"`
  33. Feedback string `form:"feedback" json:"feedback"`
  34. }
  35. type HouseholdApproveRequest struct {
  36. base.Header
  37. HouseholdApproveBody
  38. }
  39. type HouseholdApproveResponse struct {
  40. base.Result
  41. }
  42. type HouseholdListQuery struct {
  43. ApproveStatus int32 `form:"approve_status" json:"approve_status"`
  44. }
  45. type HouseholdListRequest struct {
  46. base.Header
  47. HouseholdListQuery
  48. }
  49. type HouseholdListResponse struct {
  50. base.Result
  51. Data v1.HouseholdListReply `json:"data"`
  52. }
  53. type GardenHouseholdDelHouseQuery struct {
  54. GardenId int64 `form:"garden_id" json:"garden_id"`
  55. HouseId int64 `form:"house_id" json:"house_id"`
  56. }
  57. type GardenHouseholdDelHouseRequest struct {
  58. base.Header
  59. GardenHouseholdDelHouseQuery
  60. }
  61. type GardenHouseholdDelHouseResponse struct {
  62. base.Result
  63. }