-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jemmy
committed
Jan 20, 2021
1 parent
b16d9bd
commit 6d1cfa8
Showing
10 changed files
with
20 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,17 +15,16 @@ import ( | |
/* | ||
* @CreateTime: 2021/1/12 18:28 | ||
* @Author: Jemmy@[email protected] | ||
* @Description: note is a message in notebook | ||
* @Description: note is a message in notebook, which is managed like a node in a double linked list. | ||
*/ | ||
|
||
// Note means a diary note | ||
// Note means a note in notebook | ||
type Note struct { | ||
ID []byte // 某一天20191214 | ||
PrevID []byte // 上一条ID | ||
NextID []byte // 下一条ID | ||
Content []byte // 日记内容 | ||
IsSecret bool // TODO: 是否加密,如果加密,则需要密码访问 | ||
Timestamp int64 // 时间戳 | ||
ID []byte | ||
PrevID []byte | ||
NextID []byte | ||
Content []byte | ||
Timestamp int64 | ||
} | ||
|
||
// NewNote returns a `Note` object with `content` and `timestamp` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters