完成数据库敏感信息的加密
This commit is contained in:
1 parent
11f2d8a1f4
commit
bceda9a95c
25 files changed
+566
-40
No files matched your search
@@ -21,6 +21,7 @@ type Asset struct {
|
||||
Created utils.JsonTime `json:"created"`
|
||||
Tags string `json:"tags"`
|
||||
Owner string `gorm:"index" json:"owner"`
|
||||
Encrypted bool `json:"encrypted"`
|
||||
}
|
||||
|
||||
type AssetForPage struct {
|
||||
|
||||
@@ -14,6 +14,7 @@ type Credential struct {
|
||||
Passphrase string `json:"passphrase"`
|
||||
Created utils.JsonTime `json:"created"`
|
||||
Owner string `gorm:"index" json:"owner"`
|
||||
Encrypted bool `json:"encrypted"`
|
||||
}
|
||||
|
||||
func (r *Credential) TableName() string {
|
||||
|
||||
Reference in new issue
Block a user