memos/api/shortcut.go

54 lines
926 B
Go
Raw Normal View History

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