Report API文档
Report API文档
基本信息
- 标题: Passport
- 版本: 1.0
API Endpoint
https://p.unity.cn
API 接口
POST /v1/sdk/reports
摘要: 举报玩家
请求体参数
| 参数名 | 必填 | 说明 |
|---|---|---|
| body | 是 | 举报玩家请求 |
请求体结构: passportReportPlayerRequest
请求体示例
{
"targetPersonaId": "10000000054",
"reportType": "外挂作弊",
"content": "玩家开透视外挂"
}响应
200 A successful response.
响应结构: passportReportPlayerResponse
响应示例
{
"report": {
"reportID": "68526fdf16df8ad19b6892ee",
"uosAppID": "7bba5ff1-b4a3-498c-9c0b-24cad73cff54",
"sourcePersonaID": "10000000048",
"targetPersonaID": "10000000054",
"type": "外挂作弊",
"content": "玩家开透视外挂",
"status": "Reviewing",
"properties": {},
"createdAt": "2023-08-16T07:45:17.423Z",
"modifiedAt": "2023-08-16T07:45:17.423Z",
"targetDisplayName": "玩家2",
"targetIconUrl": ""
}
}default An unexpected error response.
响应结构: rpcStatus
POST /v1/sdk/reports/{reportID}/revoke
摘要: 撤回举报
路径参数
| 参数名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| reportID | string | 是 | 举报ID |
请求体参数
| 参数名 | 必填 | 说明 |
|---|---|---|
| body | 是 | - |
请求体结构: PassportSDKRevokeReportBody
响应
200 A successful response.
响应结构: passportRevokeReportResponse
default An unexpected error response.
响应结构: rpcStatus
POST /v1/sdk/reports/search
摘要: 获取玩家举报列表
请求体参数
| 参数名 | 必填 | 说明 |
|---|---|---|
| body | 是 | 获取玩家举报列表请求 |
请求体结构: passportSearchPlayerReportsRequest
请求体示例
{
"start": 0,
"count": 20,
"status": "Reviewing"
}响应
200 A successful response.
响应结构: passportSearchPlayerReportsResponse
响应示例
{
"start": 0,
"count": 20,
"total": 1,
"reports": [
{
"reportID": "68526fdf16df8ad19b6892ee",
"uosAppID": "7bba5ff1-b4a3-498c-9c0b-24cad73cff54",
"sourcePersonaID": "10000000048",
"targetPersonaID": "10000000054",
"type": "外挂作弊",
"content": "玩家开透视外挂",
"status": "Reviewing",
"properties": {},
"createdAt": "2023-08-16T07:45:17.423Z",
"modifiedAt": "2023-08-16T07:45:17.423Z",
"targetDisplayName": "玩家2",
"targetIconUrl": ""
}
]
}default An unexpected error response.
响应结构: rpcStatus
数据模型定义
PassportSDKRevokeReportBody
passportReportPlayerRequest
标题: ReportPlayerRequest
举报玩家请求
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| targetPersonaId | string | 否 | 被举报玩家的角色ID | |
| reportType | string | 否 | 举报类型,默认为Default | |
| content | string | 否 | 举报内容 | |
| properties | object | 否 | 自定义属性 | |
| images | array<string> | 否 | 举报截图,最多5张,单张大小不超过2MB |
模型示例
{
"targetPersonaId": "10000000054",
"reportType": "外挂作弊",
"content": "玩家开透视外挂"
}passportReportPlayerResponse
标题: ReportPlayerResponse
举报玩家响应
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| report | passportReportWithTargetPersona | 否 | - |
模型示例
{
"report": {
"reportID": "68526fdf16df8ad19b6892ee",
"uosAppID": "7bba5ff1-b4a3-498c-9c0b-24cad73cff54",
"sourcePersonaID": "10000000048",
"targetPersonaID": "10000000054",
"type": "外挂作弊",
"content": "玩家开透视外挂",
"status": "Reviewing",
"properties": {},
"createdAt": "2023-08-16T07:45:17.423Z",
"modifiedAt": "2023-08-16T07:45:17.423Z",
"targetDisplayName": "玩家2",
"targetIconUrl": ""
}
}passportReportStatuse
标题: - Reviewing: 审核中
- Cleared: 无违规
- Actioned: 已处罚
- Revoked: 已撤回
枚举值
| 枚举值 | 描述 |
|---|---|
Reviewing | - |
Cleared | - |
Actioned | - |
Revoked | - |
passportReportWithTargetPersona
标题: 举报信息,包含被举报人的角色信息
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| 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" | |
| type | string | 否 | @gotags: bson:"type" | |
| content | string | 否 | @gotags: bson:"content" | |
| status | passportReportStatuse | 否 | @gotags: bson:"status" | |
| imageUrls | array<string> | 否 | @gotags: bson:"image_urls" | |
| properties | object | 否 | @gotags: bson:"properties" custom data | |
| createdAt | string | date-time | 否 | @gotags: bson:"created_at" create time stamp |
| modifiedAt | string | date-time | 否 | @gotags: bson:"modified_at" update time stamp |
| targetDisplayName | string | 否 | @gotags: bson:"target_display_name" | |
| targetIconURL | string | 否 | @gotags: bson:"target_icon_url" |
passportRevokeReportResponse
passportSearchPlayerReportsRequest
标题: SearchPlayerReportsRequest
获取玩家举报列表请求
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| start | integer | int64 | 否 | 起始点 |
| count | integer | int64 | 否 | 数量 |
| type | string | 否 | 举报类型 | |
| status | passportReportStatuse | 否 | 举报状态 | |
| targetPersonaID | string | 否 | 被举报人ID |
模型示例
{
"start": 0,
"count": 20,
"status": "Reviewing"
}passportSearchPlayerReportsResponse
标题: SearchPlayerReportsRequest
获取玩家举报列表响应
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| start | integer | int64 | 否 | 本次搜索的起始位置 |
| count | integer | int64 | 否 | 本次搜索的目标数量 |
| total | integer | int64 | 否 | 总数 |
| reports | array<passportReportWithTargetPersona> | 否 | 举报信息列表 |
模型示例
{
"start": 0,
"count": 20,
"total": 1,
"reports": [
{
"reportID": "68526fdf16df8ad19b6892ee",
"uosAppID": "7bba5ff1-b4a3-498c-9c0b-24cad73cff54",
"sourcePersonaID": "10000000048",
"targetPersonaID": "10000000054",
"type": "外挂作弊",
"content": "玩家开透视外挂",
"status": "Reviewing",
"properties": {},
"createdAt": "2023-08-16T07:45:17.423Z",
"modifiedAt": "2023-08-16T07:45:17.423Z",
"targetDisplayName": "玩家2",
"targetIconUrl": ""
}
]
}protobufAny
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| @type | string | 否 | - |
rpcStatus
| 属性名 | 类型 | 格式 | 必填 | 说明 |
|---|---|---|---|---|
| code | integer | int32 | 否 | - |
| message | string | 否 | - | |
| details | array<protobufAny> | 否 | - |