biService.api 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. 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. )
  64. service biService-api {
  65. @handler MyDataAsset
  66. post /biService/myDataAsset (myDataAssetReq) returns (resp)
  67. @handler AddProjectReq
  68. post /biService/addProject (addProjectReq) returns (resp)
  69. @handler GetInfoId
  70. post /biService/getInfoId (getInfoIdReq) returns (resp)
  71. @handler DrawClue
  72. post /biService/drawClue (drawClueReq) returns (resp)
  73. @handler Call
  74. post /biService/call (callReq) returns (resp) //拨打电话
  75. @handler DistributeClue
  76. post /biService/distributeClue (DistributeClueReq) returns (resp)
  77. @handler ClueImport
  78. post /biService/clueImport (ClueImportReq) returns (resp)
  79. @handler ClueAdd
  80. post /biService/ClueAdd (ClueAddReq) returns (resp)
  81. @handler ClueImportTl
  82. post /biService/clueImportTt (ClueImportReq) returns (resp)
  83. }