|
@@ -0,0 +1,45 @@
|
|
|
+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"` //数据来源
|
|
|
+}
|
|
|
+
|
|
|
+type resourcesRes {
|
|
|
+ // TODO: add members here and delete this comment
|
|
|
+ Code int64 `form:"code"`
|
|
|
+ Message string `form:"message"`
|
|
|
+}
|
|
|
+type previewReq {
|
|
|
+ InfoId string `json:"infoId,optional"` //信息标识
|
|
|
+ AccountId string `json:"accountId,optional"` //企业标识
|
|
|
+ DeductionType string `json:"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"`
|
|
|
+}
|
|
|
+service integral-api {
|
|
|
+ //资源操作
|
|
|
+ @handler UpdateUserBalanceHandler // TODO: set handler name and delete this comment
|
|
|
+ post /updateUserBalance (resourcesReq) returns(previewRes)
|
|
|
+ //预览信息
|
|
|
+ @handler FindPreviewHandler // TODO: set handler name and delete this comment
|
|
|
+ post /findPreview (previewReq) returns(previewRes)
|
|
|
+}
|