Report API文档
Report API文档
基本信息
- 标题: Passport
- 版本: 1.0
API Endpoint
https://p.unity.cn
API 接口
POST /v1/reports/search
摘要: 获取举报列表
请求体参数
| 参数名 | 必填 | 说明 |
|---|---|---|
| body | 是 | - |
请求体结构: passportSearchReportsRequest
响应
200 A successful response.
响应结构: passportSearchReportsResponse
default An unexpected error response.
响应结构: rpcStatus
DELETE /v1/reports/
摘要: 删除举报
路径参数
| 参数名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| reportID | string | 是 | 举报ID |
响应
200 A successful response.
响应结构: passportDeleteReportResponse
default An unexpected error response.
响应结构: rpcStatus
PUT /v1/reports/
摘要: 更新举报信息
路径参数
| 参数名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| reportID | string | 是 | 举报ID |
请求体参数
| 参数名 | 必填 | 说明 |
|---|---|---|
| body | 是 | - |
请求体结构: PassportUpdateReportBody
响应
200 A successful response.
响应结构: passportUpdateReportResponse
default An unexpected error response.
响应结构: rpcStatus
数据模型定义
PassportUpdateReportBody
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| status | passportReportStatuse | 否 | 更改的状态 |
passportDeleteReportResponse
passportReportInfo
标题: 举报信息
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| id | string | 否 | @gotags: bson:"_id" | |
| uosAppID | string | 否 | @gotags: bson:"uos_app_id" | |
| sourcePersonaID | string | 否 | @gotags: bson:"source_persona_id" | |
| targetPersonaID | string | 否 | @gotags: bson:"target_persona_id" | |
| content | string | 否 | @gotags: bson:"content" | |
| type | string | 否 | @gotags: bson:"type" | |
| status | passportReportStatuse | 否 | @gotags: bson:"status" | |
| imageUrls | array<string> | 否 | @gotags: bson:"image_urls" | |
| properties | object | 否 | @gotags: bson:"properties" custom information | |
| createdAt | string | date-time | 否 | @gotags: bson:"created_at" create time stamp |
| modifiedAt | string | date-time | 否 | @gotags: bson:"modified_at" update time stamp |
passportReportStatuse
标题: - Reviewing: 审核中
- Cleared: 无违规
- Actioned: 已处罚
- Revoked: 已撤回
枚举值
| 枚举值 | 描述 |
|---|---|
Reviewing | - |
Cleared | - |
Actioned | - |
Revoked | - |
passportSearchReportsRequest
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| start | integer | int64 | 否 | 起始点 |
| count | integer | int64 | 否 | 数量 |
| type | string | 否 | 举报类型 | |
| status | passportReportStatuse | 否 | 举报状态 | |
| sourcePersonaID | string | 否 | 举报人ID | |
| targetPersonaID | string | 否 | 被举报人ID |
passportSearchReportsResponse
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| reports | array<passportReportInfo> | 否 | 举报信息列表 | |
| start | integer | int64 | 否 | 本次搜索的起始位置 |
| count | integer | int64 | 否 | 本次搜索的目标数量 |
| total | integer | int64 | 否 | 总数 |
passportUpdateReportResponse
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| report | passportReportInfo | 否 | 举报信息 |
protobufAny
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| @type | string | 否 | - |
rpcStatus
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| code | integer | int32 | 否 | - |
| message | string | 否 | - | |
| details | array<protobufAny> | 否 | - |