biService.api 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. )
  92. service biService-api {
  93. @handler MyDataAsset
  94. post /biService/myDataAsset (myDataAssetReq) returns (biResp)
  95. @handler AddProjectReq
  96. post /biService/addProject (addProjectReq) returns (biResp)
  97. @handler GetInfoId
  98. post /biService/getInfoId (getInfoIdReq) returns (biResp)
  99. @handler DrawClue
  100. post /biService/drawClue (drawClueReq) returns (biResp)
  101. @handler Call
  102. post /biService/call (callReq) returns (biResp) //拨打电话
  103. @handler DistributeClue
  104. post /biService/distributeClue (DistributeClueReq) returns (biResp)
  105. @handler ClueImport
  106. post /biService/clueImport (ClueImportReq) returns (biResp)
  107. @handler ClueAdd
  108. post /biService/ClueAdd (ClueAddReq) returns (biResp)
  109. @handler ClueImportTl
  110. post /biService/clueImportTt (ClueImportReq) returns (biResp)
  111. @handler AutoFollow
  112. post /biService/autoFollow (callReq) returns (biResp)
  113. @doc "bi通用接口"
  114. @handler sqlManage
  115. post /biService/sqlManage (SqlManageReq) returns (biResp)
  116. @doc "用户身份"
  117. @handler Myinfo
  118. post /biService/myInfo (MyInfoReq) returns (biResp)
  119. @doc "资源中台授权"
  120. @handler ResEmpower
  121. post /biService/resEmpower (ResEmpowerReq) returns (biResp)
  122. @doc "项目全量导出"
  123. @handler allProjectExport
  124. post /biService/allProjectExport (ExportReq) returns (biResp)
  125. @doc "资讯全量导出"
  126. @handler allInfoExport
  127. post /biService/allInfoExport (ExportReq) returns (biResp)
  128. @doc "资讯操作"
  129. @handler infoOperate
  130. post /biService/infoOperate (OperateReq) returns (biResp)
  131. }