biService.api 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. }
  23. getInfoIdReq {
  24. PositionId int64 `header:"userPositionId,optional"`
  25. }
  26. )
  27. service biService-api {
  28. @handler MyDataAsset
  29. post /biService/myDataAsset (myDataAssetReq) returns (resp)
  30. @handler AddProjectReq
  31. post /biService/addProject (addProjectReq) returns (resp)
  32. @handler GetInfoId
  33. post /biService/getInfoId (getInfoIdReq) returns (resp)
  34. }