lckt-server/model/bot/bot.go
2025-04-09 12:17:33 +08:00

19 lines
502 B
Go

// 自动生成模板Bot
package bot
import (
"git.echol.cn/loser/lckt/global"
)
// 机器人 结构体 Bot
type Bot struct {
global.GVA_MODEL
Keyword string `json:"keyword" form:"keyword" gorm:"column:keyword;comment:关键词;" binding:"required"` //关键词
Content *string `json:"content" form:"content" gorm:"column:content;comment:内容;type:text;" binding:"required"` //内容
}
// TableName 机器人 Bot自定义表名 bots
func (Bot) TableName() string {
return "bots"
}