| | |
| | | private final YHAiAgentStartQuestionMapper yhAiAgentStartQuestionMapper; |
| | | |
| | | private final YhSysAgentCategoryMapper yhSysAgentCategoryMapper; |
| | | private final YHSysAgentStartQuestionMapper yhSysAgentStartQuestionMapper; |
| | | private final YHSysAgentMapper yhSysAgentMapper; |
| | | |
| | | private final RedisUtils redisUtils; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse agentSysInfo(YHSysAgentInitDto dto) { |
| | | YHSysAgentInitVo vo = new YHSysAgentInitVo(); |
| | | |
| | | String id = dto.getId(); |
| | | YHSysAgent entity = yhSysAgentMapper.selectById(id); |
| | | if (ObjectUtil.isNotEmpty(entity)){ |
| | | vo.setId(entity.getId()); |
| | | vo.setName(entity.getName()); |
| | | vo.setDescription(entity.getDescription()); |
| | | vo.setIconImg(entity.getIconImg()); |
| | | vo.setIntroduct(entity.getIntroduct()); |
| | | List<YHSysAgentStartQuestion> questionList = yhSysAgentStartQuestionMapper.selectList( |
| | | Wrappers.lambdaQuery(YHSysAgentStartQuestion.class).eq(YHSysAgentStartQuestion::getAgentId, id) |
| | | ); |
| | | if (CollUtil.isNotEmpty(questionList)){ |
| | | List<String> questions = new ArrayList<>(); |
| | | for (YHSysAgentStartQuestion question : questionList) { |
| | | questions.add(question.getTitle()); |
| | | } |
| | | vo.setItems(questions); |
| | | } |
| | | } |
| | | |
| | | return new FebsResponse().success().data(vo); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse logout() { |
| | | String memberUuid = LoginUserUtil.getLoginUser().getMemberUuid(); |
| | | |