You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
857 B
20 lines
857 B
2 months ago
|
package models
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type BotAnnouncement struct {
|
||
|
Content string `xorm:"not null comment('内容') TEXT"`
|
||
|
CreateTime time.Time `xorm:"not null DATETIME"`
|
||
|
Id int `xorm:"not null pk autoincr INT"`
|
||
|
IsDelete int `xorm:"not null default 1 comment('是否删除 1 未删除 2 已删除') index SMALLINT"`
|
||
|
IsPopUps int `xorm:"not null default 1 TINYINT"`
|
||
|
Lang int `xorm:"not null default 0 comment('语言') index INT"`
|
||
|
Name string `xorm:"not null default '' comment('名称') VARCHAR(255)"`
|
||
|
Status int `xorm:"not null default 1 comment('1 上架 2下架') SMALLINT"`
|
||
|
Title string `xorm:"not null default '' comment('标题') VARCHAR(255)"`
|
||
|
UpdateTime time.Time `xorm:"not null DATETIME"`
|
||
|
Weight int `xorm:"not null default 0 comment('权重') INT"`
|
||
|
}
|