bpiek/model/category.go
Pavel Sinitsin cea1f96bb4
Refactor credential handling and improve parsing logic
Deleted client/credential.go and moved the Credentials struct to the api package for better modularity. Enhanced type safety in api by checking type assertions and added detailed comments in model structs.
2024-09-08 13:50:05 +03:00

16 lines
780 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
type Category struct {
Slug string `json:"slug"` // Слаг категории
Name string `json:"name"` // Название категории
Url string `json:"url"` // Ссылка на скачивание файла с содержимым категории
ApiUrl string `json:"apiUrl"` // Относительный адрес категории
}
type TreeCategories struct {
Slug string `json:"slug"` // Слаг категории
Name string `json:"name"` // Название категории
Url string `json:"url"` // Относительный адрес категории
Children []TreeCategories `json:"children"` // Children nested categories in TreeCategories
}