mh_server/model/invite.go

38 lines
1.2 KiB
Go
Raw Normal View History

2022-01-16 08:56:33 +00:00
package model
2022-07-29 02:02:33 +00:00
import "time"
2022-01-16 08:56:33 +00:00
// 邀请关系
// gen:qs
2023-07-14 09:29:05 +00:00
//
//go:generate goqueryset -in invite.go
2022-01-16 08:56:33 +00:00
type UserInviteLevel struct {
Model
Uid uint32 `json:"uid" gorm:"column:uid;unique_index"`
Lv1 uint32 `json:"lv1"`
Lv2 uint32 `json:"lv2"`
Lv3 uint32 `json:"lv3"`
Lv4 uint32 `json:"lv4"`
Lv5 uint32 `json:"lv5"`
}
// gen:qs
type UserInviteRecord struct {
Model
2022-07-29 02:02:33 +00:00
ToUid uint32 `json:"to_uid"` // 用户ID
FromUid uint32 `json:"from_uid"` // 邀请人ID
2024-05-20 07:17:50 +00:00
StoreId uint64 `json:"store_id"` // 门店id 邀请用户门店
2022-07-29 02:02:33 +00:00
Action uint32 `json:"action"` // 1-未激活 2-激活邀请
SpendType uint32 `json:"spend_type"` // 1-未开通 2-开通会员 3-续费 4-升级
2024-01-25 01:34:52 +00:00
MemberLevel uint32 `json:"member_level"` // 会员等级 0-未开通 1-普通 2-黄金 3-短期 4-白金 5-黑金
MemberGenre uint32 `json:"member_genre"` // 会员类型 201-黄金季度 202-黄金半年
2022-07-29 02:02:33 +00:00
First uint32 `json:"first"` // 首次
Scan uint32 `json:"scan"` // 扫码
ActionTime time.Time `json:"action_time"` // 激活时间
2024-01-25 01:34:52 +00:00
RenewHide uint32 `json:"renew_hide"` // 自动续费 1-自动 0-干预
2022-07-29 02:02:33 +00:00
// user_invite_record
2022-01-16 08:56:33 +00:00
}