resource.api 845 B

12345678910111213141516171819202122232425262728293031323334353637
  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. surplusData {
  16. Surplus int64 `json:"surplus"`
  17. Total int64 `json:"total"`
  18. }
  19. Reply {
  20. Error_code int64 `json:"error_code"`
  21. Error_msg string `json:"error_msg"`
  22. Data interface{} `json:"data"`
  23. }
  24. )
  25. service resource {
  26. @doc "获取资源剩余详情"
  27. @handler surplusDetail
  28. post /resourceCenter/surplus (Req) returns (Reply)
  29. @doc "获取所有的权益"
  30. @handler haspowers
  31. post /resourceCenter/haspowers (Req) returns (Reply)
  32. }