PUT /admin/security/password-policy

运行时更新密码策略配置,支持多租户差异化设置

安全策略 `bearerAuth` application/json

请求体

Schema: service-identity/internal/handler/dto.UpdatePasswordPolicyRequest

字段类型必填示例约束描述
change_cooldown_minutes integer 否 密码修改冷却时间(分钟)
check_breached_passwords boolean 否 是否检测已泄露密码
expiry_days integer 否 密码过期天数
grace_period_days integer 否 过期宽限天数
history_count integer 否 密码历史保留数量
lock_duration_sec integer 否 账户锁定时间(秒)
max_length integer 否 最大长度
max_login_attempts integer 否 最大登录失败次数
min_length integer 否 最小长度
password_transmission string 否 密码传输方式
require_digit boolean 否 需要数字
require_lower boolean 否 需要小写字母
require_special boolean 否 需要特殊字符
require_upper boolean 否 需要大写字母

响应

状态描述Schema
200更新成功service-core/base/dto.SimpleResponse

引用的 Schema

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否