27 lines
662 B
Go
27 lines
662 B
Go
package province
|
|
|
|
type LocalizedName struct {
|
|
En string `json:"en"`
|
|
Ru string `json:"ru"`
|
|
Tm string `json:"tm"`
|
|
}
|
|
|
|
type ProvinceDTO struct {
|
|
Id int64 `json:"id"`
|
|
Name LocalizedName `json:"name"`
|
|
Region LocalizedName `json:"region"`
|
|
Active bool `json:"active"`
|
|
}
|
|
|
|
type CreateProvinceDTO struct {
|
|
Name LocalizedName `json:"name" binding:"required"`
|
|
Region LocalizedName `json:"region" binding:"required"`
|
|
Active *bool `json:"active"`
|
|
}
|
|
|
|
type UpdateProvinceDTO struct {
|
|
Name LocalizedName `json:"name" binding:"required"`
|
|
Region LocalizedName `json:"region" binding:"required"`
|
|
Active bool `json:"active"`
|
|
}
|