diff --git a/pkg/api/core/group/service/v0/update.go b/pkg/api/core/group/service/v0/update.go index 63b69b3f..492afc24 100644 --- a/pkg/api/core/group/service/v0/update.go +++ b/pkg/api/core/group/service/v0/update.go @@ -15,9 +15,9 @@ func replaceService(replace, input core.Service) core.Service { replace.OrgEn = input.OrgEn } - //Postcode - if input.Postcode != "" { - replace.Postcode = input.Postcode + //PostCode + if input.PostCode != "" { + replace.PostCode = input.PostCode } //Address @@ -71,73 +71,3 @@ func replaceService(replace, input core.Service) core.Service { return replace } - -func replaceAdminService(replace, input core.Service) core.Service { - //Org - if input.Org != "" { - replace.Org = input.Org - } - - //Org (English) - if input.OrgEn != "" { - replace.OrgEn = input.OrgEn - } - - //Postcode - if input.Postcode != "" { - replace.Postcode = input.Postcode - } - - //Address - if input.Address != "" { - replace.Address = input.Address - } - - //Address(English) - if input.AddressEn != "" { - replace.AddressEn = input.AddressEn - } - - //Route(V4) - if input.RouteV4 != "" { - replace.RouteV4 = input.RouteV4 - } - - //Route(V4) - if input.RouteV6 != "" { - replace.RouteV6 = input.RouteV6 - } - - ////V4 - //if input.V4 != "" { - // replace.V4 = input.V4 - //} - // - ////V6 - //if input.V6 != "" { - // replace.V6 = input.V6 - //} - // - ////V4Name - //if input.V4Name != "" { - // replace.V4Name = input.V4Name - //} - // - ////V6Name - //if input.V6Name != "" { - // replace.V6Name = input.V6Name - //} - ////Date - //if input.Date != "" { - // replace.Date = input.Date - //} - - // bool - //Lock - replace.Lock = input.Lock - - //Open - replace.Open = input.Open - - return replace -}