package com.iailab.module.system.service.logger; import com.iailab.framework.common.pojo.PageResult; import com.iailab.framework.common.util.object.BeanUtils; import com.iailab.module.system.api.logger.dto.LoginLogCreateReqDTO; import com.iailab.module.system.controller.admin.logger.vo.loginlog.LoginLogPageReqVO; import com.iailab.module.system.dal.dataobject.logger.LoginLogDO; import com.iailab.module.system.dal.mysql.logger.LoginLogMapper; import org.springframework.stereotype.Service; import org.springframework.validation.annotation.Validated; import javax.annotation.Resource; /** * 登录日志 Service 实现 */ @Service @Validated public class LoginLogServiceImpl implements LoginLogService { @Resource private LoginLogMapper loginLogMapper; @Override public PageResult getLoginLogPage(LoginLogPageReqVO pageReqVO) { return loginLogMapper.selectPage(pageReqVO); } @Override public void createLoginLog(LoginLogCreateReqDTO reqDTO) { LoginLogDO loginLog = BeanUtils.toBean(reqDTO, LoginLogDO.class); loginLogMapper.insert(loginLog); } }