Merge pull request 'by Robin at 20240507; is_hided for third partner' (#405) from feat-IRONFANS-112-Robin into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/405
This commit is contained in:
commit
67d3547db8
|
@ -3119,6 +3119,14 @@ func (s *Service) ApiGetZoneThirdPartnerList(ctx *gin.Context, req *zone_third_p
|
|||
vo = nil
|
||||
return
|
||||
}
|
||||
if zoneThirdPartner.GetIsHided() == 1 {
|
||||
zoneThirdPartner.ThirdPartnerMid = nil
|
||||
zoneThirdPartner.SharingRatio = nil
|
||||
vo = &zone_third_partner_proto.ZoneThirdPartnerApiVO{
|
||||
ZoneThirdPartner: zoneThirdPartner,
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
acct, err := _DefaultAccount.OpListByMid(ctx, &accountproto.OpListByMidReq{
|
||||
Mid: zoneThirdPartner.ThirdPartnerMid,
|
||||
|
|
|
@ -5,6 +5,7 @@ type ZoneThirdPartner struct {
|
|||
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"` // 分成比例
|
||||
IsHided *int64 `json:"is_hided" bson:"is_hided"` // 是否隐藏
|
||||
Ct *int64 `json:"ct" bson:"ct"` // 创建时间
|
||||
Ut *int64 `json:"ut" bson:"ut"` // 更新时间
|
||||
DelFlag *int64 `json:"del_flag" bson:"del_flag"` // 删除标记
|
||||
|
@ -31,3 +32,10 @@ func (p *ZoneThirdPartner) GetSharingRatio() float64 {
|
|||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (p *ZoneThirdPartner) GetIsHided() int64 {
|
||||
if p != nil && p.IsHided != nil {
|
||||
return *p.IsHided
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue