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.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());
|
}
|
|
}
|