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:
@@ -98,6 +98,7 @@ func registerBusinessRoutes(r *gin.Engine, a *BusinessAPI) {
|
||||
purchaseAdmin.POST("/purchase-credentials", a.createPurchaseCredential)
|
||||
purchaseAdmin.PUT("/purchase-credentials/:id", a.updatePurchaseCredential)
|
||||
secured := api.Group("", a.authenticated)
|
||||
registerSuffixRoutes(secured, a)
|
||||
secured.GET("/me", a.me)
|
||||
secured.GET("/admins", a.listAdmins)
|
||||
secured.POST("/admins", a.createAdmin)
|
||||
|
||||
Reference in New Issue
Block a user