feat: 初始化 kenaito-notebook 桌面记事本项目

This commit is contained in:
2026-06-13 21:08:00 +08:00
commit 5fafcd28e3
55 changed files with 9722 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
package models
import "time"
type Note struct {
ID int64 `json:"id"`
ParentID int64 `json:"parentId"`
Title string `json:"title"`
Content string `json:"content"`
SortOrder int `json:"sortOrder"`
IsFolder bool `json:"isFolder"`
Tag string `json:"tag"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
Children []*Note `json:"children,omitempty"`
}
type NoteTree struct {
Note
Children []*NoteTree `json:"children"`
}