feat: import data from json (#53)

This commit is contained in:
STEVEN
2022-05-15 22:21:13 +08:00
committed by GitHub
parent af4b61143f
commit 615cec3066
12 changed files with 90 additions and 61 deletions

View File

@ -16,6 +16,8 @@ type Memo struct {
type MemoCreate struct {
// Standard fields
CreatorID int
// Used to import memos with clearly created ts.
CreatedTs *int64 `json:"createdTs"`
// Domain specific fields
Content string `json:"content"`