mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: implement memo relation server (#1618)
This commit is contained in:
11
api/memo.go
11
api/memo.go
@ -42,8 +42,9 @@ type Memo struct {
|
||||
Pinned bool `json:"pinned"`
|
||||
|
||||
// Related fields
|
||||
CreatorName string `json:"creatorName"`
|
||||
ResourceList []*Resource `json:"resourceList"`
|
||||
CreatorName string `json:"creatorName"`
|
||||
ResourceList []*Resource `json:"resourceList"`
|
||||
RelationList []*MemoRelation `json:"relationList"`
|
||||
}
|
||||
|
||||
type MemoCreate struct {
|
||||
@ -56,7 +57,8 @@ type MemoCreate struct {
|
||||
Content string `json:"content"`
|
||||
|
||||
// Related fields
|
||||
ResourceIDList []int `json:"resourceIdList"`
|
||||
ResourceIDList []int `json:"resourceIdList"`
|
||||
MemoRelationList []*MemoRelationUpsert `json:"memoRelationList"`
|
||||
}
|
||||
|
||||
type MemoPatch struct {
|
||||
@ -72,7 +74,8 @@ type MemoPatch struct {
|
||||
Visibility *Visibility `json:"visibility"`
|
||||
|
||||
// Related fields
|
||||
ResourceIDList []int `json:"resourceIdList"`
|
||||
ResourceIDList []int `json:"resourceIdList"`
|
||||
MemoRelationList []*MemoRelationUpsert `json:"memoRelationList"`
|
||||
}
|
||||
|
||||
type MemoFind struct {
|
||||
|
Reference in New Issue
Block a user