(e *service.Authorization, i *Edit)
| 92 | } |
| 93 | |
| 94 | func updateHandler(e *service.Authorization, i *Edit) { |
| 95 | if i.Name != nil { |
| 96 | e.Name = *i.Name |
| 97 | } |
| 98 | if i.Position != nil { |
| 99 | e.Position = *i.Position |
| 100 | } |
| 101 | if i.TokenName != nil { |
| 102 | e.TokenName = *i.TokenName |
| 103 | } |
| 104 | if i.Config != nil { |
| 105 | e.Config = *i.Config |
| 106 | } |
| 107 | if i.ExpireTime != nil { |
| 108 | e.ExpireTime = *i.ExpireTime |
| 109 | } |
| 110 | if i.HideCredential != nil { |
| 111 | e.HideCredential = *i.HideCredential |
| 112 | } |
| 113 | e.UpdateAt = time.Now() |
| 114 | } |
nothing calls this directly
no outgoing calls
no test coverage detected