feat: 增加分类权限控制

- 新增角色分类授权模型与超级管理员配置接口

- 接入助手、插件、工作流、知识库、素材的分类可见性过滤

- 增加角色页分类权限树与插件多分类可见性支持
This commit is contained in:
2026-03-29 17:16:37 +08:00
parent aaf4c61ff8
commit f49d94e2fe
46 changed files with 1963 additions and 128 deletions

View File

@@ -41,10 +41,10 @@ const authTypeList = ref<headersType[]>([
},
]);
onMounted(() => {
api.get('/api/v1/model/list?supportEmbed=true').then((res) => {
api.get('/api/v1/plugin/modelList?supportEmbed=true').then((res) => {
embeddingLlmList.value = res.data;
});
api.get('/api/v1/model/list?supportRerankerLlmList=true').then((res) => {
api.get('/api/v1/plugin/modelList?supportRerankerLlmList=true').then((res) => {
rerankerLlmList.value = res.data;
});
api.get('/api/v1/pluginCategory/list').then((res) => {

View File

@@ -124,7 +124,7 @@ const footerButton = {
},
};
const getPluginCategoryList = async () => {
return api.get('/api/v1/pluginCategory/list').then((res) => {
return api.get('/api/v1/pluginCategory/visibleList').then((res) => {
if (res.errorCode === 0) {
const serverCategories = Array.isArray(res.data)
? (res.data as PluginCategory[])