Bladeren bron

推理配置

zhaops 5 jaren geleden
bovenliggende
commit
29dd5847e1

+ 1 - 1
aipt-service/src/main/java/com/diagbot/facade/PushSetFacade.java

@@ -30,7 +30,7 @@ public class PushSetFacade extends PushSetServiceImpl {
      * @return
      */
     public PushSetDTO getPushSet(PushSetVO pushSetVO) {
-        if (StringUtil.isNotBlank(pushSetVO.getMode())) {
+        if (StringUtil.isBlank(pushSetVO.getMode())) {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "请输入推理模式");
         }
         PushSetDTO pushSetDTO = new PushSetDTO();

+ 2 - 0
aipt-service/src/main/java/com/diagbot/web/PushSetController.java

@@ -6,6 +6,7 @@ import com.diagbot.dto.PushSetDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.facade.PushSetFacade;
 import com.diagbot.vo.PushSetVO;
+import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.PostMapping;
@@ -23,6 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
  */
 @RestController
 @RequestMapping("/pushSet")
+@Api(value = "推理配置信息API", tags = { "推理配置信息API" })
 public class PushSetController {
 
     @Autowired

+ 2 - 0
data-service/src/main/java/com/diagbot/web/PushSetController.java

@@ -6,6 +6,7 @@ import com.diagbot.client.AiptServiceClient;
 import com.diagbot.dto.PushSetDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.vo.PushSetVO;
+import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.PostMapping;
@@ -23,6 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
  */
 @RestController
 @RequestMapping("/pushSet")
+@Api(value = "推理配置信息API", tags = { "推理配置信息API" })
 public class PushSetController {
 
     @Autowired