feat: implement memo relation server (#1618)

This commit is contained in:
boojack
2023-05-01 16:09:41 +08:00
committed by GitHub
parent 6e6aae6649
commit b6564bcd77
9 changed files with 276 additions and 8 deletions

19
api/memo_relation.go Normal file
View 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
}