21 lines
614 B
Go
21 lines
614 B
Go
![]() |
package model
|
||
|
|
||
|
// SysAbout 系统关于我们数据模型
|
||
|
type SysAbout struct {
|
||
|
Model
|
||
|
ParentID uint64 `gorm:"column:parent_id;type:int;default:0;comment:父级ID" json:"parent_id"`
|
||
|
Title string `gorm:"column:title;type:varchar(20);default:'';comment:标题信息" json:"title"`
|
||
|
Content string `gorm:"column:content;type:text;comment:详细信息" json:"content"`
|
||
|
Sort int `gorm:"column:sort;type:tinyint(3);default:0;comment:从大到小排序" json:"-"`
|
||
|
ModelDeleted
|
||
|
ModelAt
|
||
|
}
|
||
|
|
||
|
func (m *SysAbout) TableName() string {
|
||
|
return "sys_about"
|
||
|
}
|
||
|
|
||
|
func NewSysAbout() *SysAbout {
|
||
|
return &SysAbout{}
|
||
|
}
|