types

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

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 CreateCdksResp

type CreateCdksResp struct {
}

CreateCdksResp 批量上传 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 DealCdkOrderResp

type DealCdkOrderResp struct {
}

DealCdkOrderResp 处理兑换券订单响应

type DeleteCdkTypesReq

type DeleteCdkTypesReq struct {
	CdkIds []string `json:"cdkIds"  binding:"required"`
}

DeleteCdkTypesReq 删除 cdkType 请求

type DeleteCdkTypesResp

type DeleteCdkTypesResp struct {
}

DeleteCdkTypesResp 删除 cdkType 响应

type DeleteCdksReq

type DeleteCdksReq struct {
	Ids []string `json:"ids"  binding:"required"`
}

DeleteCdksReq 删除 cdk 实例请求

type DeleteCdksResp

type DeleteCdksResp struct {
}

DeleteCdksResp 删除 cdk 实例响应

type ExchangeCdksReq

type ExchangeCdksReq struct {
	Ids []string `json:"ids"  binding:"required"`
}

type ExchangeCdksResp

type ExchangeCdksResp struct {
}

type GeneralResponse

type GeneralResponse struct {
	Result  int         `json:"result"`
	Message int         `json:"message"`
	Data    interface{} `json:"data"`
}

type GetCdkTypeByCoinNameReq

type GetCdkTypeByCoinNameReq struct {
	CoinName string `json:"coinName"  binding:"required"`
}

GetCdkTypeByCoinNameReq 根据票券名称查询对应的 cdk 信息请求

type GetCdkTypeByCoinNameResp

type GetCdkTypeByCoinNameResp struct {
	*CdkType
}

GetCdkTypeByCoinNameResp 根据票券名称查询对应的 cdk 信息响应

type GetCdkTypesReq

type GetCdkTypesReq struct {
	PageInfo
	CoinName string `json:"coinName"`
}

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 PageInfo

type PageInfo struct {
	// 页数
	Page int64 `json:"page"`
	// 每页数量
	PageSize int64 `json:"pageSize"`
}

PageInfo 分页信息

type UpdateCdkTypeReq

type UpdateCdkTypeReq struct {
	CdkId        string `json:"cdkId" binding:"required"`
	CdkName      string `json:"cdkName" binding:"required"`
	CoinName     string `json:"coinName" binding:"required"`
	ExchangeRate int64  `json:"exchangeRate" binding:"required"`
}

type UpdateCdkTypeResp

type UpdateCdkTypeResp struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL