新增系列配置
This commit is contained in:
@@ -117,7 +117,7 @@ type SystemConfig struct {
|
||||
Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id
|
||||
Name string `json:"name"` //名称
|
||||
Content string `json:"content"` //内容
|
||||
ConfigType string `json:"configType"` //类型 0banner 1关于我们 2客服电话
|
||||
ConfigType string `json:"configType"` //类型 0banner 1关于我们 2客服电话 3分享信息
|
||||
ContentType int `json:"contentType"` //1文本 2链接
|
||||
Sort int `json:"sort"` //排序位
|
||||
JumpType int `gorm:"default:0" json:"JumpType"` //跳转类型 0无法跳转 1跳转外部 2跳转内部
|
||||
@@ -143,6 +143,7 @@ type OrderMain struct {
|
||||
PayDiscount int `gorm:"default:0" json:"payDiscount"` //支付折扣
|
||||
PayType int `json:"payType"` //支付方式 1线下 2线上 3会员余额
|
||||
Status int `json:"status1"` //信息状态
|
||||
PayOrderId string `json:"payOrderId"` //支付订单号
|
||||
}
|
||||
|
||||
// OrderSub 子订单
|
||||
@@ -166,6 +167,8 @@ type OrderSub struct {
|
||||
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 `json:"status1"`
|
||||
Cid int `gorm:"not null" json:"cid"` //优惠券ID
|
||||
Ucid int `gorm:"not null" json:"ucid"` //优惠券ID - user
|
||||
}
|
||||
|
||||
// OrderDetail 订单明细
|
||||
@@ -273,27 +276,58 @@ type AddrServiceTime struct {
|
||||
|
||||
// Coupons 优惠券
|
||||
type Coupons struct {
|
||||
Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id
|
||||
Name string `gorm:"not null" json:"name"`
|
||||
GoodsSubType int `gorm:"not null" json:"goodsSubType"` //商品子类型
|
||||
Discount int `gorm:"not null" json:"discount"` //折扣
|
||||
Source string `gorm:"not null" json:"source"` //来源
|
||||
PeriodType int `gorm:"not null" json:"periodType"` //使用类型 0、无 1、星期 2、截至时间 3、指定日期可用
|
||||
Period string `json:"-"` //使用信息 具体时间 星期类型:1,2,3截止日期:2024-09-01 23:59:59指定日期:2024-08-10
|
||||
PeriodInfo []string `gorm:"-" json:"periodInfo"`
|
||||
ExpireTime int64 `json:"expireTime"` //优惠券过期时间
|
||||
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:"-"` //数据状态
|
||||
SendStatus int `gorm:"not null" json:"-"` //下发类型 1领取 2新用户注册赠送 3邀请新用户赠送
|
||||
Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id
|
||||
Name string `gorm:"not null" json:"name"`
|
||||
GoodsSubType int `gorm:"not null" json:"goodsSubType"` //商品子类型 1:洗护 2:美容 3:SPA 4:驱虫 5:洁牙
|
||||
Discount int `gorm:"not null" json:"discount"` //折扣
|
||||
Source string `gorm:"not null" json:"source"` //来源
|
||||
PeriodType int `gorm:"not null" json:"periodType"` //使用类型 0、无 1、星期 2、截至时间 3、指定日期可用
|
||||
Period string `json:"-"` //使用信息 具体时间 星期类型:1,2,3截止日期:2024-09-01 23:59:59指定日期:2024-08-10
|
||||
PeriodInfo []string `gorm:"-" json:"periodInfo"`
|
||||
ExpireTime int64 `json:"expireTime"` //优惠券过期时间
|
||||
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:"-"` //数据状态
|
||||
SendStatus int `gorm:"not null" json:"-"` //下发类型 1领取 2新用户注册赠送 3邀请新用户赠送
|
||||
ReceiverStatus int `gorm:"-" json:"receiverStatus"` //领取状态 0未领取 1已领取
|
||||
DrawDay int `gorm:"not null" json:"drawDay"` //优惠券领取后过期天数
|
||||
LastExpireTime string `gorm:"-" json:"lastExpireTime"` //优惠券最后过期时间
|
||||
}
|
||||
|
||||
// UserCoupons 用户优惠券
|
||||
type UserCoupons struct {
|
||||
Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id
|
||||
Uid int64 `gorm:"not null" json:"uid"` //用户id
|
||||
Cid int `gorm:"not null" json:"cid"` //优惠券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:"-"`
|
||||
CouponsStatus int `gorm:"default:1" json:"status"` //状态 1未使用 2已使用 3已过期
|
||||
Id int `gorm:"primaryKey;autoIncrement" json:"id"` //id
|
||||
Uid int64 `gorm:"not null" json:"uid"` //用户id
|
||||
Cid int `gorm:"not null" json:"cid"` //优惠券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:"-"`
|
||||
CouponsStatus int `gorm:"default:1" json:"status"` //状态 1未使用 2已使用 3已过期
|
||||
LastExpireTime time.Time `gorm:"not null" json:"lastExpireTime"` //优惠券最后过期时间
|
||||
}
|
||||
|
||||
// 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押金
|
||||
}
|
||||
|
||||
// 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:已退款
|
||||
PayId string //三方交易号
|
||||
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