2025-09-07 22:03:28 +08:00
|
|
|
|
{
|
|
|
|
|
"swagger": "2.0",
|
|
|
|
|
"info": {
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "mail.proto",
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"version": "version not set"
|
|
|
|
|
},
|
|
|
|
|
"tags": [
|
|
|
|
|
{
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"name": "Mail"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"name": "Xiaomi"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"name": "Sms"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"paths": {},
|
|
|
|
|
"definitions": {
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"notifyBaseItem": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"payload": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "消息的内容。(注意:需要对payload字符串做urlencode处理)"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"restrictedPackageName": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "App的包名。备注:中间用逗号分割。"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "通知栏展示的通知的标题,不允许全是空白字符,长度小于50, 一个中英文字符均计算为1(通知栏消息必填)。"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"description": {
|
2025-09-12 20:06:29 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "通知栏展示的通知的描述,不允许全是空白字符,长度小于128,一个中英文字符均计算为1(通知栏消息必填)。"
|
2025-09-12 20:06:29 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"timeToLive": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"format": "int64",
|
|
|
|
|
"title": "可选项。如果用户离线,设置消息在服务器保存的时间,单位:ms。服务器默认最长保留两周。"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"timeToSend": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"format": "int64",
|
|
|
|
|
"title": "可选项。定时发送消息。用自1970年1月1日以来00:00:00.0 UTC时间表示(以毫秒为单位的时间)。注:仅支持七天内的定时消息。"
|
2025-09-12 20:06:29 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"soundUri": {
|
2025-09-12 20:06:29 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "可选项,自定义通知栏消息铃声url"
|
2025-09-12 20:06:29 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"notifyForeground": {
|
2025-09-12 20:06:29 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "可选项 '1'弹出通知栏消息(默认);'0'不会弹出通知栏消息"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"notifyEffect": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "可选项,预定义通知栏消息的点击行为;\"1\":打开app的Launcher Activity。\"2\":打开app的任一Activity(需要extra.intent_uri)。\"3\":打开网页(需要传入extra.web_uri)"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"intentUri": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "可选项,打开当前app的任一组件。"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"webUri": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "可选项,打开某一个网页。"
|
2025-09-12 20:06:29 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"jobkey": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"title": "可选项,使用推送批次(JobKey)功能聚合消息。由数字([0-9]),大小写字母([a-zA-Z]),下划线(_)和中划线(-)组成,长度不大于20个字符"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"appVersion": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"title": "可以接收消息的app版本号,用逗号分割。目前支持MiPush_SDK_Client_2_2_12_sdk.jar(及以后)的版本。"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"appVersionNotIn": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "无法接收消息的app版本号,用逗号分割。"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"connpt": {
|
2025-09-12 20:06:29 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "可选项,指定在特定的网络环境下才能接收到消息。目前仅支持指定\"wifi\"。"
|
2025-09-12 20:06:29 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"onlySendOnce": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"title": "可选项,extra.only_send_once的值设置为'1',表示该消息仅在设备在线时发送一次,不缓存离线消息进行多次下发"
|
2025-09-12 20:06:29 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"notifyId": {
|
2025-09-12 20:06:29 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"format": "int32",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "可选项。默认情况下,通知栏只显示一条推送消息。如果通知栏要显示多条推送消息,需要针对不同的消息设置不同的notify_id(相同notify_id的通知栏消息会覆盖之前的),且要求notify_id为取值在0~2147483647的整数。"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
}
|
2025-09-13 15:59:10 +08:00
|
|
|
|
}
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"notifyPassResponse": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"pass": {
|
|
|
|
|
"type": "boolean"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"notifySendMailResponse": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"requestId": {
|
|
|
|
|
"type": "string"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"notifySmsSendResponse": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"bizId": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"title": "string request_id = 1;"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"notifyStatusReply": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"status": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"format": "int64",
|
|
|
|
|
"title": "状态码"
|
|
|
|
|
},
|
|
|
|
|
"identity": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"title": "标识码"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
2025-09-07 22:03:28 +08:00
|
|
|
|
"type": "string",
|
2025-09-13 15:59:10 +08:00
|
|
|
|
"title": "状态说明"
|
2025-09-07 22:03:28 +08:00
|
|
|
|
},
|
|
|
|
|
"timeseq": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"format": "int64",
|
|
|
|
|
"title": "响应时间序列"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"protobufAny": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"@type": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"additionalProperties": {}
|
|
|
|
|
},
|
|
|
|
|
"rpcStatus": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"format": "int32"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"details": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"$ref": "#/definitions/protobufAny"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|