|
...
|
...
|
@@ -13,6 +13,7 @@ import org.jeecg.common.system.base.controller.JeecgController; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
|
import org.jeecg.modules.airag.app.entity.AiragLog;
|
|
|
|
import org.jeecg.modules.airag.app.service.IAiragLogService;
|
|
|
|
import org.jeecg.modules.airag.llm.entity.AiragKnowledge;
|
|
|
|
import org.jeecg.modules.airag.llm.entity.AiragModel;
|
|
|
|
import org.jeecg.modules.airag.llm.service.IAiragModelService;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
...
|
...
|
@@ -21,6 +22,7 @@ import org.springframework.web.servlet.ModelAndView; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.List;
|
|
...
|
...
|
@@ -74,6 +76,22 @@ public class AiragLogController extends JeecgController<AiragLog, IAiragLogServi |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询模型库名称
|
|
|
|
*
|
|
|
|
* @param airagModel
|
|
|
|
* @param req
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@AutoLog(value = "日志管理-查询模型库名称")
|
|
|
|
@Operation(summary="日志管理-查询模型库名称")
|
|
|
|
@GetMapping(value = "/listmodelid")
|
|
|
|
public Result<List<AiragModel>> queryAiragKnowledgeList(AiragModel airagModel, HttpServletRequest req) throws NoSuchFieldException, IllegalAccessException, SQLException {
|
|
|
|
QueryWrapper<AiragModel> queryWrapper = QueryGenerator.initQueryWrapper(airagModel, req.getParameterMap());
|
|
|
|
List<AiragModel> list = airagModelService.list(queryWrapper);
|
|
|
|
return Result.OK(list);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 添加
|
|
|
|
*
|
|
|
|
* @param airagLog
|
...
|
...
|
|