12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- syntax = "v1"
- type resourcesReq {
- AccountId string `form:"accountId"` //账户标识
- CompanyId int64 `form:"companyId,optional"` //企业标识
- DepartmentId int64 `form:"departmentId,optional"` //组织标识
- Name string `form:"name"` //资源名称
- ResourceType string `form:"resourceType"` //资源类型
- Number int64 `form:"number"` //数量
- Spec string `form:"spec,optional"` //规格
- AppId string `form:"appId"` //标识
- Model int64 `form:"model"` //操作类型0使用1新增
- RuleId string `form:"ruleId,optional"` //使用规则标识
- UserId string `form:"userId"` //用户标识
- Url string `form:"url,optional"` //下载地址
- SearchCriteria string `form:"searchCriteria,optional"` //搜索条件
- Source string `form:"source,optional"` //数据来源
- EndTime string `form:"endTime,optional"` //新增时数据包截止时间
- InfoId string `form:"infoId,optional"` //信息标识
- DuplicateRemoval int64 `form:"duplicateRemoval,optional"` //是否去重0不去1去重
- DeductionType string `form:"deductionType,optional"` //扣费类型(1高级字段包)
- }
- type resourcesRes {
- // TODO: add members here and delete this comment
- Code int64 `json:"code"`
- Message string `json:"message"`
- }
- type previewReq {
- InfoId string `form:"infoId,optional"` //信息标识
- AccountId string `form:"accountId,optional"` //企业标识
- ResourceType string `form:"resourceType,optional"` //资源类型
- }
- type previewRes {
- // TODO: add members here and delete this comment
- Code int64 `json:"code"`
- Message string `json:"message"`
- RepeatNumb int64 `json:"repeatNumb"`
- DeductionNumb int64 `json:"deductionNumb"`
- }
- //流水账请求参数返回参数
- type recordReq {
- AccountId string `form:"accountId,optional"` //企业标识
- UserId string `form:"userId,optional"` //用户标识
- Page int `form:"page,optional"`
- PageSize int `form:"pageSize,optional"`
- }
- type recordRes {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Data []map[string]interface{} `json:"data"`
- Count int64 `json:"count"`
- }
- //查询用户资源权限
- type authReq {
- AccountId string `form:"accountId,optional"` //企业标识
- UserId string `form:"userId,optional"` //用户标识
- }
- type authRes {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Data []map[string]interface{} `json:"data"`
- }
- //账户余额
- type balanceReq {
- AccountId string `form:"accountId,optional"` //企业标识
- UserId string `form:"userId,optional"` //用户标识
- }
- type balanceRes {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Data []map[string]interface{} `json:"data"`
- }
- service integral-api {
- //资源操作
- @handler UpdateUserBalanceHandler // TODO: set handler name and delete this comment
- post /resources/updateUserBalance (resourcesReq) returns(resourcesRes)
- //预览信息
- @handler FindPreviewHandler // TODO: set handler name and delete this comment
- post /findPreview (previewReq) returns(previewRes)
- //流水账
- @handler FindRecordHandler // TODO: set handler name and delete this comment
- post /findRecord (recordReq) returns(recordRes)
- //查询账户资源权限
- @handler FindAuthHandler // TODO: set handler name and delete this comment
- post /findAuth (authReq) returns(recordRes)
- //查询账户余额
- @handler FindBalanceHandler // TODO: set handler name and delete this comment
- post /findBalance (balanceReq) returns(balanceRes)
- }
|