biService.api 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. }
  50. ClueImportReq {
  51. PositionId int64 `header:"positionId,optional"`
  52. Pcbh string `json:"pcbh"`
  53. }
  54. ClueAddReq {
  55. Phone string `json:"phone"`
  56. Username string `json:"username,optional"`
  57. Source string `json:"source"`
  58. Status999 string `json:"status999"`
  59. Owner string `json:"owner"`
  60. EmpNo string `json:"empNo"`
  61. Company string `json:"company,optional"`
  62. IsPolicymaker string `json:"isPolicymaker,optional"`
  63. BelongToIndustry string `json:"belongToIndustry,optional"`
  64. Job string `json:"job,optional"`
  65. CustomerNeeds string `json:"customerNeeds,optional"`
  66. BelongTo string `json:"belongTo,optional"`
  67. WantGoods string `json:"wantGoods,optional"`
  68. CustomerBudget string `json:"customerBudget,optional"`
  69. }
  70. SqlManageReq {
  71. Id float64 `json:"id"`
  72. Params []Param `json:"params"`
  73. }
  74. Param {
  75. Value string `json:"value"`
  76. Type string `json:"type"`
  77. }
  78. MyInfoReq {
  79. Bid string `json:"bid,optional"`
  80. Sid string `json:"sid"`
  81. }
  82. ResEmpowerReq {
  83. EntId int64 `header:"entId"`
  84. ReqType int64 `json:"reqType"`
  85. FunctionCode string `json:"functionCode"`
  86. EntUserId string `json:"entUserId"`
  87. PositionId string `json:"positionId"`
  88. }
  89. ExportReq {
  90. Mail string `json:"mail"`
  91. Mapping []string `json:"mapping"`
  92. PositionId int64 `header:"positionId,optional"`
  93. }
  94. OperateReq {
  95. NewId string `json:"newId"`
  96. Type int64 `json:"type"`
  97. }
  98. getCompanyTypeReq {
  99. CompanyName string `json:"companyName"`
  100. }
  101. ExportByDbReq {
  102. Token string `json:"token"`
  103. Title string `json:"title"`
  104. Content string `json:"content"`
  105. Mails string `json:"mails"`
  106. FileName string `json:"filename"`
  107. Datas []map[string]interface{} `json:"datas"`
  108. }
  109. UpFileReq {
  110. AppId string `header:"appId,default=10000"`
  111. BaseUserId int64 `header:"newUserId"`
  112. PositionId int64 `header:"positionId,optional"`
  113. EntUserId int64 `header:"entUserId,optional"`
  114. EntId int64 `header:"entId,optional"`
  115. FileType string `form:"fileType"`
  116. }
  117. )
  118. @server (
  119. // 定义一个请求体限制在 100MB 以内的请求,goctl >= 1.5.0 版本支持 (默认1mb)
  120. maxBytes: 104857600
  121. )
  122. service biService-api {
  123. @handler MyDataAsset
  124. post /biService/myDataAsset (myDataAssetReq) returns (biResp)
  125. @handler AddProjectReq
  126. post /biService/addProject (addProjectReq) returns (biResp)
  127. @handler GetInfoId
  128. post /biService/getInfoId (getInfoIdReq) returns (biResp)
  129. @handler DrawClue
  130. post /biService/drawClue (drawClueReq) returns (biResp)
  131. @handler Call
  132. post /biService/call (callReq) returns (biResp) //拨打电话
  133. @handler DistributeClue
  134. post /biService/distributeClue (DistributeClueReq) returns (biResp)
  135. @handler DistributeClueShow
  136. post /biService/distributeClueShow (DistributeClueShowReq) returns (biResp)
  137. @handler ClueImport
  138. post /biService/clueImport (ClueImportReq) returns (biResp)
  139. @handler ClueAdd
  140. post /biService/ClueAdd (ClueAddReq) returns (biResp)
  141. @handler ClueImportTl
  142. post /biService/clueImportTt (ClueImportReq) returns (biResp)
  143. @handler AutoFollow
  144. post /biService/autoFollow (callReq) returns (biResp)
  145. @doc "bi通用接口"
  146. @handler sqlManage
  147. post /biService/sqlManage (SqlManageReq) returns (biResp)
  148. @doc "用户身份"
  149. @handler Myinfo
  150. post /biService/myInfo (MyInfoReq) returns (biResp)
  151. @doc "资源中台授权"
  152. @handler ResEmpower
  153. post /biService/resEmpower (ResEmpowerReq) returns (biResp)
  154. @doc "项目全量导出"
  155. @handler allProjectExport
  156. post /biService/allProjectExport (ExportReq) returns (biResp)
  157. @doc "资讯全量导出"
  158. @handler allInfoExport
  159. post /biService/allInfoExport (ExportReq) returns (biResp)
  160. @doc "资讯操作"
  161. @handler infoOperate
  162. post /biService/infoOperate (OperateReq) returns (biResp)
  163. @doc "公司类型"
  164. @handler getCompanyType
  165. post /biService/getCompanyType (getCompanyTypeReq) returns (biResp)
  166. @doc "数据导出(通用),发邮件"
  167. @handler sendMail
  168. post /biService/sendMail (ExportByDbReq) returns (biResp)
  169. @doc "附件上传"
  170. @handler upFile
  171. post /biService/upFile (UpFileReq) returns (biResp)
  172. }