refactor(documents): rename document tree model
This commit is contained in:
@@ -145,7 +145,7 @@ func (h *Handler) create(c *gin.Context, folder bool) {
|
||||
}
|
||||
input.SourceInboxItemID = &inbox.ID
|
||||
}
|
||||
var document *models.SaDocument
|
||||
var document *models.SaDocumentTree
|
||||
var err error
|
||||
if folder {
|
||||
document, err = h.service.CreateFolder(userID, projectID, input)
|
||||
@@ -496,7 +496,7 @@ func requestScope(c *gin.Context) (uint, string, bool) {
|
||||
return userID, projectID, ok
|
||||
}
|
||||
|
||||
func documentDTO(document models.SaDocument, markdown *string, hasBlob bool) DocumentDTO {
|
||||
func documentDTO(document models.SaDocumentTree, markdown *string, hasBlob bool) DocumentDTO {
|
||||
return DocumentDTO{
|
||||
ID: document.Identity, ProjectID: document.ProjectIdentity, ParentID: document.ParentIdentity,
|
||||
Kind: document.Kind, Name: document.Name, Extension: document.Extension, MimeType: document.MimeType,
|
||||
|
||||
Reference in New Issue
Block a user