完善基础架构,新增部分问题接口

This commit is contained in:
2022-05-26 00:39:39 +08:00
parent 761c24efbf
commit 326118eefb
16 changed files with 251 additions and 4 deletions

View File

@@ -9,7 +9,12 @@ import (
// 初始化数据库表
func databaseTable() {
dbs := []any{
new(entity.User), // 管理员用户
new(entity.User),
new(entity.Category),
new(entity.Problem),
new(entity.ProblemCategory),
new(entity.Submit),
new(entity.TestCase),
}
if err := client.MySQL.AutoMigrate(dbs...); err != nil {