|
@@ -1,48 +1,80 @@
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
package types
|
|
|
|
|
|
-type ChargeAccountReq struct {
|
|
|
- EntId int64 `form:"entId,optional"`
|
|
|
- UserId int64 `form:"userId,optional"`
|
|
|
-}
|
|
|
-
|
|
|
-type ChargeReq struct {
|
|
|
- EntId int64 `form:"entId,optional"`
|
|
|
- UserId int64 `form:"userId,optional"`
|
|
|
- EntUserId int64 `form:"entUserId,optional"`
|
|
|
- ExportNum int64 `form:"exportNum,optional"`
|
|
|
- DeductNum int64 `form:"deductNum,optional"`
|
|
|
- DownloadUrl string `form:"downloadUrl,optional"`
|
|
|
- Filter string `form:"filter,optional"`
|
|
|
- PositionId string `form:"positionId,optional"`
|
|
|
- AccountId string `form:"accountId,optional"`
|
|
|
+type PurchResourcesReq struct {
|
|
|
+ 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"` //数量
|
|
|
+ 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 EntAccountAdd struct {
|
|
|
- EntSourceNumAdd
|
|
|
- AccountNum int64 `form:"accountNum,optional"` //新增账号数量,-1操作现有所有账户
|
|
|
+type VipReq struct {
|
|
|
+ VipTime string `form:"vipTime,optional"` //超级订阅时间
|
|
|
+ AccountId string `form:"accountId,optional"` //账户标识
|
|
|
}
|
|
|
|
|
|
-type EntOperateReq struct {
|
|
|
+type UseResourcesReq struct {
|
|
|
+ AccountId string `form:"accountId"` //账户标识
|
|
|
CompanyId int64 `form:"companyId,optional"` //企业标识
|
|
|
- EmpowerId int64 `form:"empowerId,optional"` //套餐id
|
|
|
+ DepartmentId int64 `form:"departmentId,optional"` //组织标识
|
|
|
+ Name string `form:"name"` //资源名称
|
|
|
ResourceType string `form:"resourceType,optional"` //资源类型
|
|
|
- OperateAccountId string `form:"operateAccountId,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去重
|
|
|
+ VipState int64 `form:"vipState,optional"` //超级订阅状态
|
|
|
}
|
|
|
|
|
|
-type EntSourceNumAdd struct {
|
|
|
- AccountId string `form:"accountId,optional"` //账户标识
|
|
|
- CompanyId int64 `form:"companyId,optional"` //企业标识
|
|
|
- DepartmentId string `form:"departmentId,optional"` //组织标识
|
|
|
- EmpowerId int64 `form:"empowerId,optional"` //套餐id
|
|
|
- UserId string `form:"userId,optional"` //用户标识
|
|
|
- Name string `form:"name,optional"` //资源名称
|
|
|
+type ResourcesRes struct {
|
|
|
+ Code int64 `json:"code"`
|
|
|
+ Message string `json:"message"`
|
|
|
+}
|
|
|
+
|
|
|
+type UseUserResponse struct {
|
|
|
+ Code int64 `json:"code"`
|
|
|
+ Message string `json:"message"`
|
|
|
+ DeductionNumb int64 `json:"deductionNumb"`
|
|
|
+}
|
|
|
+
|
|
|
+type PreviewReq struct {
|
|
|
+ InfoId string `form:"infoId,optional"` //信息标识
|
|
|
+ AccountId string `form:"accountId,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"` //备注
|
|
|
+}
|
|
|
+
|
|
|
+type PreviewRes struct {
|
|
|
+ Code int64 `json:"code"`
|
|
|
+ Message string `json:"message"`
|
|
|
+ RepeatNumb int64 `json:"repeatNumb"`
|
|
|
+ DeductionNumb int64 `json:"deductionNumb"`
|
|
|
+}
|
|
|
+
|
|
|
+type RecordReq struct {
|
|
|
+ AccountId string `form:"accountId,optional"` //企业标识
|
|
|
+ UserId string `form:"userId,optional"` //用户标识
|
|
|
+ Page int64 `form:"page,optional"`
|
|
|
+ PageSize int64 `form:"pageSize,optional"`
|
|
|
+ ResourceType string `form:"resourceType,optional"` //资源类型
|
|
|
+ State int64 `form:"state,optional"` //0查消耗记录 1 查充值记录 2 新增 作废 -1查询全部
|
|
|
+ QueryTime string `form:"queryTime,optional"` //查询时间
|
|
|
+}
|
|
|
+
|
|
|
+type RecordRes struct {
|
|
|
+ Code int64 `json:"code"`
|
|
|
+ Message string `json:"message"`
|
|
|
+ Data []map[string]interface{} `json:"data"`
|
|
|
+ Count int64 `json:"count"`
|
|
|
}
|
|
|
|
|
|
type AuthReq struct {
|
|
@@ -72,90 +104,56 @@ type BalanceRes struct {
|
|
|
Data []map[string]interface{} `json:"data"`
|
|
|
}
|
|
|
|
|
|
-type ChargeResp struct {
|
|
|
- Code int64 `json:"code"`
|
|
|
- Message string `json:"message"`
|
|
|
- Data interface{} `json:"data"`
|
|
|
-}
|
|
|
-
|
|
|
type MergeInfo struct {
|
|
|
MergeUser string `form:"mergeUser"` //合并用户
|
|
|
MergedUser string `form:"mergedUser"` //被合并用户
|
|
|
AppId string `form:"appId"` //身份标识
|
|
|
}
|
|
|
|
|
|
-type PreviewReq struct {
|
|
|
- InfoId string `form:"infoId,optional"` //信息标识
|
|
|
- AccountId string `form:"accountId,optional"` //企业标识
|
|
|
- ResourceType string `form:"resourceType,optional"` //资源类型
|
|
|
-}
|
|
|
-
|
|
|
-type PreviewRes struct {
|
|
|
- Code int64 `json:"code"`
|
|
|
- Message string `json:"message"`
|
|
|
- RepeatNumb int64 `json:"repeatNumb"`
|
|
|
- DeductionNumb int64 `json:"deductionNumb"`
|
|
|
-}
|
|
|
-
|
|
|
-type PurchResourcesReq struct {
|
|
|
- AccountId string `form:"accountId"` //账户标识
|
|
|
+type EntSourceNumAdd struct {
|
|
|
+ AccountId string `form:"accountId,optional"` //账户标识
|
|
|
CompanyId int64 `form:"companyId,optional"` //企业标识
|
|
|
- DepartmentId int64 `form:"departmentId,optional"` //组织标识
|
|
|
- Name string `form:"name"` //资源名称
|
|
|
+ DepartmentId string `form:"departmentId,optional"` //组织标识
|
|
|
+ EmpowerId int64 `form:"empowerId,optional"` //套餐id
|
|
|
+ UserId string `form:"userId,optional"` //用户标识
|
|
|
+ Name string `form:"name,optional"` //资源名称
|
|
|
ResourceType string `form:"resourceType,optional"` //资源类型
|
|
|
- Number int64 `form:"number"` //数量
|
|
|
+ Number int64 `form:"number,optional"` //资源数量
|
|
|
Spec string `form:"spec,optional"` //规格
|
|
|
- AppId string `form:"appId"` //标识
|
|
|
- EndTime string `form:"endTime,optional"` //新增时数据包截止时间
|
|
|
- VipTime string `form:"vipTime,optional"` //超级订阅时间
|
|
|
+ AppId string `form:"appId,optional"` //标识
|
|
|
+ EndTime string `form:"endTime,optional"` //资源有效时间
|
|
|
Remarks string `form:"remarks,optional"` //备注
|
|
|
}
|
|
|
|
|
|
-type RecordReq struct {
|
|
|
- AccountId string `form:"accountId,optional"` //企业标识
|
|
|
- UserId string `form:"userId,optional"` //用户标识
|
|
|
- Page int64 `form:"page,optional"`
|
|
|
- PageSize int64 `form:"pageSize,optional"`
|
|
|
- ResourceType string `form:"resourceType,optional"` //资源类型
|
|
|
- State int64 `form:"state,optional"` //0查消耗记录 1 查充值记录 2 新增 作废 -1查询全部
|
|
|
- QueryTime string `form:"queryTime,optional"` //查询时间
|
|
|
-}
|
|
|
-
|
|
|
-type RecordRes struct {
|
|
|
- Code int64 `json:"code"`
|
|
|
- Message string `json:"message"`
|
|
|
- Data []map[string]interface{} `json:"data"`
|
|
|
- Count int64 `json:"count"`
|
|
|
-}
|
|
|
-
|
|
|
-type ResourcesRes struct {
|
|
|
- Code int64 `json:"code"`
|
|
|
- Message string `json:"message"`
|
|
|
+type EntAccountAdd struct {
|
|
|
+ EntSourceNumAdd
|
|
|
+ AccountNum int64 `form:"accountNum,optional"` //新增账号数量,-1操作现有所有账户
|
|
|
}
|
|
|
|
|
|
-type UseResourcesReq struct {
|
|
|
- AccountId string `form:"accountId"` //账户标识
|
|
|
+type EntOperateReq struct {
|
|
|
CompanyId int64 `form:"companyId,optional"` //企业标识
|
|
|
- DepartmentId int64 `form:"departmentId,optional"` //组织标识
|
|
|
- Name string `form:"name"` //资源名称
|
|
|
+ EmpowerId int64 `form:"empowerId,optional"` //套餐id
|
|
|
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去重
|
|
|
- VipState int64 `form:"vipState,optional"` //超级订阅状态
|
|
|
+ OperateAccountId string `form:"operateAccountId,optional"` //操作账户
|
|
|
}
|
|
|
|
|
|
-type UseUserResponse struct {
|
|
|
- Code int64 `json:"code"`
|
|
|
- Message string `json:"message"`
|
|
|
- DeductionNumb int64 `json:"deductionNumb"`
|
|
|
+type ChargeAccountReq struct {
|
|
|
+ EntId int64 `form:"entId,optional"`
|
|
|
+ UserId string `form:"userId,optional"`
|
|
|
}
|
|
|
|
|
|
-type VipReq struct {
|
|
|
- VipTime string `form:"vipTime,optional"` //超级订阅时间
|
|
|
- AccountId string `form:"accountId,optional"` //账户标识
|
|
|
+type ChargeReq struct {
|
|
|
+ EntId int64 `form:"entId,optional"`
|
|
|
+ UserId string `form:"userId,optional"`
|
|
|
+ EntUserId int64 `form:"entUserId,optional"`
|
|
|
+ ExportNum int64 `form:"exportNum,optional"`
|
|
|
+ DeductNum int64 `form:"deductNum,optional"`
|
|
|
+ DownloadUrl string `form:"downloadUrl,optional"`
|
|
|
+ Filter string `form:"filter,optional"`
|
|
|
+}
|
|
|
+
|
|
|
+type ChargeResp struct {
|
|
|
+ Code int64 `json:"code"`
|
|
|
+ Message string `json:"message"`
|
|
|
+ Data interface{} `json:"data"`
|
|
|
}
|