This commit is contained in:
2026-04-29 20:56:59 +08:00
parent fb6f455530
commit 730f485f48
200 changed files with 9881 additions and 2221 deletions

View File

@@ -443,6 +443,8 @@ pub struct CustomWorldLibraryEntryResponse {
pub remix_count: u32,
#[serde(default)]
pub like_count: u32,
#[serde(default)]
pub recent_play_count_7d: u32,
}
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
@@ -469,6 +471,8 @@ pub struct CustomWorldGalleryCardResponse {
pub remix_count: u32,
#[serde(default)]
pub like_count: u32,
#[serde(default)]
pub recent_play_count_7d: u32,
}
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
@@ -955,14 +959,14 @@ mod tests {
},
point_products: vec![ProfileRechargeProductResponse {
product_id: "points_60".to_string(),
title: "60叙世".to_string(),
title: "60陶泥".to_string(),
price_cents: 600,
kind: "points".to_string(),
points_amount: 60,
bonus_points: 60,
duration_days: 0,
badge_label: "首充双倍".to_string(),
description: "首充送60叙世".to_string(),
description: "首充送60陶泥".to_string(),
tier: "normal".to_string(),
}],
membership_products: vec![],
@@ -978,11 +982,11 @@ mod tests {
json!("2026-05-25T10:00:00Z")
);
assert_eq!(payload["pointProducts"][0]["productId"], json!("points_60"));
assert_eq!(payload["pointProducts"][0]["title"], json!("60叙世"));
assert_eq!(payload["pointProducts"][0]["title"], json!("60陶泥"));
assert_eq!(payload["pointProducts"][0]["priceCents"], json!(600));
assert_eq!(
payload["pointProducts"][0]["description"],
json!("首充送60叙世")
json!("首充送60陶泥")
);
assert_eq!(payload["hasPointsRecharged"], json!(false));
}