🎨 新增设置用户vip接口,优化机器人查询接口&修改跨域配置
This commit is contained in:
@@ -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
|
||||
|
@@ -82,3 +82,9 @@ type GetTeacherApplyListReq struct {
|
||||
Phone string `json:"phone" form:"phone"`
|
||||
Nickname string `json:"nickname" form:"nickname"`
|
||||
}
|
||||
|
||||
type SetUserVipReq struct {
|
||||
Id int `json:"id" form:"id" vd:"@:len($)>0; msg:'用户ID不能为空'"`
|
||||
VipExpireTime string `json:"vip_expire_time" form:"vip_expire_time" vd:"@:len($)>0; msg:'会员过期时间不能为空'"`
|
||||
UserLabel int64 `json:"user_label" form:"user_label" vd:"@:len($)>0; msg:'用户标签不能为空'"` // 1 普通用户 2 Vip 3 Svip
|
||||
}
|
||||
|
Reference in New Issue
Block a user