ncm_api_rs/api/msg_recentcontact.rs
1use super::Query;
2use crate::error::Result;
3/// 最近联系
4/// 对应 Node.js module/msg_recentcontact.js
5use crate::request::{ApiClient, ApiResponse, CryptoType};
6use serde_json::json;
7
8impl ApiClient {
9 /// 最近联系
10 /// 对应 /msg/recentcontact
11 pub async fn msg_recentcontact(&self, query: &Query) -> Result<ApiResponse> {
12 let data = json!({});
13 self.request(
14 "/api/msg/recentcontact/get",
15 data,
16 query.to_option(CryptoType::Weapi),
17 )
18 .await
19 }
20}