|
|
@ -8,6 +8,7 @@ import net.educoder.ecsonar.model.vo.*;
|
|
|
|
import net.educoder.ecsonar.services.CloudBrainService;
|
|
|
|
import net.educoder.ecsonar.services.CloudBrainService;
|
|
|
|
import net.educoder.ecsonar.utils.ResponseResult;
|
|
|
|
import net.educoder.ecsonar.utils.ResponseResult;
|
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@ -69,6 +70,12 @@ public class CloudBrainController {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@GetMapping(value = "/issues/search")
|
|
|
|
@GetMapping(value = "/issues/search")
|
|
|
|
public ResponseResult<IssuesVO> issuesSearch(IssuesSearchVO searchVO) {
|
|
|
|
public ResponseResult<IssuesVO> issuesSearch(IssuesSearchVO searchVO) {
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(searchVO.getTaskName())) {
|
|
|
|
|
|
|
|
return ResponseResult.error("taskName不能为空");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(searchVO.getType())) {
|
|
|
|
|
|
|
|
return ResponseResult.error("type不能为空");
|
|
|
|
|
|
|
|
}
|
|
|
|
List<IssuesVO> result = cloudBrainService.issuesSearch(searchVO);
|
|
|
|
List<IssuesVO> result = cloudBrainService.issuesSearch(searchVO);
|
|
|
|
return ResponseResult.success(result);
|
|
|
|
return ResponseResult.success(result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|