biService.api 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. syntax = "v1"
  2. type (
  3. resp {
  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. )
  48. service biService-api {
  49. @handler MyDataAsset
  50. post /biService/myDataAsset (myDataAssetReq) returns (resp)
  51. @handler AddProjectReq
  52. post /biService/addProject (addProjectReq) returns (resp)
  53. @handler GetInfoId
  54. post /biService/getInfoId (getInfoIdReq) returns (resp)
  55. @handler DrawClue
  56. post /biService/drawClue (drawClueReq) returns (resp)
  57. @handler Call
  58. post /biService/call (callReq) returns (resp) //拨打电话
  59. @handler DistributeClue
  60. post /biService/distributeClue (DistributeClueReq) returns (resp)
  61. @handler ClueImport
  62. post /biService/clueImport (ClueImportReq) returns (resp)
  63. }