创建聊天组
This commit is contained in:
@@ -80,6 +80,7 @@ type MessageGroup struct {
|
||||
Type int `json:"type"` //组类型,1为单聊,2为群聊
|
||||
MaxCount int `json:"maxCount"` //最大人数
|
||||
DividePercentage int `json:"dividePercentage"` //分成比例
|
||||
QuitPrice int `json:"quitPrice"` //退出条件(金额)
|
||||
}
|
||||
|
||||
func (*MessageGroup) TableIndex() [][]string {
|
||||
|
||||
@@ -57,11 +57,11 @@ type User struct {
|
||||
LastLoginIP string `orm:"size(64);column(last_login_ip)" json:"lastLoginIP"`
|
||||
LastLoginType string `orm:"size(16)" json:"lastLoginType"`
|
||||
|
||||
ParentMobile string `orm:"size(32)" json:"parentMobile"`
|
||||
DividePercentage int `json:"dividePercentage"`
|
||||
Profit int `json:"profit"`
|
||||
ProfitSum int `json:"profitSum"`
|
||||
Arrears int `json:"arrears"`
|
||||
// ParentMobile string `orm:"size(32)" json:"parentMobile"`
|
||||
// DividePercentage int `json:"dividePercentage"`
|
||||
// Profit int `json:"profit"`
|
||||
// ProfitSum int `json:"profitSum"`
|
||||
// Arrears int `json:"arrears"`
|
||||
}
|
||||
|
||||
func (*User) TableUnique() [][]string {
|
||||
@@ -98,28 +98,6 @@ func (user *User) GetAvatar() string {
|
||||
return user.Avatar
|
||||
}
|
||||
|
||||
type StoreBoss struct {
|
||||
ModelIDCULD
|
||||
UserID string `orm:"size(48);column(user_id);unique" json:"userID"` // 内部唯一标识
|
||||
BossName string `orm:"size(48);index" json:"bossName"` // 门店老板真实姓名
|
||||
StoreID int `orm:"column(store_id)" json:"storeID"`
|
||||
ParentUserID string `orm:"size(48);column(parent_user_id)" json:"-"`
|
||||
|
||||
ReferrerID string `orm:"size(48);index" json:"referrerID"` // 推荐人ID
|
||||
ReferrerName string `orm:"size(48);index" json:"referrerName"` // 推荐人姓名
|
||||
|
||||
CityCode int `json:"cityCode"` // 期望开店所在的城市
|
||||
IDCardFront string `orm:"size(255);column(id_card_front)" json:"idCardFront"`
|
||||
IDCardBack string `orm:"size(255);column(id_card_back)" json:"idCardBack"`
|
||||
IDCardHand string `orm:"size(255);column(id_card_hand)" json:"idCardHand"`
|
||||
Licence string `orm:"size(255)" json:"licence"`
|
||||
LicenceCode string `orm:"size(32);index" json:"licenceCode"`
|
||||
Remark string `orm:"type(text)" json:"-"`
|
||||
}
|
||||
|
||||
// const (
|
||||
// PaymentType
|
||||
// )
|
||||
type UserPayment struct {
|
||||
ModelIDCULD
|
||||
UserID string `orm:"size(48);column(user_id)" json:"userID"` // 内部唯一标识
|
||||
|
||||
Reference in New Issue
Block a user