fixed
This commit is contained in:
1 parent
4194cef934
commit
363127fe9e
3350 files changed
+1284220
-1
No files matched your search
Executable
+35
@@ -0,0 +1,35 @@
|
||||
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"`
|
||||
}
|
||||
Reference in new issue
Block a user