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

Function FromEntity

service/application-authorization/model.go:25–41  ·  view source on GitHub ↗
(e *service.Authorization)

Source from the content-addressed store, hash-verified

23}
24
25func FromEntity(e *service.Authorization) *Authorization {
26 return &Authorization{
27 UUID: e.UUID,
28 Application: e.Application,
29 Name: e.Name,
30 Type: e.Type,
31 Position: e.Position,
32 TokenName: e.TokenName,
33 Config: e.Config,
34 Creator: e.Creator,
35 Updater: e.Updater,
36 CreateTime: e.CreateAt,
37 UpdateTime: e.UpdateAt,
38 ExpireTime: e.ExpireTime,
39 HideCredential: e.HideCredential,
40 }
41}
42
43type Create struct {
44 UUID string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected