Merge pull request 'feat-IRONFANS-112-Robin' (#414) from feat-IRONFANS-112-Robin into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/414
This commit is contained in:
commit
ae26ca61b5
|
@ -232,6 +232,12 @@ const (
|
|||
IsHeaded_Yes = 1 //是
|
||||
)
|
||||
|
||||
// 是否隐藏
|
||||
const (
|
||||
IsHided_No = 0 //否
|
||||
IsHided_Yes = 1 //是
|
||||
)
|
||||
|
||||
// 从未更新的时间跨度
|
||||
const (
|
||||
DaysElapsedSinceTheLastZonesUpdate_Never = -1
|
||||
|
|
|
@ -3109,7 +3109,7 @@ func (s *Service) ApiGetZoneThirdPartnerList(ctx *gin.Context, req *zone_third_p
|
|||
vo = nil
|
||||
return
|
||||
}
|
||||
if zoneThirdPartner.GetIsHided() == 1 {
|
||||
if zoneThirdPartner.GetIsHided() == consts.IsHided_Yes {
|
||||
zoneThirdPartner.ThirdPartnerMid = nil
|
||||
zoneThirdPartner.SharingRatio = nil
|
||||
vo = &zone_third_partner_proto.ZoneThirdPartnerApiVO{
|
||||
|
@ -3138,7 +3138,6 @@ func (s *Service) ApiGetZoneThirdPartnerList(ctx *gin.Context, req *zone_third_p
|
|||
ZoneThirdPartner: zoneThirdPartner,
|
||||
Account: acctVO,
|
||||
}
|
||||
vo.ZoneThirdPartner.IsHided = goproto.Int64(vo.ZoneThirdPartner.GetIsHided())
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -3284,7 +3283,6 @@ func (s *Service) ApiGetZoneCollaboratorList(ctx *gin.Context, req *zone_collabo
|
|||
ZoneThirdPartner: zoneThirdPartner,
|
||||
Account: acctVO,
|
||||
}
|
||||
ztpVO.ZoneThirdPartner.IsHided = goproto.Int64(ztpVO.ZoneThirdPartner.GetIsHided())
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@ func (p *ZoneThirdPartner) OpCreate(ctx *gin.Context, req *zone_third_partner_pr
|
|||
req.ZoneThirdPartner.Ct = goproto.Int64(time.Now().Unix())
|
||||
req.ZoneThirdPartner.Ut = goproto.Int64(time.Now().Unix())
|
||||
req.ZoneThirdPartner.DelFlag = goproto.Int64(consts.Exist)
|
||||
req.ZoneThirdPartner.IsHided = goproto.Int64(consts.IsHided_No)
|
||||
err := p.store.CreateZoneThirdPartner(ctx, req.ZoneThirdPartner)
|
||||
if err != nil {
|
||||
logger.Error("CreateZoneThirdPartner fail, err: %v", err)
|
||||
|
|
|
@ -3836,7 +3836,6 @@ func (s *Service) OpGetZoneThirdPartnerList(ctx *gin.Context, req *zone_third_pa
|
|||
ZoneThirdPartner: zoneThirdPartner,
|
||||
Account: acctVO,
|
||||
}
|
||||
vo.ZoneThirdPartner.IsHided = goproto.Int64(vo.ZoneThirdPartner.GetIsHided())
|
||||
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue