Documentation ¶
Index ¶
- type Cdk
- type CdkType
- type CreateCdkOrderReq
- type CreateCdkOrderResp
- type CreateCdkTypeReq
- type CreateCdkTypeResp
- type CreateCdksReq
- type CreateCdksResp
- type DealCdkOrderReq
- type DealCdkOrderResp
- type DeleteCdkTypesReq
- type DeleteCdkTypesResp
- type DeleteCdksReq
- type DeleteCdksResp
- type ExchangeCdksReq
- type ExchangeCdksResp
- type GeneralResponse
- type GetCdkTypeByCoinNameReq
- type GetCdkTypeByCoinNameResp
- type GetCdkTypesReq
- type GetCdkTypesResp
- type GetCdksByUserIdReq
- type GetCdksByUserIdResp
- type GetCdksReq
- type GetCdksResp
- type PageInfo
- type UpdateCdkTypeReq
- type UpdateCdkTypeResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cdk ¶
type Cdk struct { Id string `json:"id"` CdkId string `json:"cdkId"` CdkName string `json:"cdkName"` CdkContent string `json:"cdkContent"` UserId string `json:"userId"` CdkStatus int32 `json:"cdkStatus"` OrderId string `json:"orderId"` CreateTime string `json:"createTime"` ExchangeTime string `json:"exchangeTime"` }
Cdk cdk 实例
type CdkType ¶
type CdkType struct { CdkId string `json:"cdkId"` CdkName string `json:"cdkName"` CoinName string `json:"coinName"` ExchangeRate int64 `json:"exchangeRate"` CdkInfo string `json:"cdkInfo"` // 未发放的cdk数量 CdkAvailable int64 `json:"cdkAvailable"` // 已发放的cdk数量 CdkUsed int64 `json:"cdkUsed"` // 冻结状态中的cdk数量 CdkFrozen int64 `json:"cdkFrozen"` }
CdkType cdk 种类
type CreateCdkOrderReq ¶
type CreateCdkOrderReq struct { PersonId string `json:"-"` // cdk 种类编号 CdkId string `json:"cdkId" binding:"required"` // 兑换数量 Number int64 `json:"number" binding:"required"` }
CreateCdkOrderReq 创建兑换券订单请求
type CreateCdkOrderResp ¶
type CreateCdkOrderResp struct { // 订单编号 OrderId string `json:"orderId"` }
CreateCdkOrderResp 创建兑换券订单响应
type CreateCdkTypeReq ¶
type CreateCdkTypeReq struct { CdkName string `json:"cdkName"` CoinName string `json:"coinName" binding:"required"` ExchangeRate int64 `json:"exchangeRate" binding:"required"` CdkInfo string `json:"cdkInfo"` }
CreateCdkTypeReq 创建 cdk 种类请求
type CreateCdkTypeResp ¶
type CreateCdkTypeResp struct {
CdkId string `json:"cdkId"`
}
CreateCdkTypeResp 创建 cdk 种类响应
type CreateCdksReq ¶
type CreateCdksReq struct { CdkId string `json:"cdkId" binding:"required"` CdkContents []string `json:"cdkContents" binding:"required"` }
CreateCdksReq 批量上传 cdk 请求
type DealCdkOrderReq ¶
type DealCdkOrderReq struct { PersonId string `json:"-"` // 订单编号 OrderId string `json:"orderId" binding:"required"` // 处理结果 Result bool `json:"result"` // 转账记录 hash TransferHash string `json:"transferHash" binding:"required"` }
DealCdkOrderReq 处理兑换券订单请求
type DeleteCdkTypesReq ¶
type DeleteCdkTypesReq struct {
CdkIds []string `json:"cdkIds" binding:"required"`
}
DeleteCdkTypesReq 删除 cdkType 请求
type DeleteCdksReq ¶
type DeleteCdksReq struct {
Ids []string `json:"ids" binding:"required"`
}
DeleteCdksReq 删除 cdk 实例请求
type ExchangeCdksReq ¶
type ExchangeCdksReq struct {
Ids []string `json:"ids" binding:"required"`
}
type ExchangeCdksResp ¶
type ExchangeCdksResp struct { }
type GeneralResponse ¶
type GetCdkTypeByCoinNameReq ¶
type GetCdkTypeByCoinNameReq struct {
CoinName string `json:"coinName" binding:"required"`
}
GetCdkTypeByCoinNameReq 根据票券名称查询对应的 cdk 信息请求
type GetCdkTypeByCoinNameResp ¶
type GetCdkTypeByCoinNameResp struct {
*CdkType
}
GetCdkTypeByCoinNameResp 根据票券名称查询对应的 cdk 信息响应
type GetCdkTypesReq ¶
GetCdkTypesReq 查询 cdk 种类请求
type GetCdkTypesResp ¶
type GetCdkTypesResp struct { TotalElements int64 `json:"totalElements"` TotalPages int64 `json:"totalPages"` CdkTypes []*CdkType `json:"cdkTypes"` }
GetCdkTypesResp 查询 cdk 种类响应
type GetCdksByUserIdReq ¶
type GetCdksByUserIdReq struct { PageInfo //CdkId string `json:"cdkId" binding:"required"` PersonId string `json:"-"` }
GetCdksByUserIdReq 查询某人拥有的 cdk 实例请求
type GetCdksByUserIdResp ¶
type GetCdksByUserIdResp struct { TotalElements int64 `json:"totalElements"` TotalPages int64 `json:"totalPages"` Cdks []*Cdk `json:"cdks"` }
GetCdksByUserIdResp 查询某人拥有的 cdk 实例响应
type GetCdksReq ¶
type GetCdksReq struct { PageInfo CdkId string `json:"cdkId" binding:"required"` CdkContent string `json:"cdkContent"` }
GetCdksReq 查询 cdk 实例请求
type GetCdksResp ¶
type GetCdksResp struct { TotalElements int64 `json:"totalElements"` TotalPages int64 `json:"totalPages"` Cdks []*Cdk `json:"cdks"` }
GetCdksResp 查询 cdk 实例响应
type UpdateCdkTypeReq ¶
type UpdateCdkTypeResp ¶
type UpdateCdkTypeResp struct { }
Click to show internal directories.
Click to hide internal directories.