/verification/consent
用户授权实名认证数据收集和处理,需提供同意项列表(如数据收集、人脸信息处理等)
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|---|---|
verification_id |
query |
string |
是 | 认证ID |
请求体
Schema: service-verification/internal/handler/dto.GrantConsentRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
consent_items |
array of string |
是 |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 授权成功 | dto.SimpleResponse |
| 400 | 请求参数错误 | dto.SimpleResponse |
| 401 | 未认证或令牌无效 | dto.SimpleResponse |
| 500 | 服务内部错误 | dto.SimpleResponse |
引用的 Schema
dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |