Refactor: Remove unused structs, redundant services, and streamline repository models
This commit is contained in:
@@ -18,7 +18,6 @@ fn get_session(session: &State<SessionState>) -> Result<(String, Lang), AppError
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct GetCharacterListData {
|
||||
pub book_id: String,
|
||||
pub enabled: bool,
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
|
||||
@@ -106,19 +106,6 @@ pub struct CharacterAttribute {
|
||||
pub values: Vec<Attribute>,
|
||||
}
|
||||
|
||||
pub struct SyncedCharacter {
|
||||
pub id: String,
|
||||
pub name: String,
|
||||
pub last_update: i64,
|
||||
pub attributes: Vec<SyncedCharacterAttribute>,
|
||||
}
|
||||
|
||||
pub struct SyncedCharacterAttribute {
|
||||
pub id: String,
|
||||
pub name: String,
|
||||
pub last_update: i64,
|
||||
}
|
||||
|
||||
/// Retrieves a list of all characters for a specific book.
|
||||
/// Decrypts character data using the user's encryption key.
|
||||
/// * `conn` - Database connection
|
||||
|
||||
Reference in New Issue
Block a user