增加登录失败日志表

This commit is contained in:
TS-QD1 2024-01-20 11:25:21 +08:00
parent b3bc28771a
commit 25bdfd02d5
2 changed files with 12 additions and 1 deletions

View File

@ -1,11 +1,12 @@
package ink.wgink.login.base.dao.log;
import ink.wgink.interfaces.init.IInitBaseTable;
import org.springframework.stereotype.Repository;
import java.util.Map;
@Repository
public interface ILoginFailureLogDao {
public interface ILoginFailureLogDao extends IInitBaseTable {
void save(Map<String, Object> params);

View File

@ -8,6 +8,16 @@
<result column="gmt_create" property="gmtCreate"/>
</resultMap>
<!-- 建表 -->
<update id="createTable">
CREATE TABLE IF NOT EXISTS `log_login_failure_log` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(255) DEFAULT NULL COMMENT '用户名',
`gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
</update>
<insert id="save" parameterType="map">
INSERT INTO log_login_failure_log (
username,