refactor: LOW cleanups — dedup secure_flag, remove vestigial social_query,
drop PersistedImportSession, rename LoginQuery→LoginCommand, own DeleteAccountDeps, PersonId via uuid_id! macro, rename SortDirection→ ReviewSortBy, TUI fs::read→Command, generic PaginatedResponse<T>
This commit is contained in:
@@ -15,16 +15,6 @@ pub struct ImportSession {
|
||||
pub expires_at: NaiveDateTime,
|
||||
}
|
||||
|
||||
pub struct PersistedImportSession {
|
||||
pub id: ImportSessionId,
|
||||
pub user_id: UserId,
|
||||
pub parsed_file: Option<ParsedFile>,
|
||||
pub field_mappings: Option<Vec<FieldMapping>>,
|
||||
pub row_results: Option<Vec<AnnotatedRow>>,
|
||||
pub created_at: NaiveDateTime,
|
||||
pub expires_at: NaiveDateTime,
|
||||
}
|
||||
|
||||
impl ImportSession {
|
||||
pub fn new(user_id: UserId) -> Self {
|
||||
let created_at = chrono::Utc::now().naive_utc();
|
||||
@@ -39,16 +29,4 @@ impl ImportSession {
|
||||
expires_at,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_persistence(p: PersistedImportSession) -> Self {
|
||||
Self {
|
||||
id: p.id,
|
||||
user_id: p.user_id,
|
||||
parsed_file: p.parsed_file,
|
||||
field_mappings: p.field_mappings,
|
||||
row_results: p.row_results,
|
||||
created_at: p.created_at,
|
||||
expires_at: p.expires_at,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user