package com.whyc.controller;
|
|
import com.whyc.pojo.Response;
|
import com.whyc.service.TestParamService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
@RestController
|
@RequestMapping(("testParam"))
|
@Api(tags = "测试服务器")
|
public class TestParamController {
|
|
@Autowired
|
private TestParamService service;
|
|
@ApiOperation("服务调用测试")
|
@GetMapping("callService")
|
public Response callService(@RequestParam Integer seconds) throws InterruptedException {
|
service.callService(seconds);
|
return new Response().set(1,"调用服务成功!");
|
}
|
|
}
|