POST /admin/verifications/providers

为指定验证通道(OCR/核验/活体)创建身份验证提供方配置,包含优先级和JSON配置项。配置后可被服务用于选择验证服务提供商

验证服务 `bearerAuth` application/json

请求体

Schema: service-verification/internal/handler/dto.CreateProviderConfigRequest

字段类型必填示例约束描述
channel string 是 enum: `ocr`, `verification`, `liveness`
config string 是
provider string 是
priority integer 否

响应

状态描述Schema
201配置创建成功dto.DataResponse-service-verification/internal/handler/dto/ProviderConfigResponse
400请求参数错误dto.SimpleResponse
401未认证或令牌无效dto.SimpleResponse
403权限不足dto.SimpleResponse
404资源不存在dto.SimpleResponse
500服务内部错误dto.SimpleResponse

引用的 Schema

dto.DataResponse-service-verification/internal/handler/dto/ProviderConfigResponse

字段类型必填示例约束描述
code integer 否
data service-verification/internal/handler/dto.ProviderConfigResponse 否
message string 否
timestamp string 否

dto.SimpleResponse

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

service-verification/internal/handler/dto.ProviderConfigResponse

字段类型必填示例约束描述
app_id string 否
channel string 否
created_at string 否
id string 否
is_active boolean 否
priority integer 否
provider string 否
tenant_id string 否
updated_at string 否