Added tab functionality and optimized related configurations

This commit is contained in:
2025-10-04 02:27:32 +08:00
parent 2d02bf7f1f
commit 45968cd353
21 changed files with 689 additions and 166 deletions

View File

@@ -177,12 +177,12 @@ func (ds *DocumentService) CreateDocument(title string) (*models.Document, error
}
// Create document with default content
now := time.Now()
now := time.Now().Format("2006-01-02 15:04:05")
doc := &models.Document{
Title: title,
Content: "∞∞∞text-a\n",
CreatedAt: now.String(),
UpdatedAt: now.String(),
CreatedAt: now,
UpdatedAt: now,
IsDeleted: false,
IsLocked: false,
}