refactor(documents): rename document tree model

This commit is contained in:
2026-07-24 12:23:18 +08:00
parent 1578c81a89
commit ab8ba3c03f
24 changed files with 77 additions and 77 deletions

View File

@@ -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,