service/dbstruct/streamer_acct.go

47 lines
3.7 KiB
Go
Raw Permalink Normal View History

2024-05-11 11:30:05 +08:00
package dbstruct
type EsStreamerAcct struct {
2024-08-15 07:07:39 +08:00
Mid int64 `json:"id"` // 用户表Id
Name string `json:"name"` // 用户名
UserIdString string `json:"user_id_string"` // string型user_id为模糊匹配设置
PinYin string `json:"pinyin"` // 拼音
Age int64 `json:"age"` // 年龄
Height int64 `json:"height"` // 身高
Weight int64 `json:"weight"` // 体重
2024-08-29 16:01:45 +08:00
Fans int64 `json:"fans"` // 粉丝量
2024-08-15 07:07:39 +08:00
City string `json:"city"` // 所在城市
Constellation string `json:"constellation"` // 星座
LastZoneMomentCreateDayStart int64 `json:"last_zone_moment_create_day_start"` // 最后空间动态创建日始整点
2024-08-20 17:35:50 +08:00
WechatCoinPrice int64 `json:"wechat_coin_price"` // 微信金币价格
ZoneAdmissionPrice int64 `json:"zone_admission_price"` // 空间解锁价格, 单位: 分
2024-08-15 07:07:39 +08:00
Ct int64 `json:"ct"` // 创建时间
Ut int64 `json:"ut"` // 更新时间
DelFlag int64 `json:"del_flag"` // 删除标记0-否1-是
}
type EsStreamerAcctUpdater struct {
Mid *int64 `json:"id" bson:"_id"` // 用户表Id
Name *string `json:"name" bson:"name"` // 用户名
UserIdString *string `json:"user_id_string" bson:"user_id_string"` // string型user_id为模糊匹配设置
PinYin *string `json:"pinyin" bson:"pinyin"` // 拼音
Age *int64 `json:"age" bson:"age"` // 年龄
Height *int64 `json:"height" bson:"height"` // 身高
Weight *int64 `json:"weight" bson:"weight"` // 体重
2024-08-29 16:01:45 +08:00
Fans *int64 `json:"fans"` // 粉丝量
2024-08-15 07:07:39 +08:00
City *string `json:"city" bson:"city"` // 所在城市
Constellation *string `json:"constellation" bson:"constellation"` // 星座
LastZoneMomentCreateDayStart *int64 `json:"last_zone_moment_create_day_start" bson:"last_zone_moment_create_day_start"` // 最后空间动态创建日始整点
WechatCoinPrice *int64 `json:"wechat_coin_price" bson:"wechat_coin_price"` // 微信金币价格
ZoneAdmissionPrice *int64 `json:"zone_admission_price" bson:"zone_admission_price"`
Ct *int64 `json:"ct" bson:"ct"`
Ut *int64 `json:"ut" bson:"ut"`
DelFlag *int64 `json:"del_flag" bson:"del_flag"`
2024-08-15 07:07:39 +08:00
}
func (p *EsStreamerAcctUpdater) GetMid() int64 {
if p == nil || p.Mid == nil {
return 0
}
return *p.Mid
2024-05-11 11:30:05 +08:00
}