新增 KeyboardUserLoginLog 实体、Mapper、Service 及 XML,扩展 Apple 与普通登录接口,自动记录 IP、UA、平台、OS 及新用户标识。
23 lines
1.3 KiB
XML
23 lines
1.3 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.yolo.keyborad.mapper.KeyboardUserLoginLogMapper">
|
|
<resultMap id="BaseResultMap" type="com.yolo.keyborad.model.entity.KeyboardUserLoginLog">
|
|
<!--@mbg.generated-->
|
|
<!--@Table keyboard_user_login_log-->
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" />
|
|
<result column="login_time" jdbcType="TIMESTAMP" property="loginTime" />
|
|
<result column="ip_address" jdbcType="VARCHAR" property="ipAddress" />
|
|
<result column="device_info" jdbcType="VARCHAR" property="deviceInfo" />
|
|
<result column="os" jdbcType="VARCHAR" property="os" />
|
|
<result column="platform" jdbcType="VARCHAR" property="platform" />
|
|
<result column="status" jdbcType="VARCHAR" property="status" />
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
<!--@mbg.generated-->
|
|
id, user_id, login_time, ip_address, device_info, os, platform, "status", created_at,
|
|
updated_at
|
|
</sql>
|
|
</mapper> |