12345678910111213141516171819202122232425262728293031323334353637 |
- syntax = "v1"
- info(
- author: "wangchuanjin"
- date: "2022-04-19"
- desc: "资源中台相关api"
- )
- type (
- Req {
- AppId string `header:"appId,default=10000"`
- Function_code string `header:"functionCode,optional"`
- User_id int64 `header:"newUserId,optional"`
- Ent_id int64 `header:"entId,optional"`
- Ent_user_id int64 `header:"entUserId,optional"`
- }
- surplusData {
- Surplus int64 `json:"surplus"`
- Total int64 `json:"total"`
- }
- Reply {
- Error_code int64 `json:"error_code"`
- Error_msg string `json:"error_msg"`
- Data interface{} `json:"data"`
- }
- )
- service resource {
- @doc "获取资源剩余详情"
- @handler surplusDetail
- post /resourceCenter/surplus (Req) returns (Reply)
- @doc "获取所有的权益"
- @handler haspowers
- post /resourceCenter/haspowers (Req) returns (Reply)
- }
|