Files
22ee0aa112 修复安全问题 (#9)
* fix:修复权限问题

* fix:修复项目key类型错误问题

* fix:修复rbac权限问题

* fix:修复api密钥未及时失效的问题

* improve:优化渠道调度稳定性

* improve:优化路由

* fix:修复项目预算控制缺陷

* fix:加强限流等安全措施

* feat:添加限流相关字段的前端展示及接口字段

* improve:优化注册时密码要求,只需要字母和数字即可

* feat(setting):添加注册限流设置

* improve:优化前端数字类型转换

* chore:rbac权限放行

---------

Co-authored-by: chengqian <wuchengqian@kkidc.com>
Co-authored-by: qian <wuchengqian5@163.com>
2026-06-23 22:47:54 +08:00

32 lines
1.5 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// SysAdminUsers is the golang structure of table sys_admin_users for DAO operations like Where/Data.
type SysAdminUsers struct {
g.Meta `orm:"table:sys_admin_users, do:true"`
Id any // 主键ID
Username any // 登录用户名
PasswordHash any // 密码哈希(bcrypt)
Email any // 邮箱地址(可选,可为NULL)
DisplayName any // 显示名称
Role any // 角色:super_admin(全权限)/ admin(可配置权限)
Status any // 状态:active(启用)/ disabled(禁用)
LastLoginAt *gtime.Time // 最后登录时间
LastLoginIp any // 最后登录IP
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
TotpSecret any // TOTP 密钥(AES-256 加密存储)
TotpEnabled any // 是否启用双因素认证
BackupCodes any // 备用恢复码(bcrypt 哈希存储)
FailedAttempts any // 连续登录失败次数(成功登录后归零)
LockedUntil *gtime.Time // 锁定截止时间(连续5次失败后锁定30分钟)
}