|
@@ -1,20 +1,8 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
-import com.diagbot.vo.QuestionIndexSubVO;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
-import com.diagbot.dto.IndexRevDTO;
|
|
|
import com.diagbot.dto.QuestionDTO;
|
|
|
import com.diagbot.dto.QuestionPageDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
@@ -22,16 +10,24 @@ import com.diagbot.entity.QuestionInfo;
|
|
|
import com.diagbot.facade.QuestionFacade;
|
|
|
import com.diagbot.vo.DeleteQuestionVO;
|
|
|
import com.diagbot.vo.QuestionIdsVO;
|
|
|
+import com.diagbot.vo.QuestionIndexSubVO;
|
|
|
import com.diagbot.vo.QuestionIndexVO;
|
|
|
import com.diagbot.vo.QuestionPageVO;
|
|
|
import com.diagbot.vo.QuestionSaveVO;
|
|
|
import com.diagbot.vo.QuestionSpecVO;
|
|
|
import com.diagbot.vo.QuestionVO;
|
|
|
-
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -80,20 +76,11 @@ public class QuestionInfoController {
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
|
|
|
-// @ApiOperation(value = "别名新增标签检索[by:rengb]",
|
|
|
-// notes = "")
|
|
|
-// @PostMapping("/indexRev")
|
|
|
-// @SysLogger("indexRev")
|
|
|
-// public RespDTO<List<IndexRevDTO>> indexRev(@RequestBody QuestionIndexVO questionIndexVO) {
|
|
|
-// List<IndexRevDTO> data = questionFacade.indexRev(questionIndexVO);
|
|
|
-// return RespDTO.onSuc(data);
|
|
|
-// }
|
|
|
-
|
|
|
@ApiOperation(value = "子标签检索[by:zhaops]",
|
|
|
notes = "")
|
|
|
@PostMapping("/indexSub")
|
|
|
@SysLogger("indexSub")
|
|
|
- public RespDTO<List<QuestionInfo>> indexSub(@RequestBody @Valid QuestionIndexSubVO questionIndexSubVO) {
|
|
|
+ public RespDTO<List<QuestionInfo>> indexSub(@RequestBody @Valid QuestionIndexSubVO questionIndexSubVO) {
|
|
|
List<QuestionInfo> data = questionFacade.indexSub(questionIndexSubVO);
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|