kleinTodo/common/types.go
Darius klein 69785d74a8
Some checks failed
build and deploy kleinTodo / build (push) Failing after 11s
WIP client implementation
2025-08-23 19:14:16 +02:00

33 lines
772 B
Go

package common
type Credentials struct {
Username string `json:"username" toml:"username"`
Password string `json:"password" toml:"password"`
}
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"`
}