1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- 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"` //数据来源
- StartTime string `form:"startTime,optional"` //新增时数据包开始时间
- EndTime string `form:"endTime,optional"` //新增时数据包截止时间
- InfoId string `form:"infoId,optional"` //信息标识
- DuplicateRemoval int64 `form:"duplicateRemoval,optional"` //是否去重0不去1去重
- }
- type resourcesRes {
- // TODO: add members here and delete this comment
- Code int64 `form:"code"`
- Message string `form:"message"`
- }
- type previewReq {
- InfoId string `form:"infoId,optional"` //信息标识
- AccountId string `form:"accountId,optional"` //企业标识
- DeductionType string `form:"deductionType,optional"` //资源代码
- }
- type previewRes {
- // TODO: add members here and delete this comment
- Code int64 `form:"code"`
- Message string `form:"message"`
- RepeatNumb int64 `form:"repeatNumb"`
- DeductionNumb int64 `form:"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)
- }
|