Skip to content

Commit

Permalink
[refactoring] #48
Browse files Browse the repository at this point in the history
  • Loading branch information
yoneyan committed Mar 15, 2021
1 parent 0e9f3f6 commit 4e14e87
Showing 1 changed file with 3 additions and 73 deletions.
76 changes: 3 additions & 73 deletions pkg/api/core/group/service/v0/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

0 comments on commit 4e14e87

Please sign in to comment.