DELL
2024-12-23 fed0a447df51e633ab6453261dc6e3d8a906d4a2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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,"调用服务成功!");
    }
 
}