mirror of
https://github.com/usememos/memos.git
synced 2024-12-21 02:01:55 +03:00
20 lines
480 B
Go
20 lines
480 B
Go
package api
|
|
|
|
type MemoRelationType string
|
|
|
|
const (
|
|
MemoRelationReference MemoRelationType = "REFERENCE"
|
|
MemoRelationAdditional MemoRelationType = "ADDITIONAL"
|
|
)
|
|
|
|
type MemoRelation struct {
|
|
MemoID int `json:"memoId"`
|
|
RelatedMemoID int `json:"relatedMemoId"`
|
|
Type MemoRelationType `json:"type"`
|
|
}
|
|
|
|
type MemoRelationUpsert struct {
|
|
RelatedMemoID int `json:"relatedMemoId"`
|
|
Type MemoRelationType `json:"type"`
|
|
}
|