24 lines
914 B
Go
24 lines
914 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"` //内容
|
|
// 关联词
|
|
RelatedWords *string `json:"related_words" form:"related_words" gorm:"column:related_words;comment:关联词;type:text;"` //关联词
|
|
//查询次数
|
|
SearchCount int `json:"search_count" form:"search_count" gorm:"column:search_count;comment:查询次数;"` //查询次数
|
|
CreateBy string `json:"create_by" form:"create_by" gorm:"column:create_by;comment:创建人;"` //创建人
|
|
}
|
|
|
|
// TableName 机器人 Bot自定义表名 bots
|
|
func (Bot) TableName() string {
|
|
return "bots"
|
|
}
|