SysConfController.java 756 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
package com.lyms.hospital.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.lyms.util.DateTimeUtils;
import com.lyms.web.controller.BaseController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@Api(value = "/api", description = "登录的相关操作")
public class SysConfController extends BaseController {
@ApiOperation(value = "系统时间", notes = "系统时间")
@RequestMapping(value = "/cTime")
@ResponseBody
public String testLogin() {
return String.valueOf(DateTimeUtils.getNow().getTime());
}

}