house_rent.go 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. package v1
  2. import (
  3. "property-household-gateway/param/base"
  4. pb_v1 "property-household-gateway/pb/v1"
  5. v1 "property-household-gateway/pb/v1"
  6. )
  7. type HouseRentApplyBody struct {
  8. // 朝向
  9. Direction int32 `form:"direction" json:"direction"`
  10. // 几卫
  11. WcCount int64 `form:"wc_count" json:"wc_count"`
  12. // 1 精装 2 简装 3 清水
  13. Decorating int32 `form:"decorating" json:"decorating"`
  14. // 联系人
  15. Contacter string `form:"contacter" json:"contacter"`
  16. // 联系人电话
  17. ContactPhone string `form:"contact_phone" json:"contact_phone"`
  18. // 1 月付 2 季付 3 半年付 4 年付
  19. PayTimeType int32 `form:"pay_time_type" json:"pay_time_type"`
  20. // 1 整租 2 合租 3 转租
  21. RentType int32 `form:"rent_type" json:"rent_type"`
  22. // 1 全部 2 主卧 3 次卧
  23. RoomType int32 `form:"room_type" json:"room_type"`
  24. // 房间面积
  25. RoomArea float64 `form:"room_area" json:"room_area"`
  26. // 月租
  27. RentPrice int64 `form:"rent_price" json:"rent_price"`
  28. // 押金
  29. Desposit int64 `form:"desposit" json:"desposit"`
  30. // 可入住时间
  31. InTime int64 `form:"in_time" json:"in_time"`
  32. // 服务费
  33. ServicePrice int64 `form:"service_price" json:"service_price"`
  34. // 中介费
  35. IntermediaryPrice int64 `form:"intermediary_price" json:"intermediary_price"`
  36. // 基础设施 从低到高分别表示床 天然气 暖气 宽带 冰箱 衣柜 沙发 空调 电视机 热水器 洗衣机
  37. BaseConf int64 `form:"base_conf" json:"base_conf"`
  38. // 特色配置 从低到高分别表示 智能门锁 wifi 近地铁 停车位 独卫 私人阳台 首次出租
  39. SpecialConf int64 `form:"special_conf" json:"special_conf"`
  40. // 简介
  41. Desc string `form:"desc" json:"desc"`
  42. // 房屋图片
  43. HousePic []string `form:"house_pic" json:"house_pic"`
  44. // 房屋证件图片
  45. CertPic []string `form:"cert_pic" json:"cert_pic"`
  46. // 业主uid
  47. HouseholdUid int64 `form:"household_uid" json:"household_uid"`
  48. GardenId int64 `form:"garden_id" json:"garden_id"`
  49. HouseId int64 `form:"house_id" json:"house_id"`
  50. }
  51. type HouseRentApplyRequest struct {
  52. base.Header
  53. HouseRentApplyBody
  54. }
  55. type HouseRentApplyResponse struct {
  56. base.Result
  57. Data pb_v1.HouseRentApplyReply `json:"data"`
  58. }
  59. type HouseRentUpdateBody struct {
  60. HouseId int64 `form:"house_id" json:"house_id"`
  61. // 朝向
  62. Direction int32 `form:"direction" json:"direction"`
  63. WcCount int64 `form:"wc_count" json:"wc_count"`
  64. // 1 精装 2 简装 3 清水
  65. Decorating int32 `form:"decorating" json:"decorating"`
  66. // 联系人
  67. Contacter string `form:"contacter" json:"contacter"`
  68. // 联系人电话
  69. ContactPhone string `form:"contact_phone" json:"contact_phone"`
  70. // 1 月付 2 季付 3 半年付 4 年付
  71. PayTimeType int32 `form:"pay_time_type" json:"pay_time_type"`
  72. // 1 整租 2 合租 3 转租
  73. RentType int32 `form:"rent_type" json:"rent_type"`
  74. // 1 全部 2 主卧 3 次卧
  75. RoomType int32 `form:"room_type" json:"room_type"`
  76. // 房间面积
  77. RoomArea float64 `form:"room_area" json:"room_area"`
  78. // 月租
  79. RentPrice int64 `form:"rent_price" json:"rent_price"`
  80. // 押金
  81. Desposit int64 `form:"desposit" json:"desposit"`
  82. // 可入住时间
  83. InTime int64 `form:"in_time" json:"in_time"`
  84. // 服务费
  85. ServicePrice int64 `form:"service_price" json:"service_price"`
  86. // 中介费
  87. IntermediaryPrice int64 `form:"intermediary_price" json:"intermediary_price"`
  88. // 基础设施 从低到高分别表示床 天然气 暖气 宽带 冰箱 衣柜 沙发 空调 电视机 热水器 洗衣机
  89. BaseConf int64 `form:"base_conf" json:"base_conf"`
  90. // 特色配置 从低到高分别表示 智能门锁 wifi 近地铁 停车位 独卫 私人阳台 首次出租
  91. SpecialConf int64 `form:"special_conf" json:"special_conf"`
  92. // 简介
  93. Desc string `form:"desc" json:"desc"`
  94. // 房屋图片
  95. HousePic []string `form:"house_pic" json:"house_pic"`
  96. // 房屋证件图片
  97. CertPic []string `form:"cert_pic" json:"cert_pic"`
  98. Id int64 `form:"id" json:"id"`
  99. GardenId int64 `form:"garden_id" json:"garden_id"`
  100. }
  101. type HouseRentUpdateRequest struct {
  102. base.Header
  103. HouseRentUpdateBody
  104. }
  105. type HouseRentUpdateResponse struct {
  106. base.Result
  107. }
  108. type HouseRentDownBody struct {
  109. Id int64 `form:"id" json:"id"`
  110. GardenId int64 `form:"garden_id" json:"garden_id"`
  111. }
  112. type HouseRentDownRequest struct {
  113. base.Header
  114. HouseRentDownBody
  115. }
  116. type HouseRentDownResponse struct {
  117. base.Result
  118. }
  119. type HouseRentListQuery struct {
  120. ProvinceCode string `form:"province_code" json:"province_code"`
  121. CityCode string `form:"city_code" json:"city_code"`
  122. AreaCode string `form:"area_code" json:"area_code"`
  123. StreetCode string `form:"street_code" json:"street_code"`
  124. RoomCount int64 `form:"room_count" json:"room_count"`
  125. HallCount int64 `form:"hall_count" json:"hall_count"`
  126. WcCount int64 `form:"wc_count" json:"wc_count"`
  127. HouseholdUid int64 `form:"household_uid" json:"household_uid"`
  128. RentPriceGreater int64 `form:"rent_price_greater" json:"rent_price_greater"`
  129. RentPriceLess int64 `form:"rent_price_less" json:"rent_price_less"`
  130. ApproveStatus int64 `form:"approve_status" json:"approve_status"`
  131. Page int64 `form:"page" json:"page"`
  132. PageSize int64 `form:"page_size" json:"page_size"`
  133. BaseConf int64 `form:"base_conf" json:"base_conf"`
  134. SpecialConf int64 `form:"special_conf" json:"special_conf"`
  135. GardenId int64 `form:"garden_id" json:"garden_id"`
  136. IsMe bool `form:"is_me" json:"is_me"`
  137. GardenName string `form:"garden_name" json:"garden_name"`
  138. BuildingType int32 `form:"building_type" json:"building_type"`
  139. BuildingYearGreater int64 `form:"building_year_greater" json:"building_year_greater"`
  140. BuildingYearLess int64 `form:"building_year_less" json:"building_year_less"`
  141. }
  142. type HouseRentListRequest struct {
  143. base.Header
  144. HouseRentListQuery
  145. }
  146. type HouseRentListResponse struct {
  147. base.Result
  148. Data pb_v1.HouseRentListReply `json:"data"`
  149. }
  150. type HouseRentManagerListQuery struct {
  151. RentId int64 `form:"rent_id" json:"rent_id"`
  152. GardenId int64 `form:"garden_id" json:"garden_id"`
  153. }
  154. type HouseRentManagerListRequest struct {
  155. base.Header
  156. HouseRentManagerListQuery
  157. }
  158. type HouseRentManagerListResponse struct {
  159. base.Result
  160. Data pb_v1.HouseRentManagerListReply `json:"data"`
  161. }
  162. type HouseRentAppointmentDelQuery struct {
  163. Id int64 `form:"id"`
  164. }
  165. type HouseRentAppointmentDelRequest struct {
  166. base.Header
  167. HouseRentAppointmentDelQuery
  168. }
  169. type HouseRentAppointmentDelResponse struct {
  170. base.Result
  171. }
  172. type HouseRentAppointmentListQuery struct {
  173. Page int64 `form:"page" json:"page"`
  174. PageSize int64 `form:"page_size" json:"page_size"`
  175. }
  176. type HouseRentAppointmentListRequest struct {
  177. base.Header
  178. HouseRentAppointmentListQuery
  179. }
  180. type HouseRentAppointmentListResponse struct {
  181. base.Result
  182. Data pb_v1.HouseRentAppointmentListReply `json:"data"`
  183. }
  184. type HouseRentAppointmentAddBody struct {
  185. GardenId int64 `form:"garden_id" json:"garden_id"`
  186. RentId int64 `form:"rent_id" json:"rent_id"`
  187. Name string `form:"name" json:"name"`
  188. Phone string `form:"phone" json:"phone"`
  189. Gender int32 `form:"gender" json:"gender"`
  190. // 预约时间 0 代表随时看房
  191. AppointmentTime int64 `form:"appointment_time" json:"appointment_time"`
  192. }
  193. type HouseRentAppointmentAddRequest struct {
  194. base.Header
  195. HouseRentAppointmentAddBody
  196. }
  197. type HouseRentAppointmentAddResponse struct {
  198. base.Result
  199. }
  200. type GardenHouseRentInfoQuery struct {
  201. GardenId int64 `form:"garden_id" json:"garden_id"`
  202. }
  203. type GardenHouseRentInfoRequest struct {
  204. base.Header
  205. GardenHouseRentInfoQuery
  206. }
  207. type GardenHouseRentInfoResponse struct {
  208. base.Result
  209. Data v1.GardenHouseRentInfoReply `json:"data"`
  210. }