|
@@ -1,20 +1,25 @@
|
|
|
syntax = "v1"
|
|
|
|
|
|
type resourcesReq {
|
|
|
- AccountId string `json:"accountId"` //账户标识
|
|
|
- CompanyId int64 `json:"companyId,optional"` //企业标识
|
|
|
- DepartmentId int64 `json:"departmentId,optional"` //组织标识
|
|
|
- Name string `json:"name"` //资源名称
|
|
|
- ResourceType string `json:"resourceType"` //资源类型
|
|
|
- Number int64 `json:"number"` //数量
|
|
|
- Spec string `json:"spec,optional"` //规格
|
|
|
- AppId string `json:"appId"` //标识
|
|
|
- Model int64 `json:"model"` //操作类型0使用1新增
|
|
|
- RuleId string `json:"ruleId,optional"` //使用规则标识
|
|
|
- UserId string `json:"userId"` //用户标识
|
|
|
- Url string `json:"url,optional"` //下载地址
|
|
|
- SearchCriteria string `json:"searchCriteria,optional"` //搜索条件
|
|
|
- Source string `json:"source,optional"` //数据来源
|
|
|
+ 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 {
|
|
@@ -23,9 +28,9 @@ type resourcesRes {
|
|
|
Message string `form:"message"`
|
|
|
}
|
|
|
type previewReq {
|
|
|
- InfoId string `json:"infoId,optional"` //信息标识
|
|
|
- AccountId string `json:"accountId,optional"` //企业标识
|
|
|
- DeductionType string `json:"deductionType,optional"` //资源代码
|
|
|
+ InfoId string `form:"infoId,optional"` //信息标识
|
|
|
+ AccountId string `form:"accountId,optional"` //企业标识
|
|
|
+ DeductionType string `form:"deductionType,optional"` //资源代码
|
|
|
}
|
|
|
|
|
|
type previewRes {
|
|
@@ -63,7 +68,7 @@ type authRes {
|
|
|
service integral-api {
|
|
|
//资源操作
|
|
|
@handler UpdateUserBalanceHandler // TODO: set handler name and delete this comment
|
|
|
- post /updateUserBalance (resourcesReq) returns(previewRes)
|
|
|
+ post /resources/updateUserBalance (resourcesReq) returns(resourcesRes)
|
|
|
//预览信息
|
|
|
@handler FindPreviewHandler // TODO: set handler name and delete this comment
|
|
|
post /findPreview (previewReq) returns(previewRes)
|