|
@@ -1,7 +1,10 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
+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;
|
|
|
|
|
@@ -25,7 +28,7 @@ public class PushController {
|
|
|
@ApiOperation(value = "HIS接口对接")
|
|
|
@PostMapping("/getDataService")
|
|
|
@SysLogger("getDataService")
|
|
|
- public RespDTO<String> getDataService(PushVO pushVO) {
|
|
|
+ public RespDTO<String> getDataService(@RequestBody @Valid PushVO pushVO) {
|
|
|
String data=pushFacade.getDataService(pushVO);
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|