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
|
2022-02-04 11:51:48 +03:00
|
|
|
Title string `json:"title"`
|
|
|
|
Payload string `json:"payload"`
|
2022-02-03 10:32:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type ShortcutPatch struct {
|
2022-05-02 21:05:43 +03:00
|
|
|
ID int
|
2022-02-03 10:32:03 +03:00
|
|
|
|
2022-05-03 06:49:10 +03:00
|
|
|
// Standard fields
|
2022-10-26 18:00:09 +03:00
|
|
|
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
|
2022-02-04 11:51:48 +03:00
|
|
|
Title *string `json:"title"`
|
2022-02-03 10:32:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type ShortcutDelete struct {
|
2022-05-02 21:05:43 +03:00
|
|
|
ID int
|
2022-02-03 10:32:03 +03:00
|
|
|
}
|