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

Function createEntityHandler

service/team/iml.go:66–75  ·  view source on GitHub ↗
(i *CreateTeam)

Source from the content-addressed store, hash-verified

64 return []map[string]interface{}{{"uuid": i.Id}, {"name": i.Name}}
65}
66func createEntityHandler(i *CreateTeam) *team.Team {
67 return &team.Team{
68 Id: 0,
69 UUID: i.Id,
70 Name: i.Name,
71 Description: i.Description,
72 CreateAt: time.Now(),
73 UpdateAt: time.Now(),
74 }
75}
76func updateHandler(e *team.Team, i *EditTeam) {
77 if i.Name != nil {
78 e.Name = *i.Name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected