|
|
@ -1,6 +1,7 @@
|
|
|
|
package com.ibeetl.jlw.web.api;
|
|
|
|
package com.ibeetl.jlw.web.api;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
|
|
|
|
|
import cn.hutool.core.map.MapUtil;
|
|
|
|
import cn.jlw.Interceptor.SCoreUser;
|
|
|
|
import cn.jlw.Interceptor.SCoreUser;
|
|
|
|
import cn.jlw.Interceptor.TStudent;
|
|
|
|
import cn.jlw.Interceptor.TStudent;
|
|
|
|
import cn.jlw.Interceptor.TTeacher;
|
|
|
|
import cn.jlw.Interceptor.TTeacher;
|
|
|
@ -22,6 +23,8 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
import static cn.jlw.util.PageUtil.ofDefault;
|
|
|
|
import static cn.jlw.util.PageUtil.ofDefault;
|
|
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
@ -80,6 +83,8 @@ public class IndexBaseController {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@GetMapping(API + "/dateTime.do")
|
|
|
|
@GetMapping(API + "/dateTime.do")
|
|
|
|
public JsonResult dateTime() {
|
|
|
|
public JsonResult dateTime() {
|
|
|
|
return JsonResult.success(DateUtil.date());
|
|
|
|
Map result = MapUtil.<String, Object>builder("dateTime", DateUtil.date())
|
|
|
|
|
|
|
|
.put("timestamp", DateUtil.current()).build();
|
|
|
|
|
|
|
|
return JsonResult.success(result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|