(i *CreateCatalogue)
| 49 | return []map[string]interface{}{{"uuid": i.Id}} |
| 50 | } |
| 51 | func createEntityHandler(i *CreateCatalogue) *catalogue.Catalogue { |
| 52 | return &catalogue.Catalogue{ |
| 53 | UUID: i.Id, |
| 54 | Name: i.Name, |
| 55 | Parent: i.Parent, |
| 56 | CreateAt: time.Now(), |
| 57 | UpdateAt: time.Now(), |
| 58 | } |
| 59 | } |
| 60 | func updateHandler(e *catalogue.Catalogue, i *EditCatalogue) { |
| 61 | if i.Name != nil { |
| 62 | e.Name = *i.Name |
nothing calls this directly
no outgoing calls
no test coverage detected