feat: 接入旧站管理端并完整迁移后台能力

This commit is contained in:
yml
2026-11-12 22:03:01 +08:00
parent e5f923706b
commit a4441bba9a
509 changed files with 140714 additions and 1068 deletions
@@ -87,6 +87,19 @@ func TestSupportQrcodeSceneUsesPublicFileURL(t *testing.T) {
}
}
func TestPointsMallSceneUsesPublicFileURL(t *testing.T) {
if got := normalizeScene("points_mall"); got != "points-mall" {
t.Fatalf("normalize points_mall scene = %q, want points-mall", got)
}
got := fileURLForScene("points-mall", "points-mall/2026/11/04/example.webp")
if !strings.HasPrefix(got, "/api/public/files/object?") {
t.Fatalf("points-mall file url = %q, want public file endpoint", got)
}
if !isPublicObjectKey("points-mall/2026/11/04/example.webp") {
t.Fatal("points-mall object should be publicly readable")
}
}
func TestNormalizeSceneListingScreenshotAndOperatingExpense(t *testing.T) {
if got := normalizeScene("listing_screenshot"); got != "listing" {
t.Fatalf("normalize listing_screenshot scene = %q, want listing", got)