/verification/minors/protection
监护人设置未成年人的保护限制:每日使用时长、夜间模式时段、功能限制列表。需先完成同意授权
请求体
Schema: service-verification/internal/handler/dto.SetMinorProtectionRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
minor_user_id |
string |
是 | |||
daily_limit_minutes |
integer |
否 | |||
night_mode_end |
string |
否 | |||
night_mode_start |
string |
否 | |||
restrictions |
array of string |
否 |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 保护配置设置成功 | dto.DataResponse-service-verification/internal/handler/dto/GuardianRelationshipResponse |
| 400 | 请求参数错误 | dto.SimpleResponse |
| 401 | 未认证或令牌无效 | dto.SimpleResponse |
| 404 | 监护关系不存在 | dto.SimpleResponse |
| 500 | 服务内部错误 | dto.SimpleResponse |
引用的 Schema
dto.DataResponse-service-verification/internal/handler/dto/GuardianRelationshipResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
data |
service-verification/internal/handler/dto.GuardianRelationshipResponse |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-verification/internal/handler/dto.GuardianRelationshipResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
consent_at |
string |
否 | |||
consent_given |
boolean |
否 | |||
consent_scope |
string |
否 | |||
created_at |
string |
否 | |||
guardian_user_id |
string |
否 | |||
id |
string |
否 | |||
minor_user_id |
string |
否 | |||
relation_type |
string |
否 | |||
verified |
boolean |
否 | |||
verified_at |
string |
否 |