2025-07-26 23:31:00 +02:00
|
|
|
package common
|
|
|
|
|
|
|
|
|
|
type Credentials struct {
|
2025-08-23 19:14:16 +02:00
|
|
|
Username string `json:"username" toml:"username"`
|
|
|
|
|
Password string `json:"password" toml:"password"`
|
2025-07-26 23:31:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Todo struct {
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
Status string `json:"status"`
|
|
|
|
|
Owner string `json:"owner"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type StoreTodoRequest struct {
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
Status string `json:"status"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TodoList struct {
|
|
|
|
|
Todos []Todo `json:"todos"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MisMatchingTodo struct {
|
|
|
|
|
ServerTodo Todo `json:"server_todo"`
|
|
|
|
|
LocalTodo Todo `json:"local_todo"`
|
|
|
|
|
}
|
|
|
|
|
type SyncResponse struct {
|
|
|
|
|
SyncedTodos []Todo `json:"synced_todos"`
|
|
|
|
|
MisMatchingTodos []MisMatchingTodo `json:"mismatching_todos"`
|
|
|
|
|
}
|