Merge pull request 'feat-IRONFANS-70' (#348) from feat-IRONFANS-70 into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/348
This commit is contained in:
commit
77be70a4df
|
@ -43,12 +43,6 @@ func (p *ApiUpdateReq) ProvideNotNullValue() (params []*validator.JsonParam) {
|
||||||
}
|
}
|
||||||
if p.MediaComp != nil {
|
if p.MediaComp != nil {
|
||||||
params = append(params, validator.NewStructPtrParam("请确认创建动态的媒体!", p.MediaComp))
|
params = append(params, validator.NewStructPtrParam("请确认创建动态的媒体!", p.MediaComp))
|
||||||
switch util.DerefInt64(p.ZoneMoment.MType) {
|
|
||||||
case consts.MediaTypeImg:
|
|
||||||
params = append(params, validator.NewInt64PtrParam("请确认创建动态的媒体可见范围!", p.ZoneMoment.MediaVisibleRange))
|
|
||||||
case consts.MediaTypeVideo:
|
|
||||||
params = append(params, validator.NewInt64PtrParam("请确认创建动态是否要模糊封面!", p.ZoneMoment.IsBlurringCover))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue