Files
love-nav/src/main/java/com/lovenav/controller/LoginLogsController.java
2023-12-25 17:13:33 +08:00

27 lines
761 B
Java

package com.lovenav.controller;
import cn.hutool.core.date.DateTime;
import com.lovenav.entity.LoginLogs;
import com.lovenav.service.LoginLogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
@RestController
public class LoginLogsController {
@Autowired
LoginLogsService loginLogsService;
@RequestMapping("/getUserLoginLogs")
public List<LoginLogs> getUserLoginLog(LoginLogs loginLogs){
if (loginLogs==null){
return null;
}
return loginLogsService.getUserLoginLogs(loginLogs);
}
}