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