|
@@ -1,38 +1,38 @@
|
|
syntax = "v1"
|
|
syntax = "v1"
|
|
|
|
|
|
type purchResourcesReq {
|
|
type purchResourcesReq {
|
|
- AccountId string `form:"accountId"` //账户标识
|
|
|
|
- CompanyId int64 `form:"companyId,optional"` //企业标识
|
|
|
|
|
|
+ AccountId string `form:"accountId"` //账户标识
|
|
|
|
+ CompanyId int64 `form:"companyId,optional"` //企业标识
|
|
DepartmentId int64 `form:"departmentId,optional"` //组织标识
|
|
DepartmentId int64 `form:"departmentId,optional"` //组织标识
|
|
- Name string `form:"name"` //资源名称
|
|
|
|
|
|
+ Name string `form:"name"` //资源名称
|
|
ResourceType string `form:"resourceType,optional"` //资源类型
|
|
ResourceType string `form:"resourceType,optional"` //资源类型
|
|
- Number int64 `form:"number"` //数量
|
|
|
|
- Spec string `form:"spec,optional"` //规格
|
|
|
|
- AppId string `form:"appId"` //标识
|
|
|
|
- EndTime string `form:"endTime,optional"` //新增时数据包截止时间
|
|
|
|
- VipTime string `form:"vipTime,optional"` //超级订阅时间
|
|
|
|
- Remarks string `form:"remarks,optional"` //备注
|
|
|
|
|
|
+ Number int64 `form:"number"` //数量
|
|
|
|
+ Spec string `form:"spec,optional"` //规格
|
|
|
|
+ AppId string `form:"appId"` //标识
|
|
|
|
+ EndTime string `form:"endTime,optional"` //新增时数据包截止时间
|
|
|
|
+ VipTime string `form:"vipTime,optional"` //超级订阅时间
|
|
|
|
+ Remarks string `form:"remarks,optional"` //备注
|
|
}
|
|
}
|
|
|
|
|
|
type vipReq {
|
|
type vipReq {
|
|
- VipTime string `form:"vipTime,optional"` //超级订阅时间
|
|
|
|
|
|
+ VipTime string `form:"vipTime,optional"` //超级订阅时间
|
|
AccountId string `form:"accountId,optional"` //账户标识
|
|
AccountId string `form:"accountId,optional"` //账户标识
|
|
}
|
|
}
|
|
|
|
|
|
type useResourcesReq {
|
|
type useResourcesReq {
|
|
- AccountId string `form:"accountId"` //账户标识
|
|
|
|
- CompanyId int64 `form:"companyId,optional"` //企业标识
|
|
|
|
- DepartmentId int64 `form:"departmentId,optional"` //组织标识
|
|
|
|
- Name string `form:"name"` //资源名称
|
|
|
|
- ResourceType string `form:"resourceType,optional"` //资源类型
|
|
|
|
- Number int64 `form:"number"` //数量
|
|
|
|
- AppId string `form:"appId"` //标识
|
|
|
|
- RuleId string `form:"ruleId,optional"` //使用规则标识
|
|
|
|
- UserId string `form:"userId"` //用户标识
|
|
|
|
- Remarks string `form:"remarks,optional"` //备注
|
|
|
|
- InfoId string `form:"infoId,optional"` //信息标识
|
|
|
|
|
|
+ AccountId string `form:"accountId"` //账户标识
|
|
|
|
+ CompanyId int64 `form:"companyId,optional"` //企业标识
|
|
|
|
+ DepartmentId int64 `form:"departmentId,optional"` //组织标识
|
|
|
|
+ Name string `form:"name"` //资源名称
|
|
|
|
+ ResourceType string `form:"resourceType,optional"` //资源类型
|
|
|
|
+ Number int64 `form:"number"` //数量
|
|
|
|
+ AppId string `form:"appId"` //标识
|
|
|
|
+ RuleId string `form:"ruleId,optional"` //使用规则标识
|
|
|
|
+ UserId string `form:"userId"` //用户标识
|
|
|
|
+ Remarks string `form:"remarks,optional"` //备注
|
|
|
|
+ InfoId string `form:"infoId,optional"` //信息标识
|
|
DuplicateRemoval int64 `form:"duplicateRemoval,optional"` //是否去重0不去1去重
|
|
DuplicateRemoval int64 `form:"duplicateRemoval,optional"` //是否去重0不去1去重
|
|
- VipState int64 `form:"vipState,optional"` //超级订阅状态
|
|
|
|
|
|
+ VipState int64 `form:"vipState,optional"` //超级订阅状态
|
|
}
|
|
}
|
|
|
|
|
|
type resourcesRes {
|
|
type resourcesRes {
|
|
@@ -49,8 +49,8 @@ type useUserResponse {
|
|
}
|
|
}
|
|
|
|
|
|
type previewReq {
|
|
type previewReq {
|
|
- InfoId string `form:"infoId,optional"` //信息标识
|
|
|
|
- AccountId string `form:"accountId,optional"` //企业标识
|
|
|
|
|
|
+ InfoId string `form:"infoId,optional"` //信息标识
|
|
|
|
+ AccountId string `form:"accountId,optional"` //企业标识
|
|
ResourceType string `form:"resourceType,optional"` //资源类型
|
|
ResourceType string `form:"resourceType,optional"` //资源类型
|
|
}
|
|
}
|
|
|
|
|
|
@@ -65,12 +65,12 @@ type previewRes {
|
|
//流水账请求参数返回参数
|
|
//流水账请求参数返回参数
|
|
type recordReq {
|
|
type recordReq {
|
|
AccountId string `form:"accountId,optional"` //企业标识
|
|
AccountId string `form:"accountId,optional"` //企业标识
|
|
- UserId string `form:"userId,optional"` //用户标识
|
|
|
|
|
|
+ UserId string `form:"userId,optional"` //用户标识
|
|
Page int64 `form:"page,optional"`
|
|
Page int64 `form:"page,optional"`
|
|
PageSize int64 `form:"pageSize,optional"`
|
|
PageSize int64 `form:"pageSize,optional"`
|
|
ResourceType string `form:"resourceType,optional"` //资源类型
|
|
ResourceType string `form:"resourceType,optional"` //资源类型
|
|
- State int64 `form:"state,optional"` //0查消耗记录 1 查充值记录 2 新增 作废 -1查询全部
|
|
|
|
- QueryTime string `form:"queryTime,optional"` //查询时间
|
|
|
|
|
|
+ State int64 `form:"state,optional"` //0查消耗记录 1 查充值记录 2 新增 作废 -1查询全部
|
|
|
|
+ QueryTime string `form:"queryTime,optional"` //查询时间
|
|
}
|
|
}
|
|
|
|
|
|
type recordRes {
|
|
type recordRes {
|
|
@@ -82,8 +82,8 @@ type recordRes {
|
|
|
|
|
|
//查询用户资源权限
|
|
//查询用户资源权限
|
|
type authReq {
|
|
type authReq {
|
|
- AccountId string `form:"accountId,optional"` //企业标识
|
|
|
|
- UserId string `form:"userId,optional"` //用户标识
|
|
|
|
|
|
+ AccountId string `form:"accountId,optional"` //企业标识
|
|
|
|
+ UserId string `form:"userId,optional"` //用户标识
|
|
ResourceType string `form:"resourceType,optional"` //资源类型
|
|
ResourceType string `form:"resourceType,optional"` //资源类型
|
|
}
|
|
}
|
|
|
|
|
|
@@ -95,12 +95,12 @@ type authRes {
|
|
|
|
|
|
//账户余额
|
|
//账户余额
|
|
type balanceReq {
|
|
type balanceReq {
|
|
- AccountId string `form:"accountId,optional"` //企业标识
|
|
|
|
- UserId string `form:"userId,optional"` //用户标识
|
|
|
|
- ResourceType string `form:"resourceType,optional"` //资源类型
|
|
|
|
- ResourceName string `form:"resourceName,optional"` //资源名字
|
|
|
|
|
|
+ AccountId string `form:"accountId,optional"` //企业标识
|
|
|
|
+ UserId string `form:"userId,optional"` //用户标识
|
|
|
|
+ ResourceType string `form:"resourceType,optional"` //资源类型
|
|
|
|
+ ResourceName string `form:"resourceName,optional"` //资源名字
|
|
ShowMinEndTime int64 `form:"showMinEndTime,optional"` //是否展示最近到期时间 1是 0不展示
|
|
ShowMinEndTime int64 `form:"showMinEndTime,optional"` //是否展示最近到期时间 1是 0不展示
|
|
- VipState int64 `form:"vipState,optional"` //超级订阅状态
|
|
|
|
|
|
+ VipState int64 `form:"vipState,optional"` //超级订阅状态
|
|
}
|
|
}
|
|
|
|
|
|
type balanceRes {
|
|
type balanceRes {
|
|
@@ -110,24 +110,24 @@ type balanceRes {
|
|
}
|
|
}
|
|
|
|
|
|
type mergeInfo {
|
|
type mergeInfo {
|
|
- MergeUser string `form:"mergeUser"` //合并用户
|
|
|
|
|
|
+ MergeUser string `form:"mergeUser"` //合并用户
|
|
MergedUser string `form:"mergedUser"` //被合并用户
|
|
MergedUser string `form:"mergedUser"` //被合并用户
|
|
- AppId string `form:"appId"` //身份标识
|
|
|
|
|
|
+ AppId string `form:"appId"` //身份标识
|
|
}
|
|
}
|
|
|
|
|
|
type EntSourceNumAdd {
|
|
type EntSourceNumAdd {
|
|
- AccountId string `form:"accountId,optional"` //账户标识
|
|
|
|
- CompanyId int64 `form:"companyId,optional"` //企业标识
|
|
|
|
|
|
+ AccountId string `form:"accountId,optional"` //账户标识
|
|
|
|
+ CompanyId int64 `form:"companyId,optional"` //企业标识
|
|
DepartmentId string `form:"departmentId,optional"` //组织标识
|
|
DepartmentId string `form:"departmentId,optional"` //组织标识
|
|
- EmpowerId int64 `form:"empowerId,optional"` //套餐id
|
|
|
|
- UserId string `form:"userId,optional"` //用户标识
|
|
|
|
- Name string `form:"name,optional"` //资源名称
|
|
|
|
|
|
+ EmpowerId int64 `form:"empowerId,optional"` //套餐id
|
|
|
|
+ UserId string `form:"userId,optional"` //用户标识
|
|
|
|
+ Name string `form:"name,optional"` //资源名称
|
|
ResourceType string `form:"resourceType,optional"` //资源类型
|
|
ResourceType string `form:"resourceType,optional"` //资源类型
|
|
- Number int64 `form:"number,optional"` //资源数量
|
|
|
|
- Spec string `form:"spec,optional"` //规格
|
|
|
|
- AppId string `form:"appId,optional"` //标识
|
|
|
|
- EndTime string `form:"endTime,optional"` //资源有效时间
|
|
|
|
- Remarks string `form:"remarks,optional"` //备注
|
|
|
|
|
|
+ Number int64 `form:"number,optional"` //资源数量
|
|
|
|
+ Spec string `form:"spec,optional"` //规格
|
|
|
|
+ AppId string `form:"appId,optional"` //标识
|
|
|
|
+ EndTime string `form:"endTime,optional"` //资源有效时间
|
|
|
|
+ Remarks string `form:"remarks,optional"` //备注
|
|
}
|
|
}
|
|
|
|
|
|
type EntAccountAdd {
|
|
type EntAccountAdd {
|
|
@@ -136,27 +136,25 @@ type EntAccountAdd {
|
|
}
|
|
}
|
|
|
|
|
|
type EntOperateReq {
|
|
type EntOperateReq {
|
|
- CompanyId int64 `form:"companyId,optional"` //企业标识
|
|
|
|
- EmpowerId int64 `form:"empowerId,optional"` //套餐id
|
|
|
|
- ResourceType string `form:"resourceType,optional"` //资源类型
|
|
|
|
|
|
+ CompanyId int64 `form:"companyId,optional"` //企业标识
|
|
|
|
+ EmpowerId int64 `form:"empowerId,optional"` //套餐id
|
|
|
|
+ ResourceType string `form:"resourceType,optional"` //资源类型
|
|
OperateAccountId string `form:"operateAccountId,optional"` //操作账户
|
|
OperateAccountId string `form:"operateAccountId,optional"` //操作账户
|
|
}
|
|
}
|
|
|
|
|
|
type ChargeAccountReq {
|
|
type ChargeAccountReq {
|
|
- EntId int64 `form:"entId,optional"`
|
|
|
|
- UserId int64 `form:"userId,optional"`
|
|
|
|
|
|
+ EntId int64 `form:"entId,optional"`
|
|
|
|
+ UserId string `form:"userId,optional"`
|
|
}
|
|
}
|
|
|
|
|
|
type ChargeReq {
|
|
type ChargeReq {
|
|
EntId int64 `form:"entId,optional"`
|
|
EntId int64 `form:"entId,optional"`
|
|
- UserId int64 `form:"userId,optional"`
|
|
|
|
|
|
+ UserId string `form:"userId,optional"`
|
|
EntUserId int64 `form:"entUserId,optional"`
|
|
EntUserId int64 `form:"entUserId,optional"`
|
|
ExportNum int64 `form:"exportNum,optional"`
|
|
ExportNum int64 `form:"exportNum,optional"`
|
|
DeductNum int64 `form:"deductNum,optional"`
|
|
DeductNum int64 `form:"deductNum,optional"`
|
|
DownloadUrl string `form:"downloadUrl,optional"`
|
|
DownloadUrl string `form:"downloadUrl,optional"`
|
|
Filter string `form:"filter,optional"`
|
|
Filter string `form:"filter,optional"`
|
|
- PositionId string `form:"positionId,optional"`
|
|
|
|
- AccountId string `form:"accountId,optional"`
|
|
|
|
}
|
|
}
|
|
|
|
|
|
type chargeResp {
|
|
type chargeResp {
|
|
@@ -169,53 +167,52 @@ service integral-api {
|
|
//资源使用
|
|
//资源使用
|
|
@handler UseUserDetailedHandler // TODO: set handler name and delete this comment
|
|
@handler UseUserDetailedHandler // TODO: set handler name and delete this comment
|
|
post /resources/useUserDetailed (useResourcesReq) returns (resourcesRes)
|
|
post /resources/useUserDetailed (useResourcesReq) returns (resourcesRes)
|
|
-
|
|
|
|
|
|
+
|
|
//购买资源
|
|
//购买资源
|
|
@handler PurchaseUserBalanceHandler // TODO: set handler name and delete this comment
|
|
@handler PurchaseUserBalanceHandler // TODO: set handler name and delete this comment
|
|
post /resources/purchaseUserBalance (purchResourcesReq) returns (useUserResponse)
|
|
post /resources/purchaseUserBalance (purchResourcesReq) returns (useUserResponse)
|
|
-
|
|
|
|
|
|
+
|
|
//预览信息
|
|
//预览信息
|
|
@handler FindPreviewHandler // TODO: set handler name and delete this comment
|
|
@handler FindPreviewHandler // TODO: set handler name and delete this comment
|
|
post /resources/findPreview (previewReq) returns (previewRes)
|
|
post /resources/findPreview (previewReq) returns (previewRes)
|
|
-
|
|
|
|
|
|
+
|
|
//流水账
|
|
//流水账
|
|
@handler FindRecordHandler // TODO: set handler name and delete this comment
|
|
@handler FindRecordHandler // TODO: set handler name and delete this comment
|
|
post /resources/findRecord (recordReq) returns (recordRes)
|
|
post /resources/findRecord (recordReq) returns (recordRes)
|
|
-
|
|
|
|
|
|
+
|
|
//查询账户资源权限
|
|
//查询账户资源权限
|
|
@handler FindAuthHandler // TODO: set handler name and delete this comment
|
|
@handler FindAuthHandler // TODO: set handler name and delete this comment
|
|
post /resources/findAuth (authReq) returns (recordRes)
|
|
post /resources/findAuth (authReq) returns (recordRes)
|
|
-
|
|
|
|
|
|
+
|
|
//查询账户余额
|
|
//查询账户余额
|
|
@handler FindBalanceHandler // TODO: set handler name and delete this comment
|
|
@handler FindBalanceHandler // TODO: set handler name and delete this comment
|
|
post /resources/findBalance (balanceReq) returns (balanceRes)
|
|
post /resources/findBalance (balanceReq) returns (balanceRes)
|
|
-
|
|
|
|
|
|
+
|
|
//账号合并
|
|
//账号合并
|
|
@handler UserMergeHandler // TODO: set handler name and delete this comment
|
|
@handler UserMergeHandler // TODO: set handler name and delete this comment
|
|
post /resources/userMerge (mergeInfo) returns (resourcesRes)
|
|
post /resources/userMerge (mergeInfo) returns (resourcesRes)
|
|
-
|
|
|
|
|
|
+
|
|
//账号合并
|
|
//账号合并
|
|
@handler UpdateVipTimeHandler // TODO: set handler name and delete this comment
|
|
@handler UpdateVipTimeHandler // TODO: set handler name and delete this comment
|
|
post /resources/updateVipTime (vipReq) returns (resourcesRes)
|
|
post /resources/updateVipTime (vipReq) returns (resourcesRes)
|
|
-
|
|
|
|
|
|
+
|
|
@handler EntSourceNumAdd // TODO: set handler name and delete this comment
|
|
@handler EntSourceNumAdd // TODO: set handler name and delete this comment
|
|
post /resources/entSourceNumAdd (EntSourceNumAdd) returns (resourcesRes)
|
|
post /resources/entSourceNumAdd (EntSourceNumAdd) returns (resourcesRes)
|
|
-
|
|
|
|
|
|
+
|
|
@handler EntAccountAdd // TODO: set handler name and delete this comment
|
|
@handler EntAccountAdd // TODO: set handler name and delete this comment
|
|
post /resources/entAccountAdd (EntAccountAdd) returns (resourcesRes)
|
|
post /resources/entAccountAdd (EntAccountAdd) returns (resourcesRes)
|
|
-
|
|
|
|
|
|
+
|
|
@handler EntAccountGiven // TODO: set handler name and delete this comment
|
|
@handler EntAccountGiven // TODO: set handler name and delete this comment
|
|
post /resources/entAccountGiven (EntOperateReq) returns (resourcesRes)
|
|
post /resources/entAccountGiven (EntOperateReq) returns (resourcesRes)
|
|
-
|
|
|
|
|
|
+
|
|
@handler EntAccountRecovery // TODO: set handler name and delete this comment
|
|
@handler EntAccountRecovery // TODO: set handler name and delete this comment
|
|
post /resources/entAccountRecovery (EntOperateReq) returns (resourcesRes)
|
|
post /resources/entAccountRecovery (EntOperateReq) returns (resourcesRes)
|
|
-
|
|
|
|
|
|
+
|
|
// 剑鱼定制导出扣费方式
|
|
// 剑鱼定制导出扣费方式
|
|
@handler ExportChargeAccount
|
|
@handler ExportChargeAccount
|
|
post /customExport/account (ChargeAccountReq) returns (chargeResp)
|
|
post /customExport/account (ChargeAccountReq) returns (chargeResp)
|
|
-
|
|
|
|
|
|
+
|
|
// 剑鱼定制导出数据扣费
|
|
// 剑鱼定制导出数据扣费
|
|
@handler ExportCharge
|
|
@handler ExportCharge
|
|
post /customExport/charge (ChargeReq) returns (chargeResp)
|
|
post /customExport/charge (ChargeReq) returns (chargeResp)
|
|
-}
|
|
|
|
-
|
|
|
|
|
|
+}
|