bxcore.api 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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. District string `json:"district,optional"`
  43. Buyer string `json:"buyer,optional"` //采购单位
  44. Winner string `json:"winner,optional"` //中标企业
  45. Agency string `json:"agency,optional"` //代理机构
  46. }
  47. //
  48. commonResp {
  49. Err_code int64 `json:"error_code"`
  50. Err_msg string `json:"error_msg"`
  51. Data interface{} `json:"data"`
  52. }
  53. commonPushResp {
  54. Err_code int64 `json:"error_code"`
  55. Err_msg string `json:"error_msg"`
  56. Data interface{} `json:"data"`
  57. SourceItem interface{} `json:"sourceItem"`
  58. }
  59. //
  60. searchLimitReq {
  61. AppId string `header:"appId,optional"` //appid
  62. TimeOut int64 `json:"timeOut,optional"` //过滤过期时间
  63. Count int64 `json:"count,optional"` //并发量
  64. Flag int64 `json:"flag,optional"` //开关 1:打开;-1:关闭;-2:重置
  65. Percentage int64 `json:"percentage,optional"` //付费用户占比
  66. SearchType string `path:"searchType"` //get|update|
  67. }
  68. //参标项目
  69. baseParam {
  70. EntId int64 `header:"entId,optional"` // 企业id
  71. EntUserId int64 `header:"entUserId,optional"` // 企业下用户id
  72. PositionType int64 `header:"positionType,optional"` // 职位类型 0个人 1企业
  73. PositionId int64 `header:"positionId,optional"` //职位id
  74. AccountId int64 `header:"accountId,optional"` //账户id
  75. MgoUserId string `header:"mgoUserId,optional"` //原userId
  76. AppId string `header:"appId,optional"` //剑鱼10000
  77. UserId string `header:"userId,optional"` //用户id
  78. NewUserId int64 `header:"newUserId,optional"` //base_user_id
  79. EntAccountId int64 `header:"entAccountId,optional"` //企业账户id
  80. Phone string `header:"phone,optional"`
  81. }
  82. // 列表数据参标信息请求参数
  83. participateShowReq {
  84. Ids string `json:"ids"` // 标讯id 逗号分割
  85. baseParam
  86. }
  87. // 详情页参标信息请求参数
  88. participateInfoReq {
  89. Sid string `json:"sid"` // 标讯id
  90. baseParam
  91. }
  92. // 投标状态更新请求参数
  93. updateBidStatusReq {
  94. BidType int64 `json:"bidType"` // 投标类型 1-直接投标 2-渠道投标
  95. BidStage []string `json:"bidStage,optional"` // 投标项目阶段 ["未报名","已报名"...]
  96. IsWin int64 `json:"isWin,optional"` // 是否中标 0-未选择 1-是 2-否
  97. ChannelName string `json:"channelName,optional"` // 渠道名称
  98. ChannelPerson string `json:"channelPerson,optional"` // 联系人
  99. ChannelPhone string `json:"channelPhone,optional"` //联系电话
  100. Winner string `json:"winner,optional"` // 中标单位
  101. Sid string `json:"sid"` // 标讯id
  102. baseParam
  103. }
  104. // 获取投标状态信息
  105. participateContentReq {
  106. Sid string `json:"sid"` // 标讯id
  107. baseParam
  108. }
  109. // 参标操作记录请求参数
  110. participateRecordsReq {
  111. Sid string `json:"sid"` // 标讯id
  112. PageNum int64 `json:"pageNum,default=1"` // 页码
  113. PageSize int64 `json:"pageSize,default=100"` // 每页条数
  114. baseParam
  115. }
  116. // 当前部门/企业下参标人员信息
  117. participatePersonsReq {
  118. baseParam
  119. ProjectId string `json:"projectId,optional"` //项目id
  120. }
  121. //投标状态更新:投标类型-投标项目阶段
  122. BidTypeReq {
  123. Name string `json:"name,optional"`
  124. Content []string `json:"content,optional"`
  125. }
  126. //消息提醒设置:
  127. RemindRuleReq {
  128. BidState string `json:"bidState,optional"` //投标规则类型;直接投标;渠道投标;
  129. Remainder int64 `json:"remainder,optional"` //距离投标截止日期需要多久开始提醒 单位h
  130. Node string `json:"node,optional"` //那个节点进行消息提醒;和投标项目阶段绑定
  131. }
  132. //参标设置信息接口
  133. participateSetUpInfoReq {
  134. baseParam
  135. SetAction string `json:"setAction,optional"` //默认空;U:更新
  136. IsAllow string `json:"isAllow,optional"` //是否允许多人同时参标 默认0;允许1
  137. BidType []*BidTypeReq `json:"bidType,optional"` //投标类型自定义内容
  138. RemindRule []*RemindRuleReq `json:"remindRule,optional"` //消息提醒
  139. }
  140. //用户参标、终止参标及划转接口开发
  141. participateActionReq {
  142. baseParam
  143. BidIds string `json:"bidIds,optional"` //招标信息id ,已加密。多个,号隔开
  144. ProjectIds string `json:"projectIds,optional"` //项目信息id,已加密。多个,号隔开
  145. ToEntUserId string `json:"toEntUserId,optional"` //划转对象的企业用户id
  146. IsRetain bool `json:"isRetain,optional"` //是否保留原跟踪人
  147. ActionType string `path:"actionType,options=in|out|transfer"` //in:参标;out:终止参标;transfer:划转
  148. }
  149. //我的参标项目列表|企业参标项目列表
  150. participateListReq {
  151. baseParam
  152. Area string `json:"area,optional"` //省份
  153. City string `json:"city,optional"` //城市
  154. BidTime string `json:"bidTime,optional"` //招标日期:开始时间-结束时间
  155. BidEndTime string `json:"bidEndTime,optional"` //投标截止日期:格式同上
  156. BidOpenTime string `json:"bidOpenTime,optional"` //开标时间:格式同上
  157. BidEndStatus int64 `json:"bidEndStatus,optional"` //投标截止状态:1:未截止;2:已截止;3:终止参标
  158. BidOpenStatus int64 `json:"bidOpenStatus,optional"` //开标状态:1:未开标;2:已开标
  159. Keywords string `json:"keywords,optional"` //查询项目名称 关键词;多个空格隔开
  160. EntUserIds string `json:"entUserIds,optional"` //企业参标人企业用户id集合,多个,号隔开
  161. PageSize int64 `json:"pageSize,default=10"` //每页数据量
  162. PageNum int64 `json:"pageNum,default=1"` //当前页码
  163. Identity string `path:"identity,options=mine|ent"` //我的:mine;企业:ent
  164. OrderNum int64 `json:"orderNum,default=0"` //排序:0:投标截止日期正序、1:开标时间正序、2:更新状态时间倒叙
  165. }
  166. ptatisticsListReq {
  167. PositionId int64 `header:"positionId,optional"` //职位id
  168. EntId int64 `header:"entId,optional"`
  169. EntUserId int64 `header:"entUserId,optional"`
  170. DeptId int64 `header:"deptId,optional"`
  171. EntUserIdArr []string `json:"entUserIdArr,optional"`
  172. StartTime int64 `json:"startTime,optional"`
  173. EndTime int64 `json:"endTime,optional"`
  174. Source []int64 `json:"source,optional"` // 标讯项目来源 -1:全部 1:个人订阅 2:企业自动分发 3:企业手动分发
  175. BidWay int64 `json:"bidWay,optional"` // 投标类型 -1:全部 1:直接投标 2:渠道投标
  176. IsMobile bool `json:"isMobile,optional"` // 是否是移动端 因为移动端和pc要求展示的不一致
  177. }
  178. polymerizeSearchReq {
  179. SearchCode string `json:"searchCode"`
  180. EntId int64 `header:"entId,optional"` // 企业id
  181. PositionType int64 `header:"positionType,optional"` // 职位类型 0个人 1企业
  182. PositionId int64 `header:"positionId,optional"` //职位id
  183. AccountId int64 `header:"accountId,optional"` //账户id
  184. AppId string `header:"appId,optional"` //剑鱼10000
  185. UserId string `header:"userId,optional"` //用户id
  186. NewUserId int64 `header:"newUserId,optional"` //base_user_id
  187. EntAccountId int64 `header:"entAccountId,optional"` //企业账户id
  188. EntUserId int64 `header:"newUserId,optional"`
  189. }
  190. ProjectDetailReq {
  191. PositionId int64 `header:"positionId,optional"` //职位id
  192. PositionType int64 `header:"positionType,optional"` //职位类型 0个人 1企业
  193. EntId int64 `header:"entId,optional"`
  194. EntUserId int64 `header:"entUserId,optional"`
  195. DeptId int64 `header:"deptId,optional"`
  196. EntUserIdArr []string `json:"entUserIdArr,optional"`
  197. StartTime int64 `json:"startTime,optional"`
  198. EndTime int64 `json:"endTime,optional"`
  199. Source []int64 `json:"source,optional"` // 标讯项目来源 -1:全部 1:个人订阅 2:企业自动分发 3:企业手动分发
  200. BidWay int64 `json:"bidWay,optional"` // 投标类型 -1:全部 1:直接投标 2:渠道投标
  201. Isparticipate int64 `json:"isparticipate,optional"` // 参标状态;-1:全部 0:未参标 1:是
  202. UpdateStartTime int64 `json:"updateStartTime,optional"` //
  203. UpdateEndTime int64 `json:"updateEndTime,optional"` //
  204. PageSize int64 `json:"pageSize,optional"` //
  205. PageNum int64 `json:"pageNum,optional"` //
  206. }
  207. mobileHotWordReq {
  208. AppId string `header:"appId"`
  209. UserId string `header:"userId,optional"`
  210. Refresh int64 `json:"refresh,optional"`
  211. Word string `json:"word,optional"`
  212. }
  213. )
  214. service bxcore-api {
  215. @handler searchList
  216. post /jybx/core/:userType/searchList (searchReq) returns (commonResp)
  217. @handler limitSearchContent
  218. post /jybx/core/:searchType/searchLimit (searchLimitReq) returns (commonResp)
  219. @handler participateShow // 列表数据参标信息接口
  220. post /jybx/core/participate/show (participateShowReq) returns (commonResp)
  221. @handler ParticipateInfo // 详情页参标信息接口
  222. post /jybx/core/participate/info (participateInfoReq) returns (commonResp)
  223. @handler updateBidStatus // 投标状态更新
  224. post /jybx/core/participate/updateBidStatus (updateBidStatusReq) returns (commonResp)
  225. @handler ParticipateContent // 获取投标状态信息
  226. post /jybx/core/participate/content (participateContentReq) returns (commonResp)
  227. @handler ParticipateRecords // 参标操作记录
  228. post /jybx/core/participate/records (participateRecordsReq) returns (commonResp)
  229. @handler ParticipatePersons // 当前部门/企业下参标人员信息
  230. post /jybx/core/participate/persons (participatePersonsReq) returns (commonResp)
  231. @handler participateSetUpInfo // 参标设置信息
  232. post /jybx/core/participate/setUpInfo (participateSetUpInfoReq) returns (commonResp)
  233. @handler participateAction //参标|终止参标|划转项目
  234. post /jybx/core/participate/:actionType/info (participateActionReq) returns (commonResp)
  235. @handler participateList //我的参标项目列表|企业参标项目列表
  236. post /jybx/core/participate/:identity/list (participateListReq) returns (commonResp)
  237. @handler pushStatistics // 订阅推送统计
  238. post /jybx/core/statistics/pushStatistics (ptatisticsListReq) returns (commonPushResp)
  239. @handler projectStatistics//参标项目统计
  240. post /jybx/core/statistics/projectStatistics (ptatisticsListReq) returns (commonResp)
  241. @handler polymerizeSearch//参标项目统计
  242. post /jybx/core/polymerizeSearch (polymerizeSearchReq) returns (commonResp)
  243. @handler statisticsProjectDetails//参标项目明细
  244. post /jybx/core/statistics/projectDetails (ProjectDetailReq) returns (commonResp)
  245. @handler searchCriteria //物业搜索条件返回
  246. post /jybx/core/property/searchCriteria () returns (commonResp)
  247. @handler mobileHotWord
  248. post /jybx/core/mobileHotWord (mobileHotWordReq) returns (commonResp)
  249. }