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"` Account_id int64 `header:"accountId,optional"` Ent_account_id int64 `header:"entAccountId,optional"` Ent_id int64 `header:"entId,optional"` Ent_user_id int64 `header:"entUserId,optional"` } 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) @doc "获取待授权详情" @handler waitEmpowerDetail post /resourceCenter/waitEmpowerDetail (Req) returns (Reply) @doc "获取授权列表" @handler empowerList post /resourceCenter/empowerList (Req) returns (Reply) }