memos/api/memo_organizer.go

27 lines
352 B
Go
Raw Normal View History

2022-05-19 18:32:04 +08:00
package api
type MemoOrganizer struct {
ID int
// Domain specific fields
MemoID int
UserID int
Pinned bool
}
2022-12-28 20:22:52 +08:00
type MemoOrganizerUpsert struct {
MemoID int `json:"-"`
UserID int `json:"-"`
Pinned bool `json:"pinned"`
2022-05-19 18:32:04 +08:00
}
2022-12-28 20:22:52 +08:00
type MemoOrganizerFind struct {
2022-05-19 18:32:04 +08:00
MemoID int
UserID int
}
2022-11-06 12:21:58 +08:00
type MemoOrganizerDelete struct {
MemoID *int
UserID *int
}