暂时存一下

This commit is contained in:
苏尹岚
2020-08-20 17:32:16 +08:00
parent 08ddd8424c
commit 97c3fc87cc
4 changed files with 51 additions and 2 deletions

View File

@@ -9,8 +9,9 @@ const (
)
const (
PayTypeWX = 1 // 微信支付
PayTypeTL = 2 // 通联宝支付
PayTypeWX = 1 // 微信支付
PayTypeTL = 2 // 通联宝支付
PayTypeTL_DiscountCard = 3 // 通联宝支付(会员折扣卡)
PayStatusNo = 0
PayStatusYes = 1

View File

@@ -194,3 +194,19 @@ func (*UserOrderSms) TableUnique() [][]string {
[]string{"Mobile"},
}
}
type UserMember struct {
ModelIDCULD
UserID string `orm:"size(48);column(user_id)" json:"userID"` //内部唯一标识
MemberType int `json:"memberType"` //会员类型, 1为折扣卡
MemberID int `json:"memberID"` //会员类型ID折扣卡的话代表几档
EndAt time.Time `json:"endAt"` //会员过期时间
}
func (v *UserMember) TableIndex() [][]string {
return [][]string{
[]string{"UserID"},
[]string{"CreateAt"},
}
}