(e *catalogue.Catalogue, i *EditCatalogue)
| 58 | } |
| 59 | } |
| 60 | func 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected