21 lines
400 B
Go
21 lines
400 B
Go
package province
|
|
|
|
type LocalizedTitle struct {
|
|
En string `json:"en"`
|
|
Ru string `json:"ru"`
|
|
Tm string `json:"tm"`
|
|
}
|
|
|
|
type ProvinceDTO struct {
|
|
Id int64 `json:"id"`
|
|
Title LocalizedTitle `json:"title"`
|
|
}
|
|
|
|
type CreateProvinceDTO struct {
|
|
Title LocalizedTitle `json:"title" binding:"required"`
|
|
}
|
|
|
|
type UpdateProvinceDTO struct {
|
|
Title LocalizedTitle `json:"title" binding:"required"`
|
|
}
|