🎨 优化机器人相关接口

This commit is contained in:
2025-08-09 08:33:49 +08:00
parent e4bfdc31da
commit 2674f4f061
3 changed files with 5 additions and 3 deletions

View File

@@ -10,6 +10,8 @@ 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;"` //关联词
}
// TableName 机器人 Bot自定义表名 bots