whycxzp
2023-03-28 aaa2e601eb2a6806e761d4424fcaaf43a95fdcfd
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.dto.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * 服务器相关
 */
@Api(tags = "服务器相关")
@RestController
@RequestMapping("server")
public class ServerController {
 
    @ApiOperation(value = "查询服务器时间戳")
    @GetMapping("timestamp")
    public Response<Long> getTimestamp(){
        return new Response<Long>().set(1,System.currentTimeMillis());
    }
 
}