Replace document_id with relative path
This commit is contained in:
parent
476c0ed672
commit
fe7ff5349d
11 changed files with 83 additions and 270 deletions
|
|
@ -4,20 +4,11 @@ use serde::{self, Deserialize};
|
|||
|
||||
use crate::database::models::DocumentVersionId;
|
||||
|
||||
#[derive(Debug, Deserialize, JsonSchema)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct CreateDocumentVersion {
|
||||
pub created_date: DateTime<Utc>,
|
||||
pub relative_path: String,
|
||||
pub content_base64: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, JsonSchema)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct UpdateDocumentVersion {
|
||||
pub parent_version_id: DocumentVersionId,
|
||||
pub parent_version_id: Option<DocumentVersionId>,
|
||||
pub created_date: DateTime<Utc>,
|
||||
pub relative_path: String,
|
||||
pub content_base64: String,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue