Pavel Sinitsin
cea1f96bb4
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.
16 lines
780 B
Go
16 lines
780 B
Go
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
|
||
}
|