package dbstruct

type ZoneCollaborator struct {
	Id              *int64   `json:"id" bson:"_id"`                            // 空间协作者表id
	Zid             *int64   `json:"zid" bson:"zid"`                           // 空间id
	CollaboratorMid *int64   `json:"collaborator_mid" bson:"collaborator_mid"` // 协作者用户id
	SharingRatio    *float64 `json:"sharing_ratio" bson:"sharing_ratio"`       // 分成比例
	Ct              *int64   `json:"ct" bson:"ct"`                             // 创建时间
	Ut              *int64   `json:"ut" bson:"ut"`                             // 更新时间
	DelFlag         *int64   `json:"del_flag" bson:"del_flag"`                 // 删除标记
}

func (p *ZoneCollaborator) GetZid() int64 {
	if p != nil && p.Zid != nil {
		return *p.Zid
	}
	return 0
}

func (p *ZoneCollaborator) GetId() int64 {
	if p != nil && p.Id != nil {
		return *p.Id
	}
	return 0
}

func (p *ZoneCollaborator) GetCollaboratorMid() int64 {
	if p != nil && p.CollaboratorMid != nil {
		return *p.CollaboratorMid
	}
	return 0
}

func (p *ZoneCollaborator) GetSharingRatio() float64 {
	if p != nil && p.SharingRatio != nil {
		return *p.SharingRatio
	}
	return 0
}