✨ 完善基础架构,新增部分问题接口
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user