project.go 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. // Copyright 2019 github.com. All rights reserved.
  2. // Use of this source code is governed by github.com.
  3. package v1
  4. import (
  5. "smart-enterprise-management-gateway/param/base"
  6. pb_v1 "smart-enterprise-management-gateway/pb/v1"
  7. )
  8. type ProjectAddBody struct {
  9. // 项目名称
  10. Name string `form:"name" json:"name"`
  11. // 项目效果图
  12. ProjectEffectPic []string `form:"project_effect_pic" json:"project_effect_pic"`
  13. // 工程所在地
  14. Location string `form:"location" json:";location"`
  15. // 安监备案号
  16. SafetyRecordNo string `form:"safety_record_no" json:"safety_record_no"`
  17. // 项目负责人
  18. ProjectLeader string `form:"project_leader" json:"project_leader"`
  19. // 项目负责人电话
  20. Phone string `form:"phone" json:"phone"`
  21. // 项目平面图
  22. ProjectPlan []string `form:"project_plan" json:"project_plan"`
  23. // 项目功能
  24. ProjectFunction string `form:"project_function" json:"project_function"`
  25. // 项目类型
  26. ProjectType string `form:"project_type" json:"project_type"`
  27. // 工程造价(万)
  28. Price float64 `form:"price" json:"price"`
  29. // 项目介绍
  30. Desc string `form:"desc" json:"desc"`
  31. //建筑面积(单位m2)
  32. CoveredArea float64 `form:"covered_area" json:"covered_area"`
  33. // 总层数
  34. TotalLevel int32 `form:"total_level" json:"total_level"`
  35. // 建筑层数 eg:主楼地上23层,地下2层;裙楼地上32层,地下3层
  36. BuildingStorey string `form:"building_storey" json:"building_storey"`
  37. // 施工单位
  38. Construction string `form:"construction" json:"construction"`
  39. // 建设单位
  40. Development string `form:"development" json:"development"`
  41. // 监理单位
  42. Oversee string `form:"oversee" json:"oversee"`
  43. // 设计单位
  44. Design string `form:"design" json:"design"`
  45. // 勘察单位
  46. Exploration string `form:"exploration" json:"exploration"`
  47. // 经度
  48. Lon float64 `form:"lon" json:"lon"`
  49. // 纬度
  50. Lat float64 `form:"lat" json:"lat"`
  51. StartDay int64 `form:"start_day" json:"start_day"`
  52. EndDay int64 `form:"end_day" json:"end_day"`
  53. }
  54. type ProjectAddRequest struct {
  55. base.Header
  56. ProjectAddBody
  57. }
  58. type ProjectAddResponse struct {
  59. base.Result
  60. }
  61. type ProjectListQuery struct {
  62. Page int32 `form:"page"`
  63. Filter string `form:"filter"`
  64. FilterStatus string `form:"filter_status"`
  65. PageSize int32 `form:"page_size"`
  66. }
  67. type ProjectListRequest struct {
  68. base.Header
  69. ProjectListQuery
  70. }
  71. type ProjectListResponse struct {
  72. base.Result
  73. Data pb_v1.ProjectListReply `json:"data"`
  74. }
  75. type ProjectUserListQuery struct {
  76. Page int32 `form:"page"`
  77. Filter string `form:"filter"`
  78. }
  79. type ProjectUserListRequest struct {
  80. base.Header
  81. ProjectUserListQuery
  82. }
  83. type ProjectUserListResponse struct {
  84. base.Result
  85. Data pb_v1.ProjectUserListReply `json:"data"`
  86. }
  87. type EnableProjectUserBody struct {
  88. Id int64 `form:"id"`
  89. Enable bool `form:"enable"`
  90. }
  91. type EnableProjectUserRequest struct {
  92. base.Header
  93. EnableProjectUserBody
  94. }
  95. type EnableProjectUserResponse struct{
  96. base.Result
  97. }
  98. type ProjectUserPasswordResetBody struct {
  99. // 账号id
  100. Id int64 `form:"id"`
  101. Password string `form:"password"`
  102. }
  103. type ProjectUserPasswordResetRequest struct{
  104. base.Header
  105. ProjectUserPasswordResetBody
  106. }
  107. type ProjectUserPasswordResetResponse struct {
  108. base.Result
  109. }
  110. type ProjectDistrictRequest struct {
  111. base.Header
  112. }
  113. type ProjectDistrictResponse struct {
  114. base.Result
  115. Data pb_v1.ProjectDistrictReply `json:"data"`
  116. }
  117. type ProjectUpdateBody struct {
  118. Id int64 `json:"id" form:"id"`
  119. Name string `json:"name" form:"name"`
  120. Location string `json:"location" form:"location"`
  121. SafetyRecordNo string `json:"safety_record_no" form:"safety_record_no"`
  122. ProjectLeader string `json:"project_leader" form:"project_leader"`
  123. Phone string `json:"phone" form:"phone"`
  124. ProjectNo string `json:"project_no" form:"project_no"`
  125. ProjectPlan []string `json:"project_plan" form:"project_plan"`
  126. ProjectFunction string `json:"project_function" form:"project_function"`
  127. ProjectType string `json:"project_type" form:"project_type"`
  128. Price float64 `json:"price" form:"price"`
  129. Desc string `json:"desc" form:"desc"`
  130. CoveredArea float64 `json:"covered_area" form:"covered_area"`
  131. TotalLevel int32 `json:"total_level" form:"total_level"`
  132. BuildingStorey string `json:"building_storey" form:"building_storey"`
  133. Construction string `json:"construction" form:"construction"`
  134. Development string `json:"development" form:"development"`
  135. Oversee string `json:"oversee" form:"oversee"`
  136. Design string `json:"design" form:"design"`
  137. Exploration string `json:"exploration" form:"exploration"`
  138. Lon float64 `json:"lon" form:"lon"`
  139. Lat float64 `json:"lat" form:"lat"`
  140. ProjectEffectPic []string `json:"project_effect_pic" form:"project_effect_pic"`
  141. StartDay int64 `json:"start_day" form:"start_day"`
  142. EndDay int64 `json:"end_day" form:"end_day"`
  143. }
  144. type ProjectUpdateRequest struct {
  145. base.Header
  146. ProjectUpdateBody
  147. }
  148. type ProjectUpdateResponse struct {
  149. base.Result
  150. }
  151. type ProjectInfoPath struct {
  152. Id int64 `uri:"id"`
  153. }
  154. type ProjectInfoRequest struct {
  155. base.Header
  156. ProjectInfoPath
  157. }
  158. type ProjectInfoResponse struct {
  159. base.Result
  160. Data pb_v1.ProjectInfoReply `json:"data"`
  161. }
  162. type ProjectDelPath struct {
  163. Id int64 `uri:"id"`
  164. }
  165. type ProjectDelRequest struct {
  166. base.Header
  167. ProjectDelPath
  168. }
  169. type ProjectDelResponse struct {
  170. base.Result
  171. }
  172. type ProjectFinishPath struct {
  173. Id int64 `uri:"id"`
  174. }
  175. type ProjectFinishRequest struct {
  176. base.Header
  177. ProjectFinishPath
  178. }
  179. type ProjectFinishResponse struct {
  180. base.Result
  181. }