package gmodel

import (
	"gorm.io/gorm"
)

// fs_font 字体配置
type FsFont struct {
	Id            int64   `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
	Title         *string `gorm:"default:'';" json:"title"`                        //
	LinuxFontname *string `gorm:"default:'';" json:"linux_fontname"`               // linux对应字体名
	FilePath      *string `gorm:"default:'';" json:"file_path"`                    //
	Sort          *int64  `gorm:"default:0;" json:"sort"`                          // 排序
}
type FsFontModel struct {
	db   *gorm.DB
	name string
}

func NewFsFontModel(db *gorm.DB) *FsFontModel { return &FsFontModel{db: db, name: "fs_font"} }