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

Function createEntityHandler

service/application-authorization/iml.go:77–92  ·  view source on GitHub ↗
(i *Create)

Source from the content-addressed store, hash-verified

75 return []map[string]interface{}{{"uuid": i.UUID}}
76}
77func createEntityHandler(i *Create) *service.Authorization {
78 now := time.Now()
79 return &service.Authorization{
80 UUID: i.UUID,
81 Name: i.Name,
82 Application: i.Application,
83 Type: i.Type,
84 Position: i.Position,
85 TokenName: i.TokenName,
86 Config: i.Config,
87 ExpireTime: i.ExpireTime,
88 CreateAt: now,
89 UpdateAt: now,
90 HideCredential: i.HideCredential,
91 }
92}
93
94func updateHandler(e *service.Authorization, i *Edit) {
95 if i.Name != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected