feat:完善网站信息,增加创新服务数据模型
This commit is contained in:
@ -10,7 +10,7 @@ type ActivityInstance struct {
|
||||
Image
|
||||
ActivityInstanceBasic
|
||||
Amount float64 `gorm:"column:amount;type:decimal(10,2);default:0;comment:活动收费金额" json:"amount"`
|
||||
Content string `gorm:"column:title;type:text;comment:活动详情" json:"content"`
|
||||
Content string `gorm:"column:content;type:text;comment:活动详情" json:"content"`
|
||||
MaxNumber int `gorm:"column:max_number;type:int(6);default:0;comment:报名限制人数,0不做限制" json:"max_number"`
|
||||
Status ActivityInstanceStatus `gorm:"column:status;type:tinyint(1);default:1;comment:活动状态(1:显示,2:隐藏)" json:"status"`
|
||||
ModelDeleted
|
||||
|
20
app/common/model/sys_about.go
Normal file
20
app/common/model/sys_about.go
Normal file
@ -0,0 +1,20 @@
|
||||
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{}
|
||||
}
|
Reference in New Issue
Block a user