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

Method createEntityHandler

service/system-apikey/iml.go:34–44  ·  view source on GitHub ↗
(t *Create)

Source from the content-addressed store, hash-verified

32 return []map[string]interface{}{{"uuid": t.Id}}
33}
34func (i *imlAPIKeyService) createEntityHandler(t *Create) *system.APIKey {
35 now := time.Now()
36 return &system.APIKey{
37 UUID: t.Id,
38 Name: t.Name,
39 Value: t.Value,
40 Expired: t.Expired,
41 CreateAt: now,
42 UpdateAt: now,
43 }
44}
45
46func (i *imlAPIKeyService) updateHandler(e *system.APIKey, t *Update) {
47 isUpdate := false

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected