chore: add parent field to memo

This commit is contained in:
Steven
2023-10-01 16:27:40 +08:00
parent 922de07751
commit be046cae8e
4 changed files with 48 additions and 18 deletions

View File

@@ -42,6 +42,9 @@ type Memo struct {
Visibility Visibility
// Composed fields
// For those comment memos, the parent ID is the memo ID of the memo being commented.
// If the parent ID is nil, then this memo is not a comment.
ParentID *int32
Pinned bool
ResourceIDList []int32
RelationList []*MemoRelation