From 0af44bd523056e1ddf9481db9823ec783d71b287 Mon Sep 17 00:00:00 2001 From: ila Date: Mon, 24 Aug 2026 17:29:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=A8=E6=88=B7=E7=AB=AF=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E8=B4=A6=E5=8F=B7=E7=99=BB=E5=BD=95=20(#50)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-ui/src/views/chorus/users/index.vue | 6 +- .../tests/unit/chorus/users-account.spec.js | 15 ++++ admin/app/chorus/service.go | 13 ++- .../chorus/service_mysql_integration_test.go | 5 +- admin/app/chorus/service_test.go | 12 +++ admin/app/chorus/types.go | 1 + cmd/chorus-seed/main.go | 1 + docs/02-architecture-and-code-map.md | 10 ++- docs/03-business-rules-and-glossary.md | 6 +- docs/04-local-development-and-verification.md | 14 +-- docs/09-product-requirements-overview.md | 7 +- .../core/apikey/mysql_integration_test.go | 6 +- internal/core/model/models.go | 1 + internal/core/model/schema_test.go | 2 +- internal/core/queue/mysql_integration_test.go | 1 + internal/seed/defaults.go | 33 ++++--- internal/seed/defaults.json | 15 ++-- internal/seed/defaults_test.go | 8 ++ internal/seed/mysql_integration_test.go | 89 +++++++++++++++++++ internal/seed/seed.go | 49 +++++++--- internal/seed/seed_test.go | 19 ++++ .../000008_portal_username_login.down.sql | 4 + .../000008_portal_username_login.up.sql | 14 +++ migrations/migrations_test.go | 32 +++++++ migrations/mysql_integration_test.go | 18 +++- portal/auth/service.go | 6 +- portal/handler/mysql_integration_test.go | 25 ++++-- portal/handler/router.go | 8 +- portal/web/e2e/fixture/main.go | 9 +- portal/web/e2e/portal.spec.js | 19 ++-- portal/web/static/app.js | 10 +-- portal/web/templates/login.html | 8 +- portal/web/web_test.go | 47 ++++++++++ portal/worker/mysql_integration_test.go | 4 +- 34 files changed, 428 insertions(+), 89 deletions(-) create mode 100644 admin-ui/tests/unit/chorus/users-account.spec.js create mode 100644 admin/app/chorus/service_test.go create mode 100644 internal/seed/mysql_integration_test.go create mode 100644 internal/seed/seed_test.go create mode 100644 migrations/000008_portal_username_login.down.sql create mode 100644 migrations/000008_portal_username_login.up.sql create mode 100644 portal/web/web_test.go diff --git a/admin-ui/src/views/chorus/users/index.vue b/admin-ui/src/views/chorus/users/index.vue index 6ebde49..50679f5 100644 --- a/admin-ui/src/views/chorus/users/index.vue +++ b/admin-ui/src/views/chorus/users/index.vue @@ -1,9 +1,9 @@