2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
2023-06-16 11:29:48 +00:00
|
|
|
// fs_map_library 贴图库
|
2023-06-16 11:04:13 +00:00
|
|
|
type FsMapLibrary struct {
|
2023-06-19 10:27:31 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // Id
|
|
|
|
Title *string `gorm:"default:'';" json:"title"` // 名称
|
|
|
|
Info *string `gorm:"default:'';" json:"info"` // 贴图数据
|
|
|
|
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
|
|
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1启用
|
|
|
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
|
|
|
TagId *int64 `gorm:"default:0;" json:"tag_id"` // 模板标签id
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
2023-06-16 11:29:48 +00:00
|
|
|
type FsMapLibraryModel struct{ db *gorm.DB }
|
2023-06-16 11:04:13 +00:00
|
|
|
|
2023-06-16 11:29:48 +00:00
|
|
|
func NewFsMapLibraryModel(db *gorm.DB) *FsMapLibraryModel { return &FsMapLibraryModel{db} }
|