接口更新
This commit is contained in:
@@ -311,25 +311,28 @@ type UserCoupons struct {
|
||||
|
||||
// RechargeInfo 充值挡位信息
|
||||
type RechargeInfo struct {
|
||||
Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id
|
||||
Name string `gorm:"not null" json:"name"` //挡位名称
|
||||
Desc string `json:"desc"` //挡位描述
|
||||
Price string `gorm:"not null" json:"price"` //价格
|
||||
Give string `gorm:"default:无" json:"give"` //赠送
|
||||
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"-"` //创建时间
|
||||
UpdateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP" json:"-"` //更新时间
|
||||
Status int `gorm:"default:1" json:"-" json:"-"` //状态
|
||||
Type int `gorm:"default:1" json:"type" json:"type"` //类型 1充值挡位 2押金
|
||||
Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id
|
||||
Name string `gorm:"not null" json:"name"` //挡位名称
|
||||
Desc string `json:"desc"` //挡位描述
|
||||
Price string `gorm:"not null" json:"price"` //价格
|
||||
RechargePrice string `gorm:"not null;default:0" json:"rechargePrice"` //实际充值
|
||||
Give string `gorm:"default:无" json:"give"` //赠送
|
||||
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"-"` //创建时间
|
||||
UpdateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP" json:"-"` //更新时间
|
||||
Status int `gorm:"default:1" json:"-" json:"-"` //状态
|
||||
Type int `gorm:"default:1" json:"type" json:"type"` //类型 1充值挡位 2押金
|
||||
}
|
||||
|
||||
// PayOrder 支付订单
|
||||
type PayOrder struct {
|
||||
Id int `gorm:"primaryKey;autoIncrement"` //id
|
||||
OrderId string `gorm:"not null"` //订单ID
|
||||
OrderName string `gorm:"not null"` //订单名称
|
||||
OrderPrice string `gorm:"not null"` //订单金额
|
||||
OrderStatus int `gorm:"not null;default:0"` //订单状态 0:未支付 1:已支付 2:已退款
|
||||
Id int `gorm:"primaryKey;autoIncrement"` //id
|
||||
Uid int64 `gorm:"not null;default:0" json:"uid"` //uid
|
||||
OrderId string `gorm:"not null"` //订单ID
|
||||
OrderName string `gorm:"not null"` //订单名称
|
||||
OrderPrice string `gorm:"not null"` //订单金额
|
||||
OrderStatus int `gorm:"not null;default:0"` //订单状态 0:未支付 1:已支付 2:已退款 3:会员余额支付
|
||||
PayId string //三方交易号
|
||||
RechargeId int `gorm:"not null;default:0"` //充值ID
|
||||
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP" json:"createTime"` //创建时间
|
||||
UpdateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP" json:"-"` //更新时间
|
||||
Status int `gorm:"default:1" json:"-"` //状态
|
||||
|
||||
Reference in New Issue
Block a user