Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✍️[跟踪] 模块功能 #2

Open
16 of 20 tasks
niltor opened this issue Mar 12, 2024 · 0 comments
Open
16 of 20 tasks

✍️[跟踪] 模块功能 #2

niltor opened this issue Mar 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@niltor
Copy link
Contributor

niltor commented Mar 12, 2024

目的

加强一些常用模块的功能,以便在新的项目中能够更方便的复用,而不需要重复开发。

本Issue 用来制定模块功能的列表,并追踪相关的功能的开发进度。

模块总览

  • CMS 内容管理模块
  • FileManager 文件管理模块
  • Order 订单模块
  • System 系统管理模块

系统模块功能

系统模块目前包含以下实体:

  • 配置
  • 日志
  • 菜单
  • 组织结构
  • 权限
  • 权限组
  • 角色
  • 系统用户

需要添加和完善的功能

登录安全策略

可配置的登录安全策略

  • 密码校验:

    • 简单:最低6位
    • 普通:最低8位,要求大小写+数字
    • 严格:最低8位,大小写+特殊字符+数字
  • 是否开启验证码。提供图形验证码的默认实现

  • 密码过期时间:月,到期后必须修改当前密码才可继续使用

  • 开启登录失败:连续登录n次后锁定账户

  • 退出:手动或自动(超时)退出,即token失效

  • 会话限制

    • 唯一:指在任何客户端,只允许账号在一处生效
    • 客户端:指每个客户端,只允许存在一个有效账号状态
    • 无:不限制登录

当检测到使用redis时,则使用redis存储状态,否则使用数据库。

🆕用户模块

  • UserActionLogs:用户行为记录,如登录日志等
  • UserConfig:用户的配置

系统模块

  • 生成图形验证码

其他功能

  • 导出Word
  • 添加速率限制
  • JWTToken中间件,过期及缓存内容的判断
  • 业务日志记录的实现
  • 初始化缓存内容

验证与测试

  • 登录安全策略
  • 图形验证码
@niltor niltor self-assigned this Mar 12, 2024
@niltor niltor added the enhancement New feature or request label Mar 12, 2024
@niltor niltor changed the title [跟踪] 模块功能 ✍️[跟踪] 模块功能 Mar 12, 2024
@niltor niltor added this to the 8.1 milestone Mar 15, 2024
@niltor niltor mentioned this issue Mar 15, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant