|
@@ -92,9 +92,13 @@ public class AiAgentController extends BaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 查询启用中的智能体选项(入口 + 全部启用专家,供管理面下拉选择)
|
|
|
|
|
|
|
+ * 查询启用中的智能体选项(入口 + 全部启用专家,供管理面下拉选择)。
|
|
|
|
|
+ *
|
|
|
|
|
+ * <p>任务工作台建会话也要用它解析入口智能体「数剑」:普通聊天用户没有
|
|
|
|
|
+ * {@code ai:agent:query}(数剑配置管理菜单),但只要能聊天({@code ai:chat:query})
|
|
|
|
|
+ * 就应能查到入口智能体——故按 OR 模式放行两种权限之一(与 scope-options 同口径)。</p>
|
|
|
*/
|
|
*/
|
|
|
- @SaCheckPermission("ai:agent:query")
|
|
|
|
|
|
|
+ @SaCheckPermission(value = {"ai:agent:query", "ai:chat:query"}, mode = SaMode.OR)
|
|
|
@GetMapping("/options")
|
|
@GetMapping("/options")
|
|
|
public R<List<AiAgentVo>> options() {
|
|
public R<List<AiAgentVo>> options() {
|
|
|
return R.ok(aiAgentService.queryOptions());
|
|
return R.ok(aiAgentService.queryOptions());
|