resource.api 829 B

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