2024-04-08 20:05:13 +08:00
|
|
|
package dbstruct
|
|
|
|
|
|
|
|
type ZoneThirdPartner struct {
|
|
|
|
Id *int64 `json:"id" bson:"_id"` // 空间代运营表id
|
|
|
|
Zid *int64 `json:"zid" bson:"zid"` // 空间id
|
|
|
|
ThirdPartnerMid *int64 `json:"third_partner_mid" bson:"third_partner_mid"` // 代运营用户id
|
|
|
|
SharingRatio *float64 `json:"sharing_ratio" bson:"sharing_ratio"` // 分成比例
|
2024-05-07 16:33:55 +08:00
|
|
|
IsHided *int64 `json:"is_hided" bson:"is_hided"` // 是否隐藏
|
2024-04-08 20:05:13 +08:00
|
|
|
Ct *int64 `json:"ct" bson:"ct"` // 创建时间
|
|
|
|
Ut *int64 `json:"ut" bson:"ut"` // 更新时间
|
|
|
|
DelFlag *int64 `json:"del_flag" bson:"del_flag"` // 删除标记
|
|
|
|
|
|
|
|
}
|
2024-04-15 15:17:30 +08:00
|
|
|
|
2024-04-18 21:17:41 +08:00
|
|
|
func (p *ZoneThirdPartner) GetZid() int64 {
|
|
|
|
if p != nil && p.Zid != nil {
|
|
|
|
return *p.Zid
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2024-04-15 15:17:30 +08:00
|
|
|
func (p *ZoneThirdPartner) GetThirdPartnerMid() int64 {
|
|
|
|
if p != nil && p.ThirdPartnerMid != nil {
|
|
|
|
return *p.ThirdPartnerMid
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *ZoneThirdPartner) GetSharingRatio() float64 {
|
|
|
|
if p != nil && p.SharingRatio != nil {
|
|
|
|
return *p.SharingRatio
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
2024-05-07 16:33:55 +08:00
|
|
|
|
|
|
|
func (p *ZoneThirdPartner) GetIsHided() int64 {
|
|
|
|
if p != nil && p.IsHided != nil {
|
|
|
|
return *p.IsHided
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|