Remove the card password related

New application-related
This commit is contained in:
2025-10-24 01:48:54 +08:00
parent 11bff937bd
commit f03d2d0b12
22 changed files with 657 additions and 3623 deletions

View File

@@ -17,7 +17,7 @@ func AutoMigrate() error {
if err != nil {
return err
}
if err := db.AutoMigrate(&models.User{}, &models.Settings{}, &models.LoginType{}, &models.CardType{}, &models.Card{}, &models.App{}, &models.API{}); err != nil {
if err := db.AutoMigrate(&models.User{}, &models.Settings{}, &models.App{}, &models.API{}); err != nil {
logrus.WithError(err).Error("AutoMigrate 执行失败")
return err
}

View File

@@ -88,11 +88,6 @@ func SeedDefaultSettings() error {
Value: "https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11000002000001",
Description: "公安备案查询链接,留空则不显示",
},
{
Name: "card_batch_counter",
Value: "0",
Description: "卡密批次号计数器(用于记录上次生成批次号的序号,自增使用)",
},
}
// 逐个检查并创建不存在的设置项