bxcore.api 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. syntax = "v1"
  2. info (
  3. title: "剑鱼核心模块" // TODO: add title
  4. desc: "标讯搜索、标讯详情、参标逻辑等"// TODO: add description
  5. author: "wangshan"
  6. email: "wangshan@topnet.net.cn"
  7. )
  8. type (
  9. searchReq {
  10. UserType string `path:"userType,optional"`
  11. AppId string `header:"appId"`
  12. UserId string `header:"userId,optional"`
  13. Phone string `header:"phone,optional"`
  14. NewUserId string `header:"newUserId,optional"`
  15. EntId int64 `header:"entId,optional"`
  16. EntUserId int64 `header:"entUserId,optional"`
  17. PageNum int64 `json:"pageNum,optional"`
  18. PageSize int64 `json:"pageSize,optional"`
  19. Province string `json:"province,optional"`
  20. City string `json:"city,optional"`
  21. Subtype string `json:"subtype,optional"`
  22. TopType string `json:"toptype,optional"`
  23. PublishTime string `json:"publishTime,optional"`
  24. SelectType string `json:"selectType,optional"`
  25. Price string `json:"price,optional"`
  26. Industry string `json:"industry,optional"`
  27. BuyerClass string `json:"buyerClass,optional"`
  28. BuyerTel string `json:"buyerTel,optional"`
  29. WinnerTel string `json:"winnerTel,optional"`
  30. FileExists string `json:"fileExists,optional"`
  31. SearchGroup int64 `json:"searchGroup,optional"`
  32. SearchMode int64 `json:"searchMode,optional"`
  33. WordsMode int64 `json:"wordsMode,optional"`
  34. KeyWords string `json:"keyWords,optional"`
  35. AdditionalWords string `json:"additionalWords,optional"`
  36. ExclusionWords string `json:"exclusionWords,optional"`
  37. BidField string `json:"bidField,optional"` //医疗领域化信息
  38. AccountId string `header:"accountId,optional"` //账户id
  39. PositionType string `header:"positionType,optional"` //职位类型 0个人 1企业
  40. PositionId string `header:"positionId,optional"` //职位id
  41. MgoUserId string `header:"mgoUserId,optional"` //原userId
  42. }
  43. //
  44. commonResp {
  45. Err_code int64 `json:"error_code"`
  46. Err_msg string `json:"error_msg"`
  47. Data interface{} `json:"data"`
  48. }
  49. //
  50. searchLimitReq {
  51. AppId string `header:"appId,optional"` //appid
  52. TimeOut int64 `json:"timeOut,optional"` //过滤过期时间
  53. Count int64 `json:"count,optional"` //并发量
  54. Flag int64 `json:"flag,optional"` //开关 1:打开;-1:关闭;-2:重置
  55. Percentage int64 `json:"percentage,optional"` //付费用户占比
  56. SearchType string `path:"searchType"` //get|update|
  57. }
  58. //参标项目
  59. baseParam {
  60. EntId int64 `header:"entId,optional"` // 企业id
  61. EntUserId int64 `header:"entUserId,optional"` // 企业下用户id
  62. PositionType int64 `header:"positionType,optional"` // 职位类型 0个人 1企业
  63. PositionId int64 `header:"positionId,optional"` //职位id
  64. AccountId int64 `header:"accountId,optional"` //账户id
  65. MgoUserId string `header:"mgoUserId,optional"` //原userId
  66. AppId string `header:"appId,optional"` //剑鱼10000
  67. UserId string `header:"userId,optional"` //用户id
  68. NewUserId int64 `header:"newUserId,optional"` //base_user_id
  69. EntAccountId int64 `header:"entAccountId,optional"` //企业账户id
  70. Phone string `header:"phone,optional"`
  71. }
  72. // 列表数据参标信息请求参数
  73. participateShowReq {
  74. Ids string `json:"ids"` // 标讯id 逗号分割
  75. baseParam
  76. }
  77. // 详情页参标信息请求参数
  78. participateInfoReq {
  79. Sid string `json:"sid"` // 标讯id
  80. baseParam
  81. }
  82. // 投标状态更新请求参数
  83. updateBidStatusReq {
  84. BidType int64 `json:"bidType"` // 投标类型 1-直接投标 2-渠道投标
  85. BidStage []string `json:"bidStage,optional"` // 投标项目阶段 ["未报名","已报名"...]
  86. IsWin int64 `json:"isWin,optional"` // 是否中标 0-未选择 1-是 2-否
  87. ChannelName string `json:"channelName,optional"` // 渠道名称
  88. ChannelPerson string `json:"channelPerson,optional"` // 联系人
  89. ChannelPhone string `json:"channelPhone,optional"` //联系电话
  90. Winner string `json:"winner,optional"` // 中标单位
  91. Sid string `json:"sid"` // 标讯id
  92. baseParam
  93. }
  94. // 获取投标状态信息
  95. participateContentReq {
  96. Sid string `json:"sid"` // 标讯id
  97. baseParam
  98. }
  99. // 参标操作记录请求参数
  100. participateRecordsReq {
  101. Sid string `json:"sid"` // 标讯id
  102. PageNum int64 `json:"pageNum,default=1"` // 页码
  103. PageSize int64 `json:"pageSize,default=100"` // 每页条数
  104. baseParam
  105. }
  106. // 当前部门/企业下参标人员信息
  107. participatePersonsReq {
  108. baseParam
  109. ProjectId string `json:"projectId,optional"` //项目id
  110. }
  111. //投标状态更新:投标类型-投标项目阶段
  112. BidTypeReq {
  113. Name string `json:"name,optional"`
  114. Content []string `json:"content,optional"`
  115. }
  116. //消息提醒设置:
  117. RemindRuleReq {
  118. BidState string `json:"bidState,optional"` //投标规则类型;直接投标;渠道投标;
  119. Remainder int64 `json:"remainder,optional"` //距离投标截止日期需要多久开始提醒 单位h
  120. Node string `json:"node,optional"` //那个节点进行消息提醒;和投标项目阶段绑定
  121. }
  122. //参标设置信息接口
  123. participateSetUpInfoReq {
  124. baseParam
  125. SetAction string `json:"setAction,optional"` //默认空;U:更新
  126. IsAllow string `json:"isAllow,optional"` //是否允许多人同时参标 默认0;允许1
  127. BidType []*BidTypeReq `json:"bidType,optional"` //投标类型自定义内容
  128. RemindRule []*RemindRuleReq `json:"remindRule,optional"` //消息提醒
  129. }
  130. //用户参标、终止参标及划转接口开发
  131. participateActionReq {
  132. baseParam
  133. BidIds string `json:"bidIds,optional"` //招标信息id ,已加密。多个,号隔开
  134. ProjectIds string `json:"projectIds,optional"` //项目信息id,已加密。多个,号隔开
  135. ToEntUserId string `json:"toEntUserId,optional"` //划转对象的企业用户id
  136. IsRetain bool `json:"isRetain,optional"` //是否保留原跟踪人
  137. ActionType string `path:"actionType,options=in|out|transfer"` //in:参标;out:终止参标;transfer:划转
  138. }
  139. //我的参标项目列表|企业参标项目列表
  140. participateListReq {
  141. baseParam
  142. Area string `json:"area,optional"` //省份
  143. City string `json:"city,optional"` //城市
  144. BidTime string `json:"bidTime,optional"` //招标日期:开始时间-结束时间
  145. BidEndTime string `json:"bidEndTime,optional"` //投标截止日期:格式同上
  146. BidOpenTime string `json:"bidOpenTime,optional"` //开标时间:格式同上
  147. BidEndStatus int64 `json:"bidEndStatus,optional"` //投标截止状态:1:未截止;2:已截止;3:终止参标
  148. BidOpenStatus int64 `json:"bidOpenStatus,optional"` //开标状态:1:未开标;2:已开标
  149. Keywords string `json:"keywords,optional"` //查询项目名称 关键词;多个空格隔开
  150. EntUserIds string `json:"entUserIds,optional"` //企业参标人企业用户id集合,多个,号隔开
  151. PageSize int64 `json:"pageSize,default=10"` //每页数据量
  152. PageNum int64 `json:"pageNum,default=1"` //当前页码
  153. Identity string `path:"identity,options=mine|ent"` //我的:mine;企业:ent
  154. OrderNum int64 `json:"orderNum,default=0"` //排序:0:投标截止日期正序、1:开标时间正序、2:更新状态时间倒叙
  155. }
  156. ptatisticsListReq {
  157. PositionId int64 `header:"positionId,optional"` //职位id
  158. EntId int64 `header:"entId,optional"`
  159. EntUserId int64 `header:"entUserId,optional"`
  160. DeptId int64 `header:"deptId,optional"`
  161. EntUserIdArr []string `json:"entUserIdArr,optional"`
  162. StartTime int64 `json:"startTime,optional"`
  163. EndTime int64 `json:"endTime,optional"`
  164. }
  165. polymerizeSearchReq {
  166. SearchCode string `json:"searchCode"`
  167. EntId int64 `header:"entId,optional"` // 企业id
  168. PositionType int64 `header:"positionType,optional"` // 职位类型 0个人 1企业
  169. PositionId int64 `header:"positionId,optional"` //职位id
  170. AccountId int64 `header:"accountId,optional"` //账户id
  171. AppId string `header:"appId,optional"` //剑鱼10000
  172. UserId string `header:"userId,optional"` //用户id
  173. NewUserId int64 `header:"newUserId,optional"` //base_user_id
  174. EntAccountId int64 `header:"entAccountId,optional"` //企业账户id
  175. EntUserId int64 `header:"newUserId,optional"`
  176. }
  177. )
  178. service bxcore-api {
  179. @handler searchList
  180. post /jybx/core/:userType/searchList(searchReq) returns (commonResp)
  181. @handler limitSearchContent
  182. post /jybx/core/:searchType/searchLimit(searchLimitReq) returns (commonResp)
  183. @handler participateShow // 列表数据参标信息接口
  184. post /jybx/core/participate/show(participateShowReq) returns (commonResp)
  185. @handler ParticipateInfo // 详情页参标信息接口
  186. post /jybx/core/participate/info(participateInfoReq) returns (commonResp)
  187. @handler updateBidStatus // 投标状态更新
  188. post /jybx/core/participate/updateBidStatus(updateBidStatusReq) returns (commonResp)
  189. @handler ParticipateContent // 获取投标状态信息
  190. post /jybx/core/participate/content(participateContentReq) returns (commonResp)
  191. @handler ParticipateRecords // 参标操作记录
  192. post /jybx/core/participate/records(participateRecordsReq) returns (commonResp)
  193. @handler ParticipatePersons // 当前部门/企业下参标人员信息
  194. post /jybx/core/participate/persons(participatePersonsReq) returns (commonResp)
  195. @handler participateSetUpInfo // 参标设置信息
  196. post /jybx/core/participate/setUpInfo(participateSetUpInfoReq) returns (commonResp)
  197. @handler participateAction //参标|终止参标|划转项目
  198. post /jybx/core/participate/:actionType/info(participateActionReq) returns (commonResp)
  199. @handler participateList //我的参标项目列表|企业参标项目列表
  200. post /jybx/core/participate/:identity/list(participateListReq) returns (commonResp)
  201. @handler pushStatistics // 订阅推送统计
  202. post /jybx/core/statistics/pushStatistics(ptatisticsListReq) returns (commonResp)
  203. @handler projectStatistics//参标项目统计
  204. post /jybx/core/statistics/projectStatistics(ptatisticsListReq) returns (commonResp)
  205. @handler polymerizeSearch//参标项目统计
  206. post /jybx/core/polymerizeSearch(polymerizeSearchReq) returns (commonResp)
  207. }