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:
19
api/memo_relation.go
Normal file
19
api/memo_relation.go
Normal file
@ -0,0 +1,19 @@
|
||||
package api
|
||||
|
||||
type MemoRelationType string
|
||||
|
||||
const (
|
||||
MemoRelationReference MemoRelationType = "REFERENCE"
|
||||
MemoRelationAdditional MemoRelationType = "ADDITIONAL"
|
||||
)
|
||||
|
||||
type MemoRelation struct {
|
||||
MemoID int
|
||||
RelatedMemoID int
|
||||
Type MemoRelationType
|
||||
}
|
||||
|
||||
type MemoRelationUpsert struct {
|
||||
RelatedMemoID int
|
||||
Type MemoRelationType
|
||||
}
|
Reference in New Issue
Block a user