license_api/auth/
models.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Debug)]
4pub struct LoginRequest {
5 pub username: String,
6 pub password: String,
7}
8
9#[derive(Deserialize, Debug)]
10pub struct MeResponse {
11 pub telegram_id: String,
12 pub username: String,
13 pub is_banned: bool,
14 pub hwid: String,
15}
16
17#[derive(Deserialize, Debug)]
18pub struct LoginResponse {
19 pub access_token: String,
20 pub token_type: String,
21}
22
23#[derive(Deserialize, Debug)]
24pub struct ErrorResponse {
25 pub detail: String,
26}