|
@@ -1,10 +1,25 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
-import io.swagger.annotations.Api;
|
|
|
+import javax.validation.Valid;
|
|
|
+
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+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.diagbot.annotation.SysLogger;
|
|
|
+import com.diagbot.dto.GetRetrievalsByTagDTO;
|
|
|
+import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.facade.RetrievalFacede;
|
|
|
+import com.diagbot.vo.DelRetrievalsByMapsVO;
|
|
|
+import com.diagbot.vo.GetRetrievalsByTagVO;
|
|
|
+
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 同义词检索表 前端控制器
|
|
@@ -18,5 +33,28 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
@SuppressWarnings("unchecked")
|
|
|
@Api(value = "同义词维护相关API", tags = { "同义词维护相关API" })
|
|
|
public class RetrievalController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private RetrievalFacede retrievalFacede;
|
|
|
+
|
|
|
+ @ApiOperation(value = "根据标签获取同义词[by:rengb]")
|
|
|
+ @PostMapping("/getRetrievalsByTag")
|
|
|
+ @SysLogger("getRetrievalsByTag")
|
|
|
+ public RespDTO<List<GetRetrievalsByTagDTO>> getRetrievalsByTag(@Valid @RequestBody GetRetrievalsByTagVO getRetrievalsByTagVO) {
|
|
|
+ return RespDTO.onSuc(retrievalFacede.getRetrievalsByTag(getRetrievalsByTagVO));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "根据映射关系删除标签的同义词[by:rengb]")
|
|
|
+ @PostMapping("/delRetrievalsByMaps")
|
|
|
+ @SysLogger("delRetrievalsByMaps")
|
|
|
+ public RespDTO<List<Boolean>> delRetrievalsByMaps(@Valid @RequestBody DelRetrievalsByMapsVO delRetrievalsByMapsVO) {
|
|
|
+ return RespDTO.onSuc(retrievalFacede.delRetrievalsByMaps(delRetrievalsByMapsVO));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|