39 lines
768 B
Go
39 lines
768 B
Go
package request
|
|
|
|
type CreateListPayload struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type AddUserToListPayload struct {
|
|
ListID string `json:"list_id"`
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type RemoveUserFromListPayload struct {
|
|
ListID string `json:"list_id"`
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type OrderListsPayload struct {
|
|
ListIDs []string `json:"list_ids"`
|
|
}
|
|
|
|
type CreateListItemPayload struct {
|
|
ListID string `json:"list_id"`
|
|
Title string `json:"title"`
|
|
}
|
|
|
|
type UpdateListItemPayload struct {
|
|
ListItemID string `json:"list_item_id"`
|
|
Title string `json:"title"`
|
|
IsCompleted bool `json:"is_completed"`
|
|
}
|
|
|
|
type SetListItemTitlePayload struct {
|
|
Title string `json:"title"`
|
|
}
|
|
|
|
type SetListItemCompletedPayload struct {
|
|
IsCompleted bool `json:"is_completed"`
|
|
}
|