biService.api 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. syntax = "v1"
  2. type (
  3. biResp {
  4. Error_code int64 `json:"error_code"` //响应代码
  5. Error_msg string `json:"error_msg"` //响应消息
  6. Data interface{} `json:"data"`
  7. }
  8. myDataAssetReq {
  9. UserId string `header:"userId,optional"`
  10. NewUserId int64 `header:"newUserId,optional"`
  11. EntUserId int64 `header:"entUserId,optional"`
  12. }
  13. addProjectReq {
  14. PositionId int64 `header:"positionId,optional"`
  15. Source int64 `json:"source,optional"`
  16. InfoId string `json:"info_id,optional"`
  17. PositionType int64 `header:"positionType,optional"`
  18. AccountId int64 `header:"accountId,optional"`
  19. CompanyName string `header:"entName,optional"`
  20. UserName string `header:"userName,optional"`
  21. UserId int64 `header:"newUserId,optional"`
  22. EntId int64 `header:"entId,optional"`
  23. EntUserName string `header:"entUserName,optional"`
  24. }
  25. getInfoIdReq {
  26. PositionId int64 `header:"positionId,optional"`
  27. }
  28. drawClueReq {
  29. PositionId int64 `header:"positionId,optional"`
  30. Count int64 `json:"count,optional"`
  31. }
  32. callReq {
  33. PositionId int64 `header:"positionId,optional"`
  34. Phone string `json:"phone"`
  35. }
  36. DistributeClueReq {
  37. ClueCount string `json:"clueCount"`
  38. ClueIdList []int64 `json:"clueIdList"`
  39. Datas []map[string]interface{} `json:"datas"`
  40. PositionId int64 `header:"positionId,optional"`
  41. IsTask int64 `json:"isTask"`
  42. }
  43. DistributeClueShowReq {
  44. ClueIdList string `json:"clueIdList"`
  45. Datas []map[string]interface{} `json:"datas"`
  46. PositionId int64 `header:"positionId,optional"`
  47. IsTask int64 `json:"isTask"`
  48. DataType int64 `json:"dataType"`
  49. UpdatePositionID int64 `json:"updatePositionID"`
  50. }
  51. ClueImportReq {
  52. PositionId int64 `header:"positionId,optional"`
  53. Pcbh string `json:"pcbh"`
  54. }
  55. ClueAddReq {
  56. Phone string `json:"phone"`
  57. Username string `json:"username,optional"`
  58. Source string `json:"source"`
  59. Status999 string `json:"status999"`
  60. Owner string `json:"owner"`
  61. EmpNo string `json:"empNo"`
  62. Company string `json:"company,optional"`
  63. IsPolicymaker string `json:"isPolicymaker,optional"`
  64. BelongToIndustry string `json:"belongToIndustry,optional"`
  65. Job string `json:"job,optional"`
  66. CustomerNeeds string `json:"customerNeeds,optional"`
  67. BelongTo string `json:"belongTo,optional"`
  68. WantGoods string `json:"wantGoods,optional"`
  69. CustomerBudget string `json:"customerBudget,optional"`
  70. }
  71. SqlManageReq {
  72. Id float64 `json:"id"`
  73. Params []Param `json:"params"`
  74. }
  75. Param {
  76. Value string `json:"value"`
  77. Type string `json:"type"`
  78. }
  79. MyInfoReq {
  80. Bid string `json:"bid,optional"`
  81. Sid string `json:"sid"`
  82. }
  83. ResEmpowerReq {
  84. EntId int64 `header:"entId"`
  85. ReqType int64 `json:"reqType"`
  86. FunctionCode string `json:"functionCode"`
  87. EntUserId string `json:"entUserId"`
  88. PositionId string `json:"positionId"`
  89. }
  90. ExportReq {
  91. Mail string `json:"mail"`
  92. Mapping []string `json:"mapping"`
  93. PositionId int64 `header:"positionId,optional"`
  94. }
  95. OperateReq {
  96. NewId string `json:"newId"`
  97. Type int64 `json:"type"`
  98. }
  99. getCompanyTypeReq {
  100. CompanyName string `json:"companyName"`
  101. Uid string `json:"uid,optional"`
  102. }
  103. ExportByDbReq {
  104. Token string `json:"token"`
  105. Title string `json:"title"`
  106. Content string `json:"content"`
  107. Mails string `json:"mails"`
  108. FileName string `json:"filename"`
  109. Datas []map[string]interface{} `json:"datas"`
  110. }
  111. UpFileReq {
  112. AppId string `header:"appId,default=10000"`
  113. BaseUserId int64 `header:"newUserId"`
  114. PositionId int64 `header:"positionId,optional"`
  115. EntUserId int64 `header:"entUserId,optional"`
  116. EntId int64 `header:"entId,optional"`
  117. FileType string `form:"fileType"`
  118. }
  119. SendMailReq {
  120. Title string `json:"title"`
  121. Content string `json:"content"`
  122. Mails string `json:"mails"`
  123. }
  124. AcceptanceReq {
  125. ProposeType int64 `json:"proposeType,optional"`
  126. Propose_time string `json:"proposeTime,optional"`
  127. Channel string `json:"channel,optional"`
  128. Acceptance_type int64 `json:"acceptanceType,optional"`
  129. Status int64 `json:"status,optional"`
  130. Over_time string `json:"overTime,optional"`
  131. Remark string `json:"remark,optional"`
  132. PositionId int64 `header:"positionId,optional"`
  133. DeptId string `header:"entDeptId,optional"` //部门id
  134. EntUserName string `header:"entUserName,optional"`
  135. ParamData string `json:"paramData,optional"`
  136. }
  137. CreateClueReq {
  138. AppId string `header:"appId,default=10000"`
  139. UserId string `header:"userId,optional"`
  140. BaseUserId int64 `header:"newUserId"`
  141. PositionId int64 `header:"positionId,optional"`
  142. EntUserId int64 `header:"entUserId,optional"`
  143. Phone string `json:"phone"`
  144. }
  145. TransferClueReq {
  146. UserId string `header:"userId,optional"`
  147. BaseUserId int64 `header:"newUserId,optional"`
  148. PositionId int64 `header:"positionId,optional"`
  149. EntUserId int64 `header:"entUserId,optional"`
  150. Phone string `json:"phone"`
  151. OrderNo string `json:"orderNo"`
  152. OldCusId int64 `json:"oldCusId"`
  153. }
  154. FindClueInfoReq {
  155. UserId string `header:"userId,optional"`
  156. PositionId int64 `header:"positionId,optional"`
  157. Phone string `header:"phone,optional"`
  158. }
  159. ClueInfoReq {
  160. SearchTxt string `json:"searchTxt"`
  161. SearchType string `json:"searchType"` // 0: 线索名称,1: 联系方式,2: 联系人
  162. PageSize int64 `json:"pageSize"`
  163. PageNum int64 `json:"pageNum"`
  164. }
  165. MaterialSaveReq {
  166. TaskName string `json:"taskName"`
  167. TaskDescription string `json:"taskDescription"`
  168. MaterialContent string `json:"materialContent"`
  169. QrcodeUrl string `json:"qrcodeUrl"`
  170. ReceiveUserName string `json:"receiveUserName"`
  171. ReceiveUserId string `json:"receiveUserId"`
  172. FileUrl string `json:"fileUrl"`
  173. EntId int64 `json:"entId"`
  174. CreateUser string `json:"createUser"`
  175. ImgWebpage string `json:"imgWebpage"`
  176. }
  177. ClueTransferReq {
  178. ClueId int64 `json:"clueId"`
  179. ClueName string `json:"clueName"`
  180. ChangeType int64 `json:"changeType"`
  181. KcType int64 `json:"kcType,optional"`
  182. MainClueId int64 `json:"mainClueId,optional"`
  183. }
  184. UpdateCompanyNameReq {
  185. MainClueId int64 `json:"mainClueId"`
  186. NewCompanyName string `json:"newCompanyName"`
  187. NewEntId int64 `json:"newEntId"`
  188. OldCompanyName string `json:"oldCompanyName"`
  189. OldEntId int64 `json:"oldEntId"`
  190. }
  191. )
  192. @server (
  193. // 定义一个请求体限制在 100MB 以内的请求,goctl >= 1.5.0 版本支持 (默认1mb)
  194. maxBytes: 104857600
  195. )
  196. service biService-api {
  197. @handler MyDataAsset
  198. post /biService/myDataAsset (myDataAssetReq) returns (biResp)
  199. @handler AddProjectReq
  200. post /biService/addProject (addProjectReq) returns (biResp)
  201. @handler GetInfoId
  202. post /biService/getInfoId (getInfoIdReq) returns (biResp)
  203. @handler DrawClue
  204. post /biService/drawClue (drawClueReq) returns (biResp)
  205. @handler Call
  206. post /biService/call (callReq) returns (biResp) //拨打电话
  207. @handler DistributeClue
  208. post /biService/distributeClue (DistributeClueReq) returns (biResp)
  209. @handler DistributeClueShow
  210. post /biService/distributeClueShow (DistributeClueShowReq) returns (biResp)
  211. @handler ClueImport
  212. post /biService/clueImport (ClueImportReq) returns (biResp)
  213. @handler ClueAdd
  214. post /biService/ClueAdd (ClueAddReq) returns (biResp)
  215. @handler ClueImportTl
  216. post /biService/clueImportTt (ClueImportReq) returns (biResp)
  217. @handler AutoFollow
  218. post /biService/autoFollow (callReq) returns (biResp)
  219. @doc "bi通用接口"
  220. @handler sqlManage
  221. post /biService/sqlManage (SqlManageReq) returns (biResp)
  222. @doc "用户身份"
  223. @handler Myinfo
  224. post /biService/myInfo (MyInfoReq) returns (biResp)
  225. @doc "资源中台授权"
  226. @handler ResEmpower
  227. post /biService/resEmpower (ResEmpowerReq) returns (biResp)
  228. @doc "项目全量导出"
  229. @handler allProjectExport
  230. post /biService/allProjectExport (ExportReq) returns (biResp)
  231. @doc "资讯全量导出"
  232. @handler allInfoExport
  233. post /biService/allInfoExport (ExportReq) returns (biResp)
  234. @doc "资讯操作"
  235. @handler infoOperate
  236. post /biService/infoOperate (OperateReq) returns (biResp)
  237. @doc "公司类型"
  238. @handler getCompanyType
  239. post /biService/getCompanyType (getCompanyTypeReq) returns (biResp)
  240. @doc "数据导出(通用),发邮件"
  241. @handler sendMail
  242. post /biService/sendMail (ExportByDbReq) returns (biResp)
  243. @doc "附件上传"
  244. @handler upFile
  245. post /biService/upFile (UpFileReq) returns (biResp)
  246. @doc "发送邮件"
  247. @handler sendComMail
  248. post /biService/sendCommonndMail (SendMailReq) returns (biResp)
  249. @doc "新增受理单"
  250. @handler addAcceptance
  251. post /biService/addAcceptance (AcceptanceReq) returns (biResp)
  252. @doc "创建线索"
  253. @handler createClue
  254. post /biService/createClueByPhone (CreateClueReq) returns (biResp)
  255. @doc "客成线索移交"
  256. @handler transferClueSucc
  257. post /biService/transferClueByPhone (TransferClueReq) returns (biResp)
  258. @doc "线索查询"
  259. @handler findClueInfo
  260. post /biService/findClueInfo (FindClueInfoReq) returns (biResp)
  261. @doc "线索验重 列表"
  262. @handler getClueInfoList
  263. post /biService/getClueInfoList (ClueInfoReq) returns (biResp)
  264. @handler MaterialSave
  265. post /biService/materialSave (MaterialSaveReq) returns (biResp)
  266. @handler ClueTransfer
  267. post /biService/clueTransfer (ClueTransferReq) returns (biResp)
  268. @handler UpdateCompanyNameReq
  269. post /biService/updateCompanyNameReq (UpdateCompanyNameReq) returns (biResp)
  270. }