2026-08-09 10:43:45 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"git.apinb.com/bsm-sdk/core/database"
|
2026-08-09 15:10:19 +08:00
|
|
|
"git.apinb.com/bsm-sdk/core/types"
|
2026-08-09 10:43:45 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 个人隐私数据模型
|
|
|
|
|
type CloudPrivate struct {
|
|
|
|
|
types.Std_IICUDS
|
|
|
|
|
types.Std_Passport
|
|
|
|
|
CloudBase
|
|
|
|
|
DataType string `gorm:"size:50" json:"data_type"` // 数据类型: password, card, document, etc.
|
|
|
|
|
Title string `gorm:"size:200" json:"title"` // 标题
|
|
|
|
|
Description string `gorm:"size:500" json:"description"` // 描述
|
|
|
|
|
Data string `gorm:"type:text" json:"data"` // 加密存储的实际数据
|
|
|
|
|
IsEncrypted bool `gorm:"default:true" json:"is_encrypted"` // 是否已加密
|
|
|
|
|
Tags string `gorm:"size:500" json:"tags"` // 标签
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
database.AppendMigrate(&CloudPrivate{})
|
|
|
|
|
}
|