package
0.0.0-20250213021319-24ddf9f8488d
Repository: https://github.com/hsiaocz/go-master.git
Documentation: pkg.go.dev

# README

题目1:用户注册与登录日志审计

业务背景: 开发一个用户系统,需记录所有注册/登录请求的审计日志(时间、IP、行为类型),并防止暴力破解。

需求:

提供 /register 和 /login 的 RESTful API

使用 JWT 实现登录态(有效期2小时)

记录审计日志到文件(JSON格式)

同一IP在1分钟内失败超过5次则锁定10分钟

技术要求:

使用 Gin 框架

日志文件按天切割

内存或Redis实现IP限流

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author