fusenapi/model/gmodel/fs_faq_gen.go
laodaming f519e27719 fix
2023-08-18 11:41:36 +08:00

24 lines
936 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package gmodel
import (
"gorm.io/gorm"
)
// fs_faq 常见问题
type FsFaq struct {
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
TagId *int64 `gorm:"default:0;" json:"tag_id"` // 分类ID
TagName *string `gorm:"default:'';" json:"tag_name"` // 分类名称
Title *string `gorm:"default:'';" json:"title"` // 标题
Content *string `gorm:"default:'';" json:"content"` // 内容
Status *int64 `gorm:"default:0;" json:"status"` // 状态(0:禁用1:启用)
Sort *int64 `gorm:"default:1;" json:"sort"` // 排序
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
}
type FsFaqModel struct {
db *gorm.DB
name string
}
func NewFsFaqModel(db *gorm.DB) *FsFaqModel { return &FsFaqModel{db: db, name: "fs_faq"} }