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_font 字体配置
|
2023-06-16 11:04:13 +00:00
|
|
|
type FsFont struct {
|
2023-06-19 10:27:31 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
2023-10-17 10:32:43 +00:00
|
|
|
Title *string `gorm:"default:'';" json:"title"` //
|
2023-06-19 10:27:31 +00:00
|
|
|
LinuxFontname *string `gorm:"default:'';" json:"linux_fontname"` // linux对应字体名
|
2023-10-17 10:32:43 +00:00
|
|
|
FilePath *string `gorm:"default:'';" json:"file_path"` //
|
2023-06-19 10:27:31 +00:00
|
|
|
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
type FsFontModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
2023-07-20 02:13:18 +00:00
|
|
|
func NewFsFontModel(db *gorm.DB) *FsFontModel { return &FsFontModel{db: db, name: "fs_font"} }
|