biService.api 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. )
  29. service biService-api {
  30. @handler MyDataAsset
  31. post /biService/myDataAsset (myDataAssetReq) returns (resp)
  32. @handler AddProjectReq
  33. post /biService/addProject (addProjectReq) returns (resp)
  34. @handler GetInfoId
  35. post /biService/getInfoId (getInfoIdReq) returns (resp)
  36. }