commit e4ce6f8a620fa9a94abf937de6b20c3b24fbf5e7 Author: Micoya Date: Tue Dec 10 01:19:11 2024 +0800 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..10e6ce9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.idea +/.vscode diff --git a/app/models/book.go b/app/models/book.go new file mode 100644 index 0000000..beb72f9 --- /dev/null +++ b/app/models/book.go @@ -0,0 +1,12 @@ +package models + +type Book struct { + Id int64 + TokenId string + Title string + Description string + IconUrl string + NamespaceId int64 + AccessPolicy int + CreatedAt int64 +} diff --git a/app/models/book_node.go b/app/models/book_node.go new file mode 100644 index 0000000..3088d5f --- /dev/null +++ b/app/models/book_node.go @@ -0,0 +1,15 @@ +package models + +type BookNode struct { + Id int64 + TokenId string + ParentId int64 + BookId int64 + Title string + Type int + Markdown BookNodeMarkdown +} + +type BookNodeMarkdown struct { + Text string +} diff --git a/app/models/namesapce.go b/app/models/namesapce.go new file mode 100644 index 0000000..101e651 --- /dev/null +++ b/app/models/namesapce.go @@ -0,0 +1,5 @@ +package models + +type Namespace struct { + Id int64 +} diff --git a/app/models/user.go b/app/models/user.go new file mode 100644 index 0000000..49cb196 --- /dev/null +++ b/app/models/user.go @@ -0,0 +1,11 @@ +package models + +type User struct { + Id int64 + Username string + Password string + Nickname string + Status int + CreatedAt int64 + UpdatedAt int64 +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..5bd60c0 --- /dev/null +++ b/go.mod @@ -0,0 +1 @@ +module docit