feat: import services and standardize Go 1.26.5
This commit is contained in:
24
apps/base/cloud/internal/models/cloud_bookmark.go
Normal file
24
apps/base/cloud/internal/models/cloud_bookmark.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/database"
|
||||
"git.apinb.com/bsm-sdk/engine/types"
|
||||
)
|
||||
|
||||
// 网址收藏夹模型
|
||||
type CloudBookmark struct {
|
||||
types.Std_IICUDS
|
||||
types.Std_Passport
|
||||
CloudBase
|
||||
Title string `gorm:"size:200" json:"title"` // 标题
|
||||
URL string `gorm:"size:500" json:"url"` // 网址
|
||||
Description string `gorm:"size:500" json:"description"` // 描述
|
||||
Category string `gorm:"size:50" json:"category"` // 分类
|
||||
Tags string `gorm:"size:500" json:"tags"` // 标签
|
||||
Icon string `gorm:"size:500" json:"icon"` // 网站图标URL
|
||||
IsPrivate bool `gorm:"default:false" json:"is_private"` // 是否私有
|
||||
}
|
||||
|
||||
func init() {
|
||||
database.AppendMigrate(&CloudBookmark{})
|
||||
}
|
||||
Reference in New Issue
Block a user