initial commit

master
Micoya 2024-12-10 01:19:11 +08:00
commit e4ce6f8a62
6 changed files with 46 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/.idea
/.vscode

12
app/models/book.go Normal file
View File

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

15
app/models/book_node.go Normal file
View File

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

5
app/models/namesapce.go Normal file
View File

@ -0,0 +1,5 @@
package models
type Namespace struct {
Id int64
}

11
app/models/user.go Normal file
View File

@ -0,0 +1,11 @@
package models
type User struct {
Id int64
Username string
Password string
Nickname string
Status int
CreatedAt int64
UpdatedAt int64
}

1
go.mod Normal file
View File

@ -0,0 +1 @@
module docit