biService.api 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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:"userPositionId,optional"`
  15. Source int64 `json:"source,optional"`
  16. InfoId string `json:"info_id,optional"`
  17. PositionType int64 `header:"positionType,optional"`
  18. AccountId int64 `header:"userAccountId,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:"userPositionId,optional"`
  27. }
  28. drawClueReq {
  29. PositionId int64 `json:"positionId,optional"`
  30. Count int64 `json:"count,optional"`
  31. }
  32. callReq {
  33. PositionId int64 `header:"userPositionId,optional"`
  34. Phone string `json:"phone"`
  35. }
  36. )
  37. service biService-api {
  38. @handler MyDataAsset
  39. post /biService/myDataAsset (myDataAssetReq) returns (resp)
  40. @handler AddProjectReq
  41. post /biService/addProject (addProjectReq) returns (resp)
  42. @handler GetInfoId
  43. post /biService/getInfoId (getInfoIdReq) returns (resp)
  44. @handler DrawClue
  45. post /biService/drawClue (drawClueReq) returns (resp)
  46. @handler Call
  47. post /biService/call (callReq) returns (resp) //拨打电话
  48. }