feat(ai): add three-level FAQ category management

- add FAQ category table/sql migration and initialize ddl updates

- add category service/controller with validation, default category rules, and sorting

- support faq item category binding and category-based filtering (include descendants)

- redesign FAQ page with category tree actions and UI polish
This commit is contained in:
2026-02-25 16:53:31 +08:00
parent 3b6ed8a49a
commit 9600d0855e
19 changed files with 2224 additions and 99 deletions

View File

@@ -81,6 +81,28 @@
},
"faq": {
"faqList": "FAQ List",
"allFaq": "All FAQ",
"category": "Category",
"categoryPlaceholder": "Select a category (empty means default category)",
"categoryTree": "Category Tree",
"categoryPath": "Category Path",
"categoryName": "Category Name",
"categoryNamePlaceholder": "Please input category name",
"parentCategory": "Parent Category",
"parentCategoryPlaceholder": "Please select parent category",
"rootCategory": "Root Category",
"sortNo": "Sort No",
"addCategory": "Add Category",
"addSiblingCategory": "Add Sibling Category",
"addChildCategory": "Add Child Category",
"moveUp": "Move Up",
"moveDown": "Move Down",
"promote": "Promote",
"demote": "Demote",
"editCategory": "Edit Category",
"maxLevelTip": "Maximum 3 levels are supported",
"defaultCategoryChildForbidden": "Default category cannot have child categories",
"defaultCategoryDeleteForbidden": "Default category cannot be deleted",
"question": "Question",
"answer": "Answer",
"questionPlaceholder": "Please input question",

View File

@@ -81,6 +81,28 @@
},
"faq": {
"faqList": "FAQ列表",
"allFaq": "全部FAQ",
"category": "分类",
"categoryPlaceholder": "请选择分类(不选则自动归入默认分类)",
"categoryTree": "分类树",
"categoryPath": "分类路径",
"categoryName": "分类名称",
"categoryNamePlaceholder": "请输入分类名称",
"parentCategory": "父分类",
"parentCategoryPlaceholder": "请选择父分类",
"rootCategory": "根分类",
"sortNo": "排序",
"addCategory": "新增分类",
"addSiblingCategory": "新增同级分类",
"addChildCategory": "新增子分类",
"moveUp": "上移",
"moveDown": "下移",
"promote": "升级",
"demote": "降级",
"editCategory": "编辑分类",
"maxLevelTip": "最多支持三级分类",
"defaultCategoryChildForbidden": "默认分类不允许创建子分类",
"defaultCategoryDeleteForbidden": "默认分类不允许删除",
"question": "问题",
"answer": "答案",
"questionPlaceholder": "请输入问题",