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

Function FromEntity

service/catalogue/model.go:21–30  ·  view source on GitHub ↗
(e *catalogue.Catalogue)

Source from the content-addressed store, hash-verified

19}
20
21func FromEntity(e *catalogue.Catalogue) *Catalogue {
22 return &Catalogue{
23 Id: e.UUID,
24 Name: e.Name,
25 Parent: e.Parent,
26 Sort: e.Sort,
27 CreateTime: e.CreateAt,
28 UpdateTime: e.UpdateAt,
29 }
30}
31
32type CreateCatalogue struct {
33 Id string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected