feat: 迁移 Admin Repository 到 MySQL 8 (#79)

This commit is contained in:
chengma
2026-08-10 02:21:31 +08:00
parent 05793e48b3
commit 13cfced80d
29 changed files with 390 additions and 240 deletions
+1 -8
View File
@@ -13,14 +13,7 @@ import (
)
func Test用户管理管理员与采购员权限边界(t *testing.T) {
db, err := repository.Open(t.TempDir())
if err != nil {
t.Fatal(err)
}
defer db.Close()
if err := repository.Migrate(db); err != nil {
t.Fatal(err)
}
db := newMySQLTestDB(t)
now := time.Now()
if err := service.SetupInitialAdmin(db, "admin", "admin-password", "admin-password", now); err != nil {
t.Fatal(err)