20 lines
624 B
Go
20 lines
624 B
Go
// 自动生成模板Notice
|
|
package notice
|
|
|
|
import (
|
|
"git.echol.cn/loser/lckt/global"
|
|
)
|
|
|
|
// 通知 结构体 Notice
|
|
type Notice struct {
|
|
global.GVA_MODEL
|
|
Title *string `json:"title" form:"title" gorm:"column:title;comment:;" binding:"required"` //标题
|
|
Content *string `json:"content" form:"content" gorm:"column:content;comment:;type:text;" binding:"required"` //内容
|
|
Status *int `json:"status" form:"status" gorm:"column:status;comment:状态;"` //状态
|
|
}
|
|
|
|
// TableName 通知 Notice自定义表名 notice
|
|
func (Notice) TableName() string {
|
|
return "notice"
|
|
}
|