33 lines
716 B
Go
33 lines
716 B
Go
package shared
|
|
|
|
type LocalizedText struct {
|
|
En string `json:"en"`
|
|
Ru string `json:"ru"`
|
|
Tm string `json:"tm"`
|
|
}
|
|
|
|
type UserInfo struct {
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Username string `json:"username"`
|
|
Phone string `json:"phone"`
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type NamedInfo struct {
|
|
Id int64 `json:"id"`
|
|
Name LocalizedText `json:"name"`
|
|
}
|
|
|
|
// TextInfo is for catalog rows whose name is a plain string (not localized JSON).
|
|
type TextInfo struct {
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type BranchInfo struct {
|
|
Id int64 `json:"id"`
|
|
Name LocalizedText `json:"name"`
|
|
UniqueCode string `json:"uniqueCode,omitempty"`
|
|
}
|