Merge pull request 'feat-IRONFANS-70' (#278) from feat-IRONFANS-70 into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/278
This commit is contained in:
chenhao 2024-04-11 21:57:12 +08:00
commit 20be36d9b4
1 changed files with 5 additions and 1 deletions

View File

@ -110,5 +110,9 @@ func (vo *ApiListExtVO) CopyUserVas(userVas *dbstruct.UserVasInfo) {
} }
func (vo *ApiListExtVO) CopyZones(zones []*dbstruct.Zone) { func (vo *ApiListExtVO) CopyZones(zones []*dbstruct.Zone) {
if zones == nil {
vo.Zones = make([]*dbstruct.Zone, 0)
} else {
vo.Zones = zones vo.Zones = zones
}
} }