changed column name
This commit is contained in:
1 parent
3ba5597a51
commit
08be61cbcd
33 files changed
+544
-2129
No files matched your search
@@ -1,23 +1,26 @@
|
||||
package province
|
||||
|
||||
type LocalizedTitle struct {
|
||||
type LocalizedName struct {
|
||||
En string `json:"en"`
|
||||
Ru string `json:"ru"`
|
||||
Tm string `json:"tm"`
|
||||
}
|
||||
|
||||
type ProvinceDTO struct {
|
||||
Id int64 `json:"id"`
|
||||
Title LocalizedTitle `json:"title"`
|
||||
Status bool `json:"status"`
|
||||
Id int64 `json:"id"`
|
||||
Name LocalizedName `json:"name"`
|
||||
Region LocalizedName `json:"region"`
|
||||
Active bool `json:"active"`
|
||||
}
|
||||
|
||||
type CreateProvinceDTO struct {
|
||||
Title LocalizedTitle `json:"title" binding:"required"`
|
||||
Status *bool `json:"status"`
|
||||
Name LocalizedName `json:"name" binding:"required"`
|
||||
Region LocalizedName `json:"region" binding:"required"`
|
||||
Active *bool `json:"active"`
|
||||
}
|
||||
|
||||
type UpdateProvinceDTO struct {
|
||||
Title LocalizedTitle `json:"title" binding:"required"`
|
||||
Status bool `json:"status"`
|
||||
Name LocalizedName `json:"name" binding:"required"`
|
||||
Region LocalizedName `json:"region" binding:"required"`
|
||||
Active bool `json:"active"`
|
||||
}
|
||||
Reference in new issue
Block a user