Skip to content

Commit

Permalink
Merge pull request #7 from EdwinBetanc0urt/feature/window-process-att…
Browse files Browse the repository at this point in the history
…ributes

feat: External info to Process associated on window.
  • Loading branch information
yamelsenih authored Mar 25, 2024
2 parents 5894211 + 83abe15 commit 648a068
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ pub struct Process {
pub report_view_id: Option<i32>,
pub print_format_id: Option<i32>,
// Linked
pub browse: Option<DictionaryEntity>,
pub browser_id: Option<i32>,
pub browse: Option<DictionaryEntity>,
pub form_id: Option<i32>,
pub form: Option<DictionaryEntity>,
pub workflow_id: Option<i32>,
Expand Down
17 changes: 17 additions & 0 deletions src/models/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,30 @@ impl IndexDocument for Window {
}
}

#[derive(Deserialize, Serialize, Extractible, Debug, Clone)]
pub struct DictionaryEntity {
pub uuid: Option<String>,
pub id: Option<i32>,
pub name: Option<String>,
pub description: Option<String>,
pub help: Option<String>,
}

#[derive(Deserialize, Serialize, Extractible, Debug, Clone)]
pub struct Process {
pub uuid: Option<String>,
pub id: Option<i32>,
pub name: Option<String>,
pub description: Option<String>,
pub help: Option<String>,
pub is_report: Option<bool>,
// Linked
pub browser_id: Option<i32>,
pub browser: Option<DictionaryEntity>,
pub from_id: Option<i32>,
pub form: Option<DictionaryEntity>,
pub workflow_id: Option<i32>,
pub workflow: Option<DictionaryEntity>,
}

#[derive(Deserialize, Serialize, Extractible, Debug, Clone)]
Expand Down

0 comments on commit 648a068

Please sign in to comment.