增加登录失败日志表
This commit is contained in:
parent
b3bc28771a
commit
25bdfd02d5
@ -1,11 +1,12 @@
|
|||||||
package ink.wgink.login.base.dao.log;
|
package ink.wgink.login.base.dao.log;
|
||||||
|
|
||||||
|
import ink.wgink.interfaces.init.IInitBaseTable;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
public interface ILoginFailureLogDao {
|
public interface ILoginFailureLogDao extends IInitBaseTable {
|
||||||
|
|
||||||
void save(Map<String, Object> params);
|
void save(Map<String, Object> params);
|
||||||
|
|
||||||
|
@ -8,6 +8,16 @@
|
|||||||
<result column="gmt_create" property="gmtCreate"/>
|
<result column="gmt_create" property="gmtCreate"/>
|
||||||
</resultMap>
|
</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 id="save" parameterType="map">
|
||||||
INSERT INTO log_login_failure_log (
|
INSERT INTO log_login_failure_log (
|
||||||
username,
|
username,
|
||||||
|
Loading…
Reference in New Issue
Block a user