提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.service.logger; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
|
4 |
import com.iailab.framework.common.util.object.BeanUtils; |
|
5 |
import com.iailab.module.system.api.logger.dto.LoginLogCreateReqDTO; |
|
6 |
import com.iailab.module.system.controller.admin.logger.vo.loginlog.LoginLogPageReqVO; |
|
7 |
import com.iailab.module.system.dal.dataobject.logger.LoginLogDO; |
|
8 |
import com.iailab.module.system.dal.mysql.logger.LoginLogMapper; |
|
9 |
import org.springframework.stereotype.Service; |
|
10 |
import org.springframework.validation.annotation.Validated; |
|
11 |
|
|
12 |
import javax.annotation.Resource; |
|
13 |
|
|
14 |
/** |
|
15 |
* 登录日志 Service 实现 |
|
16 |
*/ |
|
17 |
@Service |
|
18 |
@Validated |
|
19 |
public class LoginLogServiceImpl implements LoginLogService { |
|
20 |
|
|
21 |
@Resource |
|
22 |
private LoginLogMapper loginLogMapper; |
|
23 |
|
|
24 |
@Override |
|
25 |
public PageResult<LoginLogDO> getLoginLogPage(LoginLogPageReqVO pageReqVO) { |
|
26 |
return loginLogMapper.selectPage(pageReqVO); |
|
27 |
} |
|
28 |
|
|
29 |
@Override |
|
30 |
public void createLoginLog(LoginLogCreateReqDTO reqDTO) { |
|
31 |
LoginLogDO loginLog = BeanUtils.toBean(reqDTO, LoginLogDO.class); |
|
32 |
loginLogMapper.insert(loginLog); |
|
33 |
} |
|
34 |
|
|
35 |
} |