|
@@ -1,6 +1,7 @@
|
|
|
package cn.com.qmth.examcloud.core.basic.api.provider;
|
|
|
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+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;
|
|
|
|
|
@@ -9,6 +10,7 @@ import cn.com.qmth.examcloud.core.basic.api.DemoCloudService;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.request.GetXxxReq;
|
|
|
import cn.com.qmth.examcloud.core.basic.api.response.GetXxxResp;
|
|
|
import cn.com.qmth.examcloud.core.basic.service.DemoService;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("${url.prefix}/demo")
|
|
@@ -18,9 +20,10 @@ public class DemoCloudServiceProvider extends ControllerSupport implements DemoC
|
|
|
|
|
|
DemoService demoService;
|
|
|
|
|
|
- @GetMapping("getXxx")
|
|
|
+ @ApiOperation(value = "DEMO", notes = "DEMO")
|
|
|
+ @PostMapping("getXxx")
|
|
|
@Override
|
|
|
- public GetXxxResp getXxx(GetXxxReq req) {
|
|
|
+ public GetXxxResp getXxx(@RequestBody GetXxxReq req) {
|
|
|
GetXxxResp resp = new GetXxxResp();
|
|
|
resp.setS("test");
|
|
|
return resp;
|