(res *encryption.Key)
| 63 | } |
| 64 | |
| 65 | func (u *UserKey) From(res *encryption.Key) *UserKey { |
| 66 | u.Owner = res.Owner |
| 67 | u.ID = res.ID |
| 68 | u.Label = res.Label |
| 69 | u.Content = res.Content |
| 70 | u.CreationDate = res.CreationDate |
| 71 | u.Info, _ = proto.Marshal(res.Info) |
| 72 | |
| 73 | return u |
| 74 | } |
| 75 | |
| 76 | func NewDAO(db *gorm.DB) key.DAO { |
| 77 | return &sqlimpl{Abstract: sql.NewAbstract(db).WithModels(func() []any { |