36 lines
795 B
Go
Executable File
36 lines
795 B
Go
Executable File
package sub_category
|
|
|
|
import "time"
|
|
|
|
type DataDTO struct {
|
|
SubCategories []SubCategoryDTO `json:"subCategory"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type Language struct {
|
|
Tm string `json:"tm"`
|
|
Ru string `json:"ru"`
|
|
En string `json:"en"`
|
|
}
|
|
|
|
type SubCategoryDTO struct {
|
|
Id int `json:"Id"`
|
|
CatId int `json:"categoryId"`
|
|
Name Language `json:"name"`
|
|
Content Language `json:"content"`
|
|
Status bool `json:"status"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|
|
|
|
type AddSubCategoryDTO struct {
|
|
CatId int `json:"categoryId"`
|
|
Name Language `json:"name"`
|
|
Content Language `json:"content"`
|
|
}
|
|
|
|
type UpdateSubCategoryDTO struct {
|
|
CatId int `json:"categoryId"`
|
|
Name Language `json:"name"`
|
|
Content Language `json:"content"`
|
|
}
|