feat: add AI retouch task center

This commit is contained in:
2026-08-14 15:06:57 +08:00
parent 0f3b26991e
commit 30bfe0313f
26 changed files with 3679 additions and 50 deletions
+4 -4
View File
@@ -19,8 +19,8 @@ final class MessageCenterAPITests: XCTestCase {
"id": 21,
"receiver_id": 9,
"receiver_type": "staff",
"type": 2,
"type_name": "退款成功通知",
"type": 14,
"type_name": "AI修图任务通知",
"title": "unused",
"content": "退款已完成",
"push_at": "2026-07-09 10:00:00",
@@ -28,7 +28,7 @@ final class MessageCenterAPITests: XCTestCase {
"read_at": "",
"push_channel": 1,
"push_channel_name": "站内信",
"extra_data": {"order_no":"NO123","amount":12.5},
"extra_data": {"ai_retouch_batch_id":"59","user_equity_travel_id":17},
"created_at": "2026-07-09 10:00:00",
"updated_at": "2026-07-09 10:01:00"
}]
@@ -50,7 +50,7 @@ final class MessageCenterAPITests: XCTestCase {
XCTAssertEqual(response.lastId, 18)
XCTAssertEqual(response.items.first?.id, 21)
XCTAssertEqual(response.items.first?.isRead, false)
XCTAssertEqual(response.items.first?.extraData?["order_no"], .string("NO123"))
XCTAssertEqual(response.items.first?.aiRetouchBatchId, 59)
}
func testUnreadCountReadAllReadAndDeleteUseExpectedContracts() async throws {