memos/api/shortcut.go

54 lines
937 B
Go
Raw Normal View History

2022-02-03 15:32:03 +08:00
package api
type Shortcut struct {
2022-05-03 11:49:10 +08:00
ID int `json:"id"`
2022-02-03 15:32:03 +08:00
2022-05-03 11:49:10 +08:00
// Standard fields
2022-05-19 18:32:04 +08:00
RowStatus RowStatus `json:"rowStatus"`
CreatorID int `json:"creatorId"`
CreatedTs int64 `json:"createdTs"`
UpdatedTs int64 `json:"updatedTs"`
2022-05-03 11:49:10 +08:00
// Domain specific fields
Title string `json:"title"`
Payload string `json:"payload"`
2022-02-03 15:32:03 +08:00
}
type ShortcutCreate struct {
// Standard fields
2022-12-28 20:22:52 +08:00
CreatorID int `json:"-"`
2022-02-03 15:32:03 +08:00
// Domain specific fields
Title string `json:"title"`
Payload string `json:"payload"`
2022-02-03 15:32:03 +08:00
}
type ShortcutPatch struct {
2022-12-23 18:38:24 +08:00
ID int `json:"-"`
2022-02-03 15:32:03 +08:00
2022-05-03 11:49:10 +08:00
// Standard fields
UpdatedTs *int64
2022-05-19 18:32:04 +08:00
RowStatus *RowStatus `json:"rowStatus"`
2022-05-03 11:49:10 +08:00
// Domain specific fields
Title *string `json:"title"`
Payload *string `json:"payload"`
2022-02-03 15:32:03 +08:00
}
type ShortcutFind struct {
2022-05-03 02:05:43 +08:00
ID *int
2022-02-03 15:32:03 +08:00
// Standard fields
2022-05-03 02:05:43 +08:00
CreatorID *int
2022-02-03 15:32:03 +08:00
// Domain specific fields
Title *string `json:"title"`
2022-02-03 15:32:03 +08:00
}
type ShortcutDelete struct {
2022-11-06 12:21:58 +08:00
ID *int
// Standard fields
CreatorID *int
2022-02-03 15:32:03 +08:00
}