resource.api 882 B

1234567891011121314151617181920212223242526272829303132333435
  1. syntax = "v1"
  2. info(
  3. author: "wangchuanjin"
  4. date: "2022-04-19"
  5. desc: "资源中台相关api"
  6. )
  7. type (
  8. Req {
  9. AppId string `header:"appId,default=10000"`
  10. Function_code string `header:"functionCode,optional"`
  11. User_id int64 `header:"newUserId,optional"`
  12. Ent_id int64 `header:"entId,optional"`
  13. Ent_user_id int64 `header:"entUserId,optional"`
  14. }
  15. Reply {
  16. Error_code int64 `json:"error_code"`
  17. Error_msg string `json:"error_msg"`
  18. Data interface{} `json:"data"`
  19. }
  20. )
  21. service resource {
  22. @doc "获取资源剩余详情"
  23. @handler surplusDetail
  24. post /resourceCenter/surplus (Req) returns (Reply)
  25. @doc "获取所有的权益"
  26. @handler haspowers
  27. post /resourceCenter/haspowers (Req) returns (Reply)
  28. @doc "获取待授权详情"
  29. @handler waitEmpowerDetail
  30. post /resourceCenter/waitEmpowerDetail (Req) returns (Reply)
  31. }