fusenapi/model/gmodel/fs_font_gen.go

21 lines
689 B
Go
Raw Normal View History

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
Title *string `gorm:"default:'';" json:"title"` //
2023-06-19 10:27:31 +00:00
LinuxFontname *string `gorm:"default:'';" json:"linux_fontname"` // linux对应字体名
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
}
type FsFontModel struct {
db *gorm.DB
name string
}
2023-06-16 11:04:13 +00:00
func NewFsFontModel(db *gorm.DB) *FsFontModel { return &FsFontModel{db: db, name: "fs_font"} }