biService.api 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. )
  33. service biService-api {
  34. @handler MyDataAsset
  35. post /biService/myDataAsset (myDataAssetReq) returns (resp)
  36. @handler AddProjectReq
  37. post /biService/addProject (addProjectReq) returns (resp)
  38. @handler GetInfoId
  39. post /biService/getInfoId (getInfoIdReq) returns (resp)
  40. @handler DrawClue
  41. post /biService/drawClue (drawClueReq) returns (resp)
  42. }