userCenter.api 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. syntax = "v1"
  2. type (
  3. response {
  4. Error_code int64 `json:"error_code"` //响应代码
  5. Error_msg string `json:"error_msg"` //响应消息
  6. Data string `json:"data"` //响应内容
  7. }
  8. //
  9. resp {
  10. Error_code int64 `json:"error_code"` //响应代码
  11. Error_msg string `json:"error_msg"` //响应消息
  12. Data interface{} `json:"data"`
  13. }
  14. //机构审核入参
  15. examineReq {
  16. EntId int64 `json:"entId"` //企业id
  17. AuthType string `json:"authType"` //审核状态 2审核通过 3审核不通过
  18. Reason string `json:"reason,optional"` //不通过原因
  19. AuditUser string `json:"auditUser"` //审核人
  20. ExamineId string `json:"examineId"` //审核id 认证记录表主键id
  21. }
  22. //查看企业状态入参
  23. checkEntReq {
  24. EntId int64 `json:"entId"` //企业id
  25. }
  26. //认证企业 入参
  27. authEntReq {
  28. Name string `json:"name"`
  29. CreditCode string `json:"creditCode"`
  30. AreaNumber string `json:"areaNumber"`
  31. Business string `json:"business"`
  32. OfficialLetter string `json:"officialLetter"`
  33. OrganizationType string `json:"organizationType"` //机构类型 1投标企业 2招标采购单位 3厂商 4招标代理机构 5经销商 6服务提供商 7其他
  34. ComPanyType string `json:"comPanyType"` //机构性质 1企业 2党政机关事业单位及其他
  35. AuthName string `json:"authName"` //联系人姓名
  36. AuthPhone string `json:"authPhone"` //联系人手机号
  37. Phone string `json:"phone"` //注册手机号
  38. EntId int64 `json:"entId,optional"`
  39. }
  40. //企业列表
  41. entListReq {
  42. Name string `json:"name,optional"` //企业名称
  43. PageNum string `json:"pageNum,optional"` //页码,不传默认第一页 第一页为0
  44. PageSize string `json:"pageSize,optional"`
  45. CreditCode string `json:"creditCode,optional"`
  46. CreateStartTime string `json:"createStartTime,optional"`
  47. CreateEndTime string `json:"createEndTime,optional"`
  48. AuthStatus string `json:"authStatus,optional"`
  49. ValidStartTime string `json:"validStartTime,optional"`
  50. ValidEndTime string `json:"validEndTime,optional"`
  51. FrozenStatus string `json:"frozenStatus,optional"`
  52. RegPhone string `json:"regPhone,optional"`
  53. AuthPhone string `json:"authPhone,optional"`
  54. }
  55. //企业列表出参
  56. entListResp {
  57. Error_code int64 `json:"error_code"` //响应代码
  58. Error_msg string `json:"error_msg"` //响应消息
  59. Data EntListData `json:"data"`
  60. }
  61. EntListData {
  62. Count int64 `json:"count"`
  63. PageSize int64 `json:"pageSize"`
  64. List []*EntList `json:"list"`
  65. }
  66. EntList {
  67. Id int64 `json:"id"`
  68. ComPanyType int64 `json:"comPanyType"` // 机构性质 1企业 2党政机关事业单位及其他
  69. Name string `json:"name"` //机构名称
  70. OrganizationType int64 `json:"organizationType"` //机构类型 1企业 2党政机关事业单位及其他
  71. Createtime string `json:"createTime"` //创建时间
  72. ValidTime string `json:"validTime"` //有效截至日期
  73. AuthStatus int64 `json:"authStatus"` //认证状态
  74. FrozenStatus int64 `json:"frozenStatus"` //冻结状态 1正常 0冻结
  75. }
  76. //审核列表入参
  77. ExamineListReq {
  78. Name string `json:"name,optional"` //机构名称
  79. AuthPhone string `json:"authPhone,optional"` //联系人手机号
  80. RegPhone string `json:"regPhone,optional"` //注册人手机号
  81. AuthType string `json:"authType,optional"` //审核状态 1:待审核 2:审核通过 3:审核不通过
  82. AuthStartTime string `json:"authStartTime,optional"` //申请开始时间
  83. AuthEndTime string `json:"authEndTime,optional"` //申请结束时间
  84. PageNum string `json:"pageNum,optional"` //页码
  85. PageSize string `json:"pageSize,optional"` //每页展示条数
  86. }
  87. //审核列表出参
  88. ExamineListResp {
  89. Error_code int64 `json:"error_code"`
  90. Error_msg string `json:"error_msg"`
  91. Data ExamineListData `json:"data"`
  92. }
  93. ExamineListData {
  94. Count int64 `json:"count"`
  95. PageSize int64 `json:"pageSize"`
  96. List []*ExamineList `json:"list"`
  97. }
  98. ExamineList {
  99. Id int64 `json:"id"` //机构id
  100. EntId int64 `json:"entId"` //企业id
  101. ComPanyType int64 `json:"comPanyType"` // 机构性质 1企业 2党政机关事业单位及其他
  102. Name string `json:"name"` //机构名称
  103. CreditCode string `json:"creditCode"` //统一社会信用代码
  104. AuthPhone string `json:"authPhone"` //联系人手机号
  105. ApplyTime string `json:"applyTime"` //申请时间戳
  106. AuthType int64 `json:"authType"` //审核状态 1:待审核 2:审核通过 3:审核不通过
  107. RegPhone string `json:"regPhone"` //注册人手机号
  108. }
  109. //企业信息出参
  110. EntInfoResp {
  111. Error_code int64 `json:"error_code"`
  112. Error_msg string `json:"error_msg"`
  113. Data *EntInfo `json:"data"`
  114. }
  115. EntInfo {
  116. Name string `json:"name"`
  117. OrganizationType int64 `json:"organizationType"`
  118. CreditCode string `json:"creditCode"`
  119. CompanyType int64 `json:"companyType"`
  120. AreaNumber string `json:"areaNumber"`
  121. Business string `json:"business"`
  122. OfficialLetter string `json:"officialLetter"`
  123. AuthStartTime string `json:"createTime"`
  124. AuthEndTime string `json:"validTime"`
  125. ForzenStatus int64 `json:"forzenStatus"`
  126. AuthState int64 `json:"authStatus"`
  127. ContactPerson string `json:"contactPerson"`
  128. ContactPhone string `json:"contactPhone"`
  129. AuthType int64 `json:"authType"` //审核状态 1:待审核 2:审核通过 3:审核不通过
  130. }
  131. //审核入参
  132. ExamineInfoReq {
  133. ExamineId int64 `json:"examineId"`
  134. }
  135. //审核详情出参
  136. ExamineInfoResp {
  137. Error_code int64 `json:"error_code"`
  138. Error_msg string `json:"error_msg"`
  139. Data *ExamineInfo `json:"data"`
  140. }
  141. ExamineInfo {
  142. Name string `json:"name"`
  143. OrganizationType int64 `json:"organizationType"`
  144. CreditCode string `json:"creditCode"`
  145. CompanyType int64 `json:"companyType"`
  146. AreaNumber string `json:"areaNumber"`
  147. Business string `json:"business"`
  148. OfficialLetter string `json:"officialLetter"`
  149. AuthState int64 `json:"authStatus"`
  150. ContactPerson string `json:"contactPerson"`
  151. ContactPhone string `json:"contactPhone"`
  152. RegPhone string `json:"regPhone"`
  153. AuthTime string `json:"authTime"`
  154. AuthReason string `json:"authReason"`
  155. AuditUser string `json:"auditUser"`
  156. AuditTime string `json:"auditTime"`
  157. }
  158. //冻结解冻入参
  159. UpdateEntReq {
  160. EntId int64 `json:"entId"` //企业id
  161. UpdateType int64 `json:"updateType"` //1-冻结 2-解冻
  162. }
  163. )
  164. service userCenter-api {
  165. @handler Examine
  166. post /userCenter/ent/examine (examineReq) returns (resp)
  167. @handler CheckEnt
  168. post /userCenter/ent/check (checkEntReq) returns (resp)
  169. @handler EntAuth
  170. post /userCenter/ent/auth (authEntReq) returns(resp)
  171. @handler EntList
  172. post /userCenter/ent/list (entListReq)returns (entListResp)
  173. @handler ExamineList
  174. post /userCenter/ent/examineList(ExamineListReq) returns (ExamineListResp)
  175. @handler EntInfo
  176. post /userCenter/ent/info (checkEntReq)returns(EntInfoResp)
  177. @handler ExamineInfo
  178. post /userCenter/ent/examineInfo(ExamineInfoReq) returns(ExamineInfoResp)
  179. @handler UpdateEnt
  180. post /userCenter/ent/update(UpdateEntReq)returns(resp)
  181. }