update: service, handlers, and db separation
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/dryrun Pipeline was successful
ci/woodpecker/push/publish-tag Pipeline was successful
ci/woodpecker/push/publish-latest Pipeline was successful

This commit is contained in:
2024-06-14 17:49:56 -04:00
parent 44feca12d2
commit 3d29dadaf3
14 changed files with 364 additions and 29 deletions

19
db/db.go Normal file
View File

@@ -0,0 +1,19 @@
package db
import "github.com/google/uuid"
type Todo struct {
Id uuid.UUID
Name string
Done bool
}
type TodosStore struct {
Todos []Todo
}
func NewTodoStore() TodosStore {
return TodosStore{
Todos: []Todo{},
}
}