feat:完善项目
This commit is contained in:
19
app/common/model/manage_notice.go
Normal file
19
app/common/model/manage_notice.go
Normal file
@ -0,0 +1,19 @@
|
||||
package model
|
||||
|
||||
// ManageNotice 公告管理数据模型
|
||||
type ManageNotice struct {
|
||||
Model
|
||||
ModelTenant
|
||||
Title string `gorm:"column:title;type:varchar(100);default:null;comment:标题" json:"title"`
|
||||
Content string `gorm:"column:content;type:text;default:null;comment:内容" json:"content"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *ManageNotice) TableName() string {
|
||||
return "manage_notice"
|
||||
}
|
||||
|
||||
func NewManageNotice() *ManageNotice {
|
||||
return &ManageNotice{}
|
||||
}
|
Reference in New Issue
Block a user