Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Has been cancelled
- 新增 RedisSystemOperationPasswordKey 常量函数(pkg/constants/redis.go) - 新增 operation_password Service(Set/IsSet/Verify,bcrypt 哈希存 Redis) - 新增 SuperAdminHandler 及两个接口: - POST /api/admin/super-admin/operation-password(设置/重置,仅超级管理员) - GET /api/admin/super-admin/operation-password/status(查询是否已设置) - AgentRecharge.OfflinePay 操作密码验证从"查当前用户登录密码"改为"全局操作密码 Verify" - Bootstrap/路由/文档生成器同步注册
13 lines
607 B
Go
13 lines
607 B
Go
package dto
|
|
|
|
// SetOperationPasswordRequest 设置全局操作密码请求
|
|
type SetOperationPasswordRequest struct {
|
|
Password string `json:"password" validate:"required,min=6,max=50" required:"true" minLength:"6" maxLength:"50" description:"新操作密码,长度 6~50 位"`
|
|
ConfirmPassword string `json:"confirm_password" validate:"required" required:"true" description:"确认密码,必须与 password 一致"`
|
|
}
|
|
|
|
// OperationPasswordStatusResponse 操作密码状态响应
|
|
type OperationPasswordStatusResponse struct {
|
|
IsSet bool `json:"is_set" description:"操作密码是否已设置"`
|
|
}
|