biService.api 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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. }
  102. ExportByDbReq {
  103. Token string `json:"token"`
  104. Title string `json:"title"`
  105. Content string `json:"content"`
  106. Mails string `json:"mails"`
  107. FileName string `json:"filename"`
  108. Datas []map[string]interface{} `json:"datas"`
  109. }
  110. UpFileReq {
  111. AppId string `header:"appId,default=10000"`
  112. BaseUserId int64 `header:"newUserId"`
  113. PositionId int64 `header:"positionId,optional"`
  114. EntUserId int64 `header:"entUserId,optional"`
  115. EntId int64 `header:"entId,optional"`
  116. FileType string `form:"fileType"`
  117. }
  118. CreateClueReq {
  119. AppId string `header:"appId,default=10000"`
  120. UserId string `header:"userId,optional"`
  121. BaseUserId int64 `header:"newUserId"`
  122. PositionId int64 `header:"positionId,optional"`
  123. EntUserId int64 `header:"entUserId,optional"`
  124. Phone string `json:"phone"`
  125. }
  126. TransferClueReq {
  127. UserId string `header:"userId,optional"`
  128. BaseUserId int64 `header:"newUserId"`
  129. PositionId int64 `header:"positionId,optional"`
  130. EntUserId int64 `header:"entUserId,optional"`
  131. Phone string `json:"phone"`
  132. OrderNo string `json:"orderNo"`
  133. }
  134. )
  135. @server (
  136. // 定义一个请求体限制在 100MB 以内的请求,goctl >= 1.5.0 版本支持 (默认1mb)
  137. maxBytes: 104857600
  138. )
  139. service biService-api {
  140. @handler MyDataAsset
  141. post /biService/myDataAsset (myDataAssetReq) returns (biResp)
  142. @handler AddProjectReq
  143. post /biService/addProject (addProjectReq) returns (biResp)
  144. @handler GetInfoId
  145. post /biService/getInfoId (getInfoIdReq) returns (biResp)
  146. @handler DrawClue
  147. post /biService/drawClue (drawClueReq) returns (biResp)
  148. @handler Call
  149. post /biService/call (callReq) returns (biResp) //拨打电话
  150. @handler DistributeClue
  151. post /biService/distributeClue (DistributeClueReq) returns (biResp)
  152. @handler DistributeClueShow
  153. post /biService/distributeClueShow (DistributeClueShowReq) returns (biResp)
  154. @handler ClueImport
  155. post /biService/clueImport (ClueImportReq) returns (biResp)
  156. @handler ClueAdd
  157. post /biService/ClueAdd (ClueAddReq) returns (biResp)
  158. @handler ClueImportTl
  159. post /biService/clueImportTt (ClueImportReq) returns (biResp)
  160. @handler AutoFollow
  161. post /biService/autoFollow (callReq) returns (biResp)
  162. @doc "bi通用接口"
  163. @handler sqlManage
  164. post /biService/sqlManage (SqlManageReq) returns (biResp)
  165. @doc "用户身份"
  166. @handler Myinfo
  167. post /biService/myInfo (MyInfoReq) returns (biResp)
  168. @doc "资源中台授权"
  169. @handler ResEmpower
  170. post /biService/resEmpower (ResEmpowerReq) returns (biResp)
  171. @doc "项目全量导出"
  172. @handler allProjectExport
  173. post /biService/allProjectExport (ExportReq) returns (biResp)
  174. @doc "资讯全量导出"
  175. @handler allInfoExport
  176. post /biService/allInfoExport (ExportReq) returns (biResp)
  177. @doc "资讯操作"
  178. @handler infoOperate
  179. post /biService/infoOperate (OperateReq) returns (biResp)
  180. @doc "公司类型"
  181. @handler getCompanyType
  182. post /biService/getCompanyType (getCompanyTypeReq) returns (biResp)
  183. @doc "数据导出(通用),发邮件"
  184. @handler sendMail
  185. post /biService/sendMail (ExportByDbReq) returns (biResp)
  186. @doc "附件上传"
  187. @handler upFile
  188. post /biService/upFile (UpFileReq) returns (biResp)
  189. @doc "创建线索"
  190. @handler createClue
  191. post /biService/createClueByPhone (CreateClueReq) returns (biResp)
  192. @doc "客成线索移交"
  193. @handler transferClueSucc
  194. post /biService/transferClueByPhone (TransferClueReq) returns (biResp)
  195. }