package com.jwipc.sys.controller.pc;

import com.jwipc.page.PageView;
import com.jwipc.sys.logic.LoginLogLogic;
import com.jwipc.sys.model.query.EmailLogQuery;
import com.jwipc.sys.model.query.LoginLogQuery;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.jwipc.sys.constant.ModuleConst.MODULE_ROOT;

/**
 * <p>
 * 系统登录日志
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-01-29
 */
@RestController
@RequestMapping(MODULE_ROOT + "/loginLog/rest")
@RequiredArgsConstructor
public class LoginLogRestController {
    private final LoginLogLogic loginLogLogic;

    /**
     * 列表
     * @param query
     * @return
     */
    @RequestMapping("/list")
    public PageView list(LoginLogQuery query) {
        return loginLogLogic.findByPage(query);
    }

}
