refactor: reorganize modules and add Linux build tooling
This commit is contained in:
23
module/base/cloud/internal/models/cloud_private.go
Normal file
23
module/base/cloud/internal/models/cloud_private.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/database"
|
||||
"git.apinb.com/bsm-sdk/engine/types"
|
||||
)
|
||||
|
||||
// 个人隐私数据模型
|
||||
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{})
|
||||
}
|
||||
Reference in New Issue
Block a user