🎨 新增设置用户vip接口,优化机器人查询接口&修改跨域配置

This commit is contained in:
2025-09-03 02:25:29 +08:00
parent 5496bdaa94
commit 09b22856a5
10 changed files with 163 additions and 27 deletions

View File

@@ -12,6 +12,9 @@ type Bot struct {
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