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

Function createEntityHandler

service/catalogue/iml.go:51–59  ·  view source on GitHub ↗
(i *CreateCatalogue)

Source from the content-addressed store, hash-verified

49 return []map[string]interface{}{{"uuid": i.Id}}
50}
51func 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}
60func updateHandler(e *catalogue.Catalogue, i *EditCatalogue) {
61 if i.Name != nil {
62 e.Name = *i.Name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected