Skip to main content

ncm_api_rs/api/
song_lyrics_mark_user_page.rs

1use super::Query;
2use crate::error::Result;
3/// 歌词摘录 - 我的歌词本
4/// 对应 Node.js module/song_lyrics_mark_user_page.js
5use crate::request::{ApiClient, ApiResponse, CryptoType};
6use serde_json::json;
7
8impl ApiClient {
9    /// 歌词摘录 - 我的歌词本
10    /// 对应 /song/lyrics/mark/user/page
11    pub async fn song_lyrics_mark_user_page(&self, query: &Query) -> Result<ApiResponse> {
12        let data = json!({
13            "limit": query.get_or("limit", "10").parse::<i64>().unwrap_or(10),
14            "offset": query.get_or("offset", "0").parse::<i64>().unwrap_or(0),
15        });
16        self.request(
17            "/api/song/play/lyrics/mark/user/page",
18            data,
19            query.to_option(CryptoType::default()),
20        )
21        .await
22    }
23}