feat: adding list_by command

This commit is contained in:
2026-04-03 15:23:58 +02:00
parent 10aabc8c0a
commit 12de0f1b6c
3 changed files with 46 additions and 5 deletions

View File

@@ -1,14 +1,14 @@
package models
type status int
type Status int
const (
todo status = iota
todo Status = iota
doing
done
)
var StatusName = map[status]string{
var StatusName = map[Status]string{
todo: "todo",
doing: "doing",
done: "done",
@@ -17,7 +17,7 @@ var StatusName = map[status]string{
type Task struct {
Id uint
Description string
Status status
Status Status
Created int64
Updated int64
}