正在显示
1 个修改的文件
包含
18 行增加
和
0 行删除
| @@ -13,6 +13,7 @@ import org.jeecg.common.system.base.controller.JeecgController; | @@ -13,6 +13,7 @@ import org.jeecg.common.system.base.controller.JeecgController; | ||
| 13 | import org.jeecg.common.system.query.QueryGenerator; | 13 | import org.jeecg.common.system.query.QueryGenerator; |
| 14 | import org.jeecg.modules.airag.app.entity.AiragLog; | 14 | import org.jeecg.modules.airag.app.entity.AiragLog; |
| 15 | import org.jeecg.modules.airag.app.service.IAiragLogService; | 15 | import org.jeecg.modules.airag.app.service.IAiragLogService; |
| 16 | +import org.jeecg.modules.airag.llm.entity.AiragKnowledge; | ||
| 16 | import org.jeecg.modules.airag.llm.entity.AiragModel; | 17 | import org.jeecg.modules.airag.llm.entity.AiragModel; |
| 17 | import org.jeecg.modules.airag.llm.service.IAiragModelService; | 18 | import org.jeecg.modules.airag.llm.service.IAiragModelService; |
| 18 | import org.springframework.beans.factory.annotation.Autowired; | 19 | import org.springframework.beans.factory.annotation.Autowired; |
| @@ -21,6 +22,7 @@ import org.springframework.web.servlet.ModelAndView; | @@ -21,6 +22,7 @@ import org.springframework.web.servlet.ModelAndView; | ||
| 21 | 22 | ||
| 22 | import javax.servlet.http.HttpServletRequest; | 23 | import javax.servlet.http.HttpServletRequest; |
| 23 | import javax.servlet.http.HttpServletResponse; | 24 | import javax.servlet.http.HttpServletResponse; |
| 25 | +import java.sql.SQLException; | ||
| 24 | import java.util.Arrays; | 26 | import java.util.Arrays; |
| 25 | import java.util.HashMap; | 27 | import java.util.HashMap; |
| 26 | import java.util.List; | 28 | import java.util.List; |
| @@ -73,6 +75,22 @@ public class AiragLogController extends JeecgController<AiragLog, IAiragLogServi | @@ -73,6 +75,22 @@ public class AiragLogController extends JeecgController<AiragLog, IAiragLogServi | ||
| 73 | return Result.OK(pageList); | 75 | return Result.OK(pageList); |
| 74 | } | 76 | } |
| 75 | 77 | ||
| 78 | + /** | ||
| 79 | + * 查询模型库名称 | ||
| 80 | + * | ||
| 81 | + * @param airagModel | ||
| 82 | + * @param req | ||
| 83 | + * @return | ||
| 84 | + */ | ||
| 85 | + @AutoLog(value = "日志管理-查询模型库名称") | ||
| 86 | + @Operation(summary="日志管理-查询模型库名称") | ||
| 87 | + @GetMapping(value = "/listmodelid") | ||
| 88 | + public Result<List<AiragModel>> queryAiragKnowledgeList(AiragModel airagModel, HttpServletRequest req) throws NoSuchFieldException, IllegalAccessException, SQLException { | ||
| 89 | + QueryWrapper<AiragModel> queryWrapper = QueryGenerator.initQueryWrapper(airagModel, req.getParameterMap()); | ||
| 90 | + List<AiragModel> list = airagModelService.list(queryWrapper); | ||
| 91 | + return Result.OK(list); | ||
| 92 | + } | ||
| 93 | + | ||
| 76 | /** | 94 | /** |
| 77 | * 添加 | 95 | * 添加 |
| 78 | * | 96 | * |
-
请 注册 或 登录 后发表评论