(i *Create)
| 75 | return []map[string]interface{}{{"uuid": i.UUID}} |
| 76 | } |
| 77 | func 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 | |
| 94 | func updateHandler(e *service.Authorization, i *Edit) { |
| 95 | if i.Name != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected