pay4user
This commit is contained in:
@@ -28,6 +28,12 @@ var (
|
||||
}
|
||||
)
|
||||
|
||||
type DiscountCard struct {
|
||||
ID int `orm:"column(id)" json:"id"`
|
||||
PicePercentage int `json:"pricePercentage"`
|
||||
Price int `json:"price"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
ModelIDCULD
|
||||
UserID string `orm:"size(48);column(user_id)" json:"userID" compact:"userID"` // 内部唯一标识
|
||||
@@ -203,6 +209,7 @@ type UserMember struct {
|
||||
MemberType int `json:"memberType"` //会员类型, 1为折扣卡
|
||||
MemberTypeID int `orm:"column(member_type_id)" json:"memberTypeID"` //会员类型ID,折扣卡的话代表几档
|
||||
EndAt time.Time `json:"endAt"` //会员过期时间
|
||||
IsPay int `json:"isPay"`
|
||||
}
|
||||
|
||||
func (*UserMember) TableUnique() [][]string {
|
||||
|
||||
Reference in New Issue
Block a user