Files
tkcrawl-client/src/main/resources/mapper/SystemLoginLogMapper.xml
ziin e56fc03099 feat(auth): 新增登录日志模块并记录登录失败
- 新增 SystemLoginLog 实体、Mapper、Service 及 XML 配置
- UserController 登录接口补充异常捕获与失败日志记录
- 删除旧压缩日志,新增最新日志文件
- 补充 AGENTS.md 使用说明文档
2026-03-10 11:49:45 +08:00

28 lines
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yupi.springbootinit.mapper.SystemLoginLogMapper">
<resultMap id="BaseResultMap" type="com.yupi.springbootinit.model.entity.SystemLoginLog">
<!--@mbg.generated-->
<!--@Table system_login_log-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="log_type" jdbcType="BIGINT" property="logType" />
<result column="trace_id" jdbcType="VARCHAR" property="traceId" />
<result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="user_type" jdbcType="TINYINT" property="userType" />
<result column="username" jdbcType="VARCHAR" property="username" />
<result column="result" jdbcType="TINYINT" property="result" />
<result column="user_ip" jdbcType="VARCHAR" property="userIp" />
<result column="user_agent" jdbcType="VARCHAR" property="userAgent" />
<result column="creator" jdbcType="VARCHAR" property="creator" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="updater" jdbcType="VARCHAR" property="updater" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="deleted" jdbcType="BIT" property="deleted" />
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, log_type, trace_id, user_id, user_type, username, `result`, user_ip, user_agent,
creator, create_time, updater, update_time, deleted, tenant_id
</sql>
</mapper>