biService.api 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. ClueImportReq {
  44. PositionId int64 `header:"positionId,optional"`
  45. Pcbh string `json:"pcbh"`
  46. }
  47. ClueAddReq {
  48. Phone string `json:"phone"`
  49. Username string `json:"username,optional"`
  50. Source string `json:"source"`
  51. Status999 string `json:"status999"`
  52. Owner string `json:"owner"`
  53. EmpNo string `json:"empNo"`
  54. Company string `json:"company,optional"`
  55. IsPolicymaker string `json:"isPolicymaker,optional"`
  56. BelongToIndustry string `json:"belongToIndustry,optional"`
  57. Job string `json:"job,optional"`
  58. CustomerNeeds string `json:"customerNeeds,optional"`
  59. BelongTo string `json:"belongTo,optional"`
  60. WantGoods string `json:"wantGoods,optional"`
  61. CustomerBudget string `json:"customerBudget,optional"`
  62. }
  63. SqlManageReq {
  64. Id float64 `json:"id"`
  65. Params []Param `json:"params"`
  66. }
  67. Param {
  68. Value string `json:"value"`
  69. Type string `json:"type"`
  70. }
  71. MyInfoReq {
  72. Bid string `json:"bid,optional"`
  73. Sid string `json:"sid"`
  74. }
  75. ResEmpowerReq {
  76. EntId int64 `header:"entId"`
  77. ReqType int64 `json:"reqType"`
  78. FunctionCode string `json:"functionCode"`
  79. EntUserId string `json:"entUserId"`
  80. PositionId string `json:"positionId"`
  81. }
  82. ExportReq {
  83. Mail string `json:"mail"`
  84. Mapping []string `json:"mapping"`
  85. PositionId int64 `header:"positionId,optional"`
  86. }
  87. OperateReq {
  88. NewId string `json:"newId"`
  89. Type int64 `json:"type"`
  90. }
  91. ExportByDbReq {
  92. Token string `json:"token"`
  93. Title string `json:"title"`
  94. Content string `json:"content"`
  95. Mails string `json:"mails"`
  96. Query string `json:"query"`
  97. Stype string `json:"stype"`
  98. }
  99. )
  100. service biService-api {
  101. @handler MyDataAsset
  102. post /biService/myDataAsset (myDataAssetReq) returns (biResp)
  103. @handler AddProjectReq
  104. post /biService/addProject (addProjectReq) returns (biResp)
  105. @handler GetInfoId
  106. post /biService/getInfoId (getInfoIdReq) returns (biResp)
  107. @handler DrawClue
  108. post /biService/drawClue (drawClueReq) returns (biResp)
  109. @handler Call
  110. post /biService/call (callReq) returns (biResp) //拨打电话
  111. @handler DistributeClue
  112. post /biService/distributeClue (DistributeClueReq) returns (biResp)
  113. @handler ClueImport
  114. post /biService/clueImport (ClueImportReq) returns (biResp)
  115. @handler ClueAdd
  116. post /biService/ClueAdd (ClueAddReq) returns (biResp)
  117. @handler ClueImportTl
  118. post /biService/clueImportTt (ClueImportReq) returns (biResp)
  119. @handler AutoFollow
  120. post /biService/autoFollow (callReq) returns (biResp)
  121. @doc "bi通用接口"
  122. @handler sqlManage
  123. post /biService/sqlManage (SqlManageReq) returns (biResp)
  124. @doc "用户身份"
  125. @handler Myinfo
  126. post /biService/myInfo (MyInfoReq) returns (biResp)
  127. @doc "资源中台授权"
  128. @handler ResEmpower
  129. post /biService/resEmpower (ResEmpowerReq) returns (biResp)
  130. @doc "项目全量导出"
  131. @handler allProjectExport
  132. post /biService/allProjectExport (ExportReq) returns (biResp)
  133. @doc "资讯全量导出"
  134. @handler allInfoExport
  135. post /biService/allInfoExport (ExportReq) returns (biResp)
  136. @doc "资讯操作"
  137. @handler infoOperate
  138. post /biService/infoOperate (OperateReq) returns (biResp)
  139. @doc "数据导出(通用),发邮件"
  140. @handler sendMail
  141. post /biService/sendMail (ExportByDbReq) returns (biResp)
  142. }