resource.api 761 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 `json:"appid"`
  10. Function_code string `json:"function_code"`
  11. Muser_id string `json:"userId,optional"`
  12. User_id int64 `json:"newUserId,optional"`
  13. Ent_id int64 `json:"entId,optional"`
  14. Ent_user_id int64 `json:"entUserId,optional"`
  15. }
  16. Reply {
  17. Err_code int64 `json:"err_code"`
  18. Err_msg string `json:"err_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. }