feat(group-album): expose cover and upload metadata

Decode the verified album cover response field and expose normalized cover details and last-upload timestamps through both album list actions. Preserve the legacy numeric timestamp shape, retain string timestamps for the native response, return null when no cover exists, and avoid additional network requests.

Document the new output contracts in the OneBot and MCP catalogs. Add independent wire fixtures and action-level regression tests for the protocol mapping and public response shapes.

Refs #257
This commit is contained in:
DrSmoothl committed 2026-07-20 23:37:41 +08:00
1 parent 4aa2cd1693
commit feb7fcac0e
9 files changed
+841 -5

No files matched your search

+257 -1
View File
@@ -3435,6 +3435,132 @@
"type": "integer",
"description": "相册创建时间(unix 秒)"
},
"last_upload_time": {
"type": "integer",
"description": "最后上传时间(unix 秒)"
},
"cover": {
"type": [
"object",
"null"
],
"description": "相册封面;没有封面时为 null",
"properties": {
"type": {
"type": "integer",
"description": "封面媒体类型"
},
"image": {
"type": [
"object",
"null"
],
"description": "封面图片信息",
"properties": {
"name": {
"type": "string",
"description": "图片名称"
},
"sloc": {
"type": "string",
"description": "图片短定位标识"
},
"lloc": {
"type": "string",
"description": "图片长定位标识"
},
"photoUrls": {
"type": "array",
"description": "不同规格的封面地址",
"items": {
"type": "object",
"properties": {
"spec": {
"type": "integer",
"description": "图片规格"
},
"url": {
"type": [
"object",
"null"
],
"properties": {
"url": {
"type": "string",
"description": "封面地址"
},
"width": {
"type": "integer",
"description": "封面宽度"
},
"height": {
"type": "integer",
"description": "封面高度"
}
},
"required": [
"url",
"width",
"height"
]
}
},
"required": [
"spec",
"url"
]
}
},
"defaultUrl": {
"type": [
"object",
"null"
],
"properties": {
"url": {
"type": "string",
"description": "封面地址"
},
"width": {
"type": "integer",
"description": "封面宽度"
},
"height": {
"type": "integer",
"description": "封面高度"
}
},
"required": [
"url",
"width",
"height"
]
},
"isGif": {
"type": "boolean",
"description": "是否为动图"
},
"hasRaw": {
"type": "boolean",
"description": "是否有原图"
}
},
"required": [
"name",
"sloc",
"lloc",
"photoUrls",
"defaultUrl",
"isGif",
"hasRaw"
]
}
},
"required": [
"type",
"image"
]
},
"createuin": {
"type": "string",
"description": "相册创建者 QQ 号"
@@ -3449,6 +3575,8 @@
"name",
"picNum",
"createTime",
"last_upload_time",
"cover",
"createuin",
"createnickname"
]
@@ -5514,10 +5642,136 @@
"type": "string",
"description": "相册创建时间(unix 秒)"
},
"last_upload_time": {
"type": "string",
"description": "最后上传时间(unix 秒)"
},
"upload_number": {
"type": "string",
"description": "相册内媒体数量"
},
"cover": {
"type": [
"object",
"null"
],
"description": "相册封面;没有封面时为 null",
"properties": {
"type": {
"type": "integer",
"description": "封面媒体类型"
},
"image": {
"type": [
"object",
"null"
],
"description": "封面图片信息",
"properties": {
"name": {
"type": "string",
"description": "图片名称"
},
"sloc": {
"type": "string",
"description": "图片短定位标识"
},
"lloc": {
"type": "string",
"description": "图片长定位标识"
},
"photoUrls": {
"type": "array",
"description": "不同规格的封面地址",
"items": {
"type": "object",
"properties": {
"spec": {
"type": "integer",
"description": "图片规格"
},
"url": {
"type": [
"object",
"null"
],
"properties": {
"url": {
"type": "string",
"description": "封面地址"
},
"width": {
"type": "integer",
"description": "封面宽度"
},
"height": {
"type": "integer",
"description": "封面高度"
}
},
"required": [
"url",
"width",
"height"
]
}
},
"required": [
"spec",
"url"
]
}
},
"defaultUrl": {
"type": [
"object",
"null"
],
"properties": {
"url": {
"type": "string",
"description": "封面地址"
},
"width": {
"type": "integer",
"description": "封面宽度"
},
"height": {
"type": "integer",
"description": "封面高度"
}
},
"required": [
"url",
"width",
"height"
]
},
"isGif": {
"type": "boolean",
"description": "是否为动图"
},
"hasRaw": {
"type": "boolean",
"description": "是否有原图"
}
},
"required": [
"name",
"sloc",
"lloc",
"photoUrls",
"defaultUrl",
"isGif",
"hasRaw"
]
}
},
"required": [
"type",
"image"
]
},
"creator": {
"type": "object",
"description": "相册创建者信息",
@@ -5541,7 +5795,9 @@
"album_id",
"name",
"create_time",
"upload_number"
"last_upload_time",
"upload_number",
"cover"
]
}
},