MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / updateHandler

Function updateHandler

service/catalogue/iml.go:60–71  ·  view source on GitHub ↗
(e *catalogue.Catalogue, i *EditCatalogue)

Source from the content-addressed store, hash-verified

58 }
59}
60func updateHandler(e *catalogue.Catalogue, i *EditCatalogue) {
61 if i.Name != nil {
62 e.Name = *i.Name
63 }
64 if i.Parent != nil {
65 e.Parent = *i.Parent
66 }
67 if i.Sort != nil {
68 e.Sort = *i.Sort
69 }
70 e.UpdateAt = time.Now()
71}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected