feat: add suffix management module under business admin

- migration 000017: suffix_dirs tree (info-price style, two-root sidebar),
  suffix_groups, suffixes, per-directory columns with value flag, cells,
  row anchors and template files (stored under PACKAGE_STORAGE_ROOT)
- Go API /api/v1/suffix-admin/*: tree/page/CRUD/reorder for dirs, groups,
  suffixes and columns; cell upsert; anchor toggle; template upload with
  sha256 verification, scoped download/delete; admin session required
- RequiredSchemaVersion 16 -> 17
- Vue panel /suffixes (menu below payment plans): two roots (basic setup +
  info-price directory tree), grouped suffix sheet with template upload,
  add-column dialog with 值设置 checkbox (value cells store {anchor,value});
  removed attribute-table/field-mapping/column-sort/value-setting toolbar
- tests: integration test (MYSQL_TEST_DSN gated) + 3 vitest cases
This commit is contained in:
lianjianwei2024
2026-10-30 11:32:22 +08:00
parent 682f8737d0
commit dd9d5470c2
11 changed files with 2146 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS suffix_files;
DROP TABLE IF EXISTS suffix_dir_anchors;
DROP TABLE IF EXISTS suffix_cells;
DROP TABLE IF EXISTS suffix_columns;
DROP TABLE IF EXISTS suffixes;
DROP TABLE IF EXISTS suffix_groups;
DROP TABLE IF EXISTS suffix_dirs;