house_rent.go 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. package v1
  2. import (
  3. "property-applete-gateway/param/base"
  4. pb_v1 "property-applete-gateway/pb/v1"
  5. )
  6. type HouseRentApplyBody struct {
  7. // 房屋id
  8. HouseId int64 `form:"house_id" json:"house_id"`
  9. // 朝向
  10. Direction int32 `form:"direction" json:"direction"`
  11. // 几卫
  12. WcCount int64 `form:"wc_count" json:"wc_count"`
  13. // 1 精装 2 简装 3 清水
  14. Decorating int32 `form:"decorating" json:"decorating"`
  15. // 联系人
  16. Contacter string `form:"contacter" json:"contacter"`
  17. // 联系人电话
  18. ContactPhone string `form:"contact_phone" json:"contact_phone"`
  19. // 1 月付 2 季付 3 半年付 4 年付
  20. PayTimeType int32 `form:"pay_time_type" json:"pay_time_type"`
  21. // 1 整租 2 合租 3 转租
  22. RentType int32 `form:"rent_type" json:"rent_type"`
  23. // 1 全部 2 主卧 3 次卧
  24. RoomType int32 `form:"room_type" json:"room_type"`
  25. // 房间面积
  26. RoomArea float64 `form:"room_area" json:"room_area"`
  27. // 月租
  28. RentPrice int64 `form:"rent_price" json:"rent_price"`
  29. // 押金
  30. Desposit int64 `form:"desposit" json:"desposit"`
  31. // 可入住时间
  32. InTime int64 `form:"in_time" json:"in_time"`
  33. // 服务费
  34. ServicePrice int64 `form:"service_price" json:"service_price"`
  35. // 中介费
  36. IntermediaryPrice int64 `form:"intermediary_price" json:"intermediary_price"`
  37. // 基础设施 从低到高分别表示床 天然气 暖气 宽带 冰箱 衣柜 沙发 空调 电视机 热水器 洗衣机
  38. BaseConf int64 `form:"base_conf" json:"base_conf"`
  39. // 特色配置 从低到高分别表示 智能门锁 wifi 近地铁 停车位 独卫 私人阳台 首次出租
  40. SpecialConf int64 `form:"special_conf" json:"special_conf"`
  41. // 简介
  42. Desc string `form:"desc" json:"desc"`
  43. // 房屋图片
  44. HousePic []string `form:"house_pic" json:"house_pic"`
  45. // 房屋证件图片
  46. CertPic []string `form:"cert_pic" json:"cert_pic"`
  47. // 业主uid
  48. //HouseholdUid int64 `form:"household_uid" json:"household_uid"`
  49. }
  50. type HouseRentApplyRequest struct {
  51. base.Header
  52. HouseRentApplyBody
  53. }
  54. type HouseRentApplyResponse struct {
  55. base.Result
  56. Data pb_v1.HouseRentApplyReply `json:"data"`
  57. }
  58. type HouseRentUpdateBody struct {
  59. // 房屋id
  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. // 业主uid
  99. //HouseholdUid int64 `form:"household_uid" json:"household_uid"`
  100. Id int64 `form:"id" json:"id"`
  101. }
  102. type HouseRentUpdateRequest struct {
  103. base.Header
  104. HouseRentUpdateBody
  105. }
  106. type HouseRentUpdateResponse struct {
  107. base.Result
  108. }
  109. type HouseRentApproveBody struct {
  110. Id int64 `form:"id" json:"id"`
  111. Status bool `form:"status" json:"status"`
  112. Feedback string `form:"feedback" json:"feedback"`
  113. }
  114. type HouseRentApproveRequest struct {
  115. base.Header
  116. HouseRentApproveBody
  117. }
  118. type HouseRentApproveResponse struct {
  119. base.Result
  120. }
  121. type HouseRentDownBody struct {
  122. Id int64 `form:"id" json:"id"`
  123. }
  124. type HouseRentDownRequest struct {
  125. base.Header
  126. HouseRentDownBody
  127. }
  128. type HouseRentDownResponse struct {
  129. base.Result
  130. }
  131. type HouseRentListQuery struct {
  132. ProvinceCode string `form:"province_code" json:"province_code"`
  133. CityCode string `form:"city_code" json:"city_code"`
  134. AreaCode string `form:"area_code" json:"area_code"`
  135. StreetCode string `form:"street_code" json:"street_code"`
  136. RoomCount int64 `form:"room_count" json:"room_count"`
  137. HallCount int64 `form:"hall_count" json:"hall_count"`
  138. WcCount int64 `form:"wc_count" json:"wc_count"`
  139. HouseholdUid int64 `form:"household_uid" json:"household_uid"`
  140. RentPriceGreater int64 `form:"rent_price_greater" json:"rent_price_greater"`
  141. RentPriceLess int64 `form:"rent_price_less" json:"rent_price_less"`
  142. ApproveStatus int64 `form:"approve_status" json:"approve_status"`
  143. Page int64 `form:"page" json:"page"`
  144. PageSize int64 `form:"page_size" json:"page_size"`
  145. BaseConf int64 `form:"base_conf" json:"base_conf"`
  146. SpecialConf int64 `form:"special_conf" json:"special_conf"`
  147. }
  148. type HouseRentListRequest struct {
  149. base.Header
  150. HouseRentListQuery
  151. }
  152. type HouseRentListResponse struct {
  153. base.Result
  154. Data pb_v1.GardenHouseRentListReply `json:"data"`
  155. }
  156. type HouseRentAddManagerBody struct {
  157. ManagerUid int64 `form:"manager_uid" json:"manager_uid"`
  158. RentId int64 `form:"rent_id" json:"rent_id"`
  159. }
  160. type HouseRentAddManagerRequest struct {
  161. base.Header
  162. HouseRentAddManagerBody
  163. }
  164. type HouseRentAddManagerResponse struct {
  165. base.Result
  166. Data pb_v1.HouseRentAddManagerReply `json:"data"`
  167. }
  168. type HouseRentDelManagerQuery struct {
  169. Id int64 `form:"id" json:"id"`
  170. }
  171. type HouseRentDelManagerRequest struct {
  172. base.Header
  173. HouseRentDelManagerQuery
  174. }
  175. type HouseRentDelManagerResponse struct {
  176. base.Result
  177. }
  178. type HouseRentManagerListQuery struct {
  179. RentId int64 `form:"rent_id" json:"rent_id"`
  180. }
  181. type HouseRentManagerListRequest struct {
  182. base.Header
  183. HouseRentManagerListQuery
  184. }
  185. type HouseRentManagerListResponse struct {
  186. base.Result
  187. Data pb_v1.HouseRentManagerListReply `json:"data"`
  188. }
  189. type HouseRentAppointmentDelQuery struct {
  190. Id int64 `form:"id"`
  191. }
  192. type HouseRentAppointmentDelRequest struct {
  193. base.Header
  194. HouseRentAppointmentDelQuery
  195. }
  196. type HouseRentAppointmentDelResponse struct {
  197. base.Result
  198. }
  199. type HouseRentAppointmentListQuery struct {
  200. Page int64 `form:"page" json:"page"`
  201. PageSize int64 `form:"page_size" json:"page_size"`
  202. RentId int64 `form:"rent_id" json:"rent_id"`
  203. HouseName string `form:"house_name" json:"house_name"`
  204. }
  205. type HouseRentAppointmentListRequest struct {
  206. base.Header
  207. HouseRentAppointmentListQuery
  208. }
  209. type HouseRentAppointmentListResponse struct {
  210. base.Result
  211. Data pb_v1.HouseRentAppointmentListReply
  212. }