feat: GET /lists now returns total items and completed items of that list

This commit is contained in:
2026-08-21 21:10:17 +02:00
parent d2f0f1a4cf
commit be588dd405
2 changed files with 8 additions and 6 deletions
+6 -4
View File
@@ -18,10 +18,12 @@ var (
)
type List struct {
ID string `json:"id"`
Name string `json:"name"`
CreatedAt time.Time `json:"created_at"`
ModifiedAt time.Time `json:"modified_at"`
ID string `json:"id"`
Name string `json:"name"`
CreatedAt time.Time `json:"created_at"`
ModifiedAt time.Time `json:"modified_at"`
TotalItems int `json:"total_items"`
CompletedItems int `json:"completed_items"`
}
type ListItem struct {