use axum::Json; use serde_json::json; pub const LOGIN_WITH_PASSWORD_ENDPOINT: &str = "/:product_name/mdk/shield/api/login"; pub const LOGIN_WITH_SESSION_TOKEN_ENDPOINT: &str = "/:product_name/mdk/shield/api/verify"; pub const GRANTER_LOGIN_VERIFICATION_ENDPOINT: &str = "/:product_name/combo/granter/login/v2/login"; pub const RISKY_API_CHECK_ENDPOINT: &str = "/account/risky/api/check"; #[tracing::instrument] pub async fn login_with_password() -> Json { Json(json!({ "data": { "account": { "area_code": "**", "email": "ReversedRooms", "country": "RU", "is_email_verify": "1", "token": "mostsecuretokenever", "uid": "1337" }, "device_grant_required": false, "reactivate_required": false, "realperson_required": false, "safe_mobile_required": false }, "message": "OK", "retcode": 0 })) } #[tracing::instrument] pub async fn login_with_session_token() -> Json { Json(json!({ "data": { "account": { "area_code": "**", "email": "ReversedRooms", "country": "RU", "is_email_verify": "1", "token": "mostsecuretokenever", "uid": "1337" }, "device_grant_required": false, "reactivate_required": false, "realperson_required": false, "safe_mobile_required": false }, "message": "OK", "retcode": 0 })) } #[tracing::instrument] pub async fn granter_login_verification() -> Json { Json(json!({ "data": { "account_type": 1, "combo_id": "1337", "combo_token": "9065ad8507d5a1991cb6fddacac5999b780bbd92", "data": "{\"guest\":false}", "heartbeat": false, "open_id": "1337" }, "message": "OK", "retcode": 0 })) } #[tracing::instrument] pub async fn risky_api_check() -> Json { Json(json!({ "data": { "id": "06611ed14c3131a676b19c0d34c0644b", "action": "ACTION_NONE", "geetest": null }, "message": "OK", "retcode": 0 })) }