moved models from remote to models folder

This commit is contained in:
2026-01-21 17:38:45 +08:00
parent 5145ebaf11
commit 7f37a3f8c2
13 changed files with 170 additions and 161 deletions

View File

@@ -1,25 +1,6 @@
use reqwest::{Client, Error};
use serde::{Deserialize, Serialize};
use ts_rs::TS;
use crate::{lock_r, services::auth::with_auth, state::FDOLL};
#[derive(Default, Serialize, Deserialize, Clone, Debug, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export)]
pub struct UserProfile {
pub id: String,
pub keycloak_sub: String,
pub name: String,
pub email: String,
pub username: Option<String>,
pub roles: Vec<String>,
pub created_at: String,
pub updated_at: String,
pub last_login_at: Option<String>,
pub active_doll_id: Option<String>,
}
use crate::{lock_r, services::auth::with_auth, state::FDOLL, models::user::*};
pub struct UserRemote {
pub base_url: String,