userCenter.api 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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 string `form:"entId"` //企业id
  17. AuthType string `form:"authType"` //审核状态 2审核通过 3审核不通过
  18. Reason string `form:"reason,optional"` //不通过原因
  19. AuditUser string `form:"auditUser"` //审核人
  20. ExamineId string `form:"examineId"` //审核id 认证记录表主键id
  21. }
  22. //查看企业状态入参
  23. checkEntReq {
  24. EntId int64 `form:"entId"` //企业id
  25. }
  26. //认证企业 入参
  27. authEntReq {
  28. Name string `form:"name"`
  29. CreditCode string `form:"creditCode"`
  30. AreaNumber string `form:"areaNumber"`
  31. Business string `form:"business"`
  32. OfficialLetter string `form:"officialLetter"`
  33. OrganizationType string `form:"organizationType"` //机构类型 1投标企业 2招标采购单位 3厂商 4招标代理机构 5经销商 6服务提供商 7其他
  34. ComPanyType string `form:"comPanyType"` //机构性质 1企业 2党政机关事业单位及其他
  35. AuthName string `form:"authName"` //联系人姓名
  36. AuthPhone string `form:"authPhone"` //联系人手机号
  37. RegPhone string `form:"regPhone"` //注册手机号
  38. EntId string `form:"entId,optional"`
  39. }
  40. //企业列表
  41. entListReq {
  42. Name string `form:"name,optional"` //企业名称
  43. PageNum string `form:"pageNum,optional"` //页码,不传默认第一页 第一页为0
  44. PageSize string `form:"pageSize,optional"`
  45. CreditCode string `form:"creditCode,optional"`
  46. CreateStartTime string `form:"createStartTime,optional"`
  47. CreateEndTime string `form:"createEndTime,optional"`
  48. AuthStatus string `form:"authStatus,optional"`
  49. ValidStartTime string `form:"validStartTime,optional"`
  50. ValidEndTime string `form:"validEndTime,optional"`
  51. FrozenStatus string `form:"frozenStatus,optional"`
  52. RegPhone string `form:"regPhone,optional"`
  53. AuthPhone string `form:"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 `form:"name,optional"` //机构名称
  79. AuthPhone string `form:"authPhone,optional"` //联系人手机号
  80. RegPhone string `form:"regPhone,optional"` //注册人手机号
  81. AuthType string `form:"authType,optional"` //审核状态 1:待审核 2:审核通过 3:审核不通过
  82. AuthStartTime string `form:"authStartTime,optional"` //申请开始时间
  83. AuthEndTime string `form:"authEndTime,optional"` //申请结束时间
  84. PageNum string `form:"pageNum,optional"` //页码
  85. PageSize string `form:"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. }
  108. )
  109. service userCenter-api {
  110. @handler Examine
  111. post /userCenter/ent/examine (examineReq) returns (resp)
  112. @handler CheckEnt
  113. post /userCenter/ent/check (checkEntReq) returns (resp)
  114. @handler EntAuth
  115. post /userCenter/ent/auth (authEntReq) returns(resp)
  116. @handler EntList
  117. post /userCenter/ent/list (entListReq)returns (entListResp)
  118. @handler ExamineList
  119. post /userCenter/ent/examineList(ExamineListReq) returns (ExamineListResp)
  120. }