jyinfo.api 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. type (
  2. //信息发布
  3. pubInfoReq {
  4. Title string `json:"title"`
  5. MsgType int64 `json:"msgType,options=1|2|3"`
  6. RelatedId string `json:"relatedId,optional"`
  7. Code string `json:"code,optional"`
  8. Province string `json:"province,optional"`
  9. City string `json:"city,optional"`
  10. Industry []string `json:"industry,optional"`
  11. Buyer string `json:"buyer,optional"`
  12. Budget float64 `json:"budget,optional"`
  13. Winner string `json:"winner,optional"`
  14. Amount float64 `json:"amount,optional"`
  15. Detail string `json:"detail"`
  16. Attach map[string]interface{} `json:"attach,optional"`
  17. Contact Contact `json:"contact"`
  18. AppId string `json:"appId"`
  19. EntId int64 `json:"entId"`
  20. UserId string `json:"userId"`
  21. ValidityTime string `json:"validityTime,optional"`
  22. Phone string `json:"phone"`
  23. EntName string `json:"entName,optional"`
  24. }
  25. Contact {
  26. Person string `json:"person"`
  27. Phone string `json:"phone"`
  28. Overt int64 `json:"overt"`
  29. }
  30. myPublishListReq {
  31. UserId string `json:"userId"`
  32. AppId string `json:"appId"`
  33. Match string `json:"match,optional"`
  34. MsgType int64 `json:"msgType,optional"`
  35. ReviewStatus string `json:"reviewStatus,optional"`
  36. PageSize int `json:"pageSize,optional,default=10"`
  37. PageIndex int `json:"pageIndex,optional,default=1"`
  38. EntId int64 `json:"entId"`
  39. }
  40. myPublishCommonReq {
  41. MsgId string `json:"msgId"`
  42. UserId string `json:"userId"`
  43. Type int64 `json:"type"` //处理信息类型:([前端用户:]0:获取发布信息详情(默认);1:删除发布的信息;)(()[管理后台:]1:管理后台一键敏感词过滤;1:管理后台一键发布)
  44. MsgType int64 `json:"msgType,optional"`
  45. AppId string `json:"appId"`
  46. }
  47. reviewCommonReq {
  48. AppId string `json:"appId"`
  49. MsgId string `json:"msgId"`
  50. Type int64 `json:"type"`
  51. }
  52. infoListReq {
  53. AppId string `json:"appId"`
  54. MsgType int `json:"msgType,optional"`
  55. PhoneType int `json:"phoneType,optional"`
  56. Phone string `json:"phone,optional"`
  57. ReviewStatus int `json:"reviewStatus,optional"`
  58. ApplyStartTime string `json:"applyStartTime,optional"`
  59. ApplyEndTime string `json:"applyEndTime,optional"`
  60. PageSize int64 `json:"pageSize"`
  61. PageIndex int64 `json:"pageIndex"`
  62. IsDel string `json:"isDel,optional"`
  63. Published int64 `json:"published,optional"`
  64. }
  65. infoExamineReq {
  66. MsgId string `json:"msgId"`
  67. AppId string `json:"appId"`
  68. ReviewStatus int64 `json:"reviewStatus"`
  69. ReviewDetail string `json:"reviewDetail,optional"`
  70. MsgType int64 `json:"msgType"`
  71. Auditor string `json:"auditor"`
  72. }
  73. assProjecctReq {
  74. UserId string `json:"userId"`
  75. AppId string `json:"appId"`
  76. Match string `json:"match"`
  77. MsgType int64 `json:"msgType"`
  78. EntId int64 `json:"entId"`
  79. Type int64 `json:"type"`
  80. }
  81. pubSupplyInfoReq {
  82. Keywords string `json:"keywords"`
  83. SearchType string `json:"searchType"`
  84. Province string `json:"province,optional"`
  85. City string `json:"city,optional"`
  86. Time string `json:"time,optional"`
  87. Status string `json:"status,optional"`
  88. PageSize int64 `json:"pageSize,optional"`
  89. PageIndex int64 `json:"pageIndex,optional"`
  90. }
  91. supplyInfoDetailReq {
  92. MsgId string `json:"msgId"`
  93. MsgType int64 `json:"msgType"`
  94. }
  95. //附件上传
  96. uploadReq {
  97. FileName string `json:"fileName,optional"`
  98. }
  99. //附件删除
  100. infoFileDelReq {
  101. FileName string `json:"fileName,optional"` //附件名称
  102. FileId string `json:"fileId,optional"` //附件key
  103. }
  104. commonReq {
  105. UserId string `json:"userId,optional"`
  106. EntId int64 `json:"entId,optional"`
  107. AppId string `json:"appId"`
  108. Match string `json:"match,optional"`
  109. MsgType int64 `json:"msgType,optional"`
  110. }
  111. commonRes {
  112. Err_code int `json:"error_code"`
  113. Err_msg string `json:"error_msg"`
  114. Data interface{} `json:"data"`
  115. }
  116. )
  117. service Info-api {
  118. //信息发布(招标信息、采购信息)
  119. @handler pubInfo
  120. post /jyinfo/publish/biddingInfo (pubInfoReq) returns (commonRes)
  121. //信息发布(供应信息)
  122. @handler pubSupplyInfo
  123. post /jyinfo/publish/supplyInfo (pubInfoReq) returns (commonRes)
  124. //供应信息详情
  125. @handler supplyInfoDetail
  126. post /jyinfo/supplyInfoDetail (supplyInfoDetailReq) returns (commonRes)
  127. //供应信息搜索
  128. @handler supplySearch
  129. post /jyinfo/supplySearch (pubSupplyInfoReq) returns (commonRes)
  130. //已信息发布数量
  131. @handler pubInfoCount
  132. post /jyinfo/publishStatus (commonReq) returns (commonRes)
  133. //关联项目联想
  134. @handler assProjecct
  135. post /jyinfo/pushedRelated (assProjecctReq) returns (commonRes)
  136. //获取省市列表
  137. @handler getProvince
  138. post /jyinfo/getArea returns (commonRes)
  139. //获取行业列表
  140. @handler getIndustry
  141. post /jyinfo/getIndustry returns (commonRes)
  142. //我的发布列表
  143. @handler myPublishList
  144. post /jyinfo/myPublishList (myPublishListReq) returns (commonRes)
  145. //我发布的信息详情
  146. @handler myPublishDetail
  147. post /jyinfo/myPublishDetail (myPublishCommonReq) returns (commonRes)
  148. //删除我发布的信息
  149. @handler delMyPublish
  150. post /jyinfo/delMyPublish (myPublishCommonReq) returns (commonRes)
  151. //信息审核状态查询
  152. @handler reviewStatus
  153. post /jyinfo/reviewStatus (reviewCommonReq) returns (commonRes)
  154. //附件上传
  155. @handler upload
  156. post /jyinfo/infoFile/upload (uploadReq) returns (commonRes)
  157. //附件删除
  158. @handler infoFileDel
  159. post /jyinfo/infoFileDel (infoFileDelReq) returns (commonRes)
  160. //管理后台获取信息列表
  161. @handler infoList
  162. post /jyinfo/manage/infoList (infoListReq) returns (commonRes)
  163. //管理后台信息详情
  164. @handler infoDetail
  165. post /jyinfo/manage/infoDetail (reviewCommonReq) returns (commonRes)
  166. //管理后台审核
  167. @handler infoExamine
  168. post /jyinfo/manage/infoExamine (infoExamineReq) returns (commonRes)
  169. //管理后台审核
  170. @handler organFrozen
  171. post /jyinfo/manage/organFrozen (commonReq) returns (commonRes)
  172. //一键敏感词过滤Filter&一键发布Publish
  173. @handler oneKeyAction
  174. post /jyinfo/manage/oneKeyAction (myPublishCommonReq) returns (commonRes)
  175. }