Skip to main content

ncm_api_rs/api/
song_lyrics_mark_del.rs

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