🎨 新增设置用户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

@@ -1,6 +1,13 @@
package initialize
import (
"git.echol.cn/loser/lckt/model/app"
"git.echol.cn/loser/lckt/model/article"
"git.echol.cn/loser/lckt/model/bot"
"git.echol.cn/loser/lckt/model/category"
"git.echol.cn/loser/lckt/model/notice"
"git.echol.cn/loser/lckt/model/user"
"git.echol.cn/loser/lckt/model/vip"
"os"
"git.echol.cn/loser/lckt/global"
@@ -63,6 +70,16 @@ func RegisterTables() {
example.ExaFileChunk{},
example.ExaFileUploadAndDownload{},
example.ExaAttachmentCategory{},
app.TeacherApply{},
app.Order{},
app.Banner{},
bot.Bot{},
user.User{},
article.Article{},
category.Category{},
notice.Notice{},
vip.Vip{},
)
if err != nil {
global.GVA_LOG.Error("register table failed", zap.Error(err))