PUT /admin/tenants/{tenant_id}/minors-protection

更新指定租户的未成年人保护配置

租户服务 `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
tenant_id path string 是 租户ID

请求体

Schema: service-tenant/internal/handler/dto.UpdateMinorsProtectionConfigRequest

字段类型必填示例约束描述
child_default_max_privacy boolean 否
content_filter_enabled boolean 否
daily_usage_limit_min integer 否
digital_consent_age integer 否
live_stream_blocked_under16 boolean 否
minor_data_retention_days integer 否
minors_age_threshold integer 否
monthly_spend_limit integer 否
night_mode_enabled boolean 否
night_mode_end string 否
night_mode_start string 否

响应

引用的 Schema

service-core/base/dto.SimpleResponse

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

service-tenant/internal/handler/dto.MinorsProtectionConfigResponse

字段类型必填示例约束描述
child_default_max_privacy boolean 否 True
content_filter_enabled boolean 否 False
daily_usage_limit_min integer 否 60
digital_consent_age integer 否 13
live_stream_blocked_under16 boolean 否 False
minor_data_retention_days integer 否 365
minors_age_threshold integer 否 18
monthly_spend_limit integer 否 10000
night_mode_enabled boolean 否 False
night_mode_end string 否 06:00
night_mode_start string 否 22:00
tenant_id string 否 tnt_abc123