feat: prepare for 1.53 preview/login
This commit is contained in:
@@ -15,9 +15,10 @@ use spdlog::info;
|
||||
pub async fn login_action<R>(
|
||||
client: &AsyncClient,
|
||||
user_id: u32,
|
||||
token: Option<String>,
|
||||
action: impl AsyncFnOnce(UserLoginApiResp) -> R,
|
||||
) -> Result<R, ApiError> {
|
||||
let login = UserLoginApi::new(user_id, true);
|
||||
let login = UserLoginApi::new(user_id, true, token);
|
||||
let date_time = login.date_time;
|
||||
|
||||
let login_resp: UserLoginApiResp =
|
||||
|
||||
Reference in New Issue
Block a user