Add tags page.

This commit is contained in:
2025-05-30 17:39:57 +08:00
parent d4bfb52ef9
commit 4f99bff2f5
15 changed files with 262 additions and 29 deletions

View File

@@ -33,3 +33,15 @@ func (t *Tag) ToView() *TagView {
Aliases: aliases,
}
}
type TagViewWithCount struct {
TagView
ResourceCount int `json:"resources_count"` // Count of resources associated with the tag
}
func (t *TagView) WithCount(count int) *TagViewWithCount {
return &TagViewWithCount{
TagView: *t,
ResourceCount: count,
}
}