first commit

This commit is contained in:
2022-03-17 15:59:24 +08:00
commit 2b0debb847
592 changed files with 73946 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
package db
// 数据库模型
// 持久化模型 PO
type TimeInfo struct {
CreateTime int64
UpdateTime int64
DeleteTime int64
}
type CdkType struct {
CdkId int64
CdkName string
CdkInfo string
CoinName string
ExchangeRate int64
TimeInfo
}
type Cdk struct {
Id int64
CdkId int64
CdkContent string
UserId string
CdkStatus int32
OrderId int64
TimeInfo
ExchangeTime int64
}
type CdkOrder struct {
Id int64
OrderId int64
TransferHash string
UserId string
OrderStatus int32
TimeInfo
ExchangeTime int64
}
const (
CdkUnused = 0
CdkFrozen = 1
CdkUsed = 2
CdkExchange = 3
)