ch some
This commit is contained in:
32
internal/shared/types.go
Normal file
32
internal/shared/types.go
Normal file
@@ -0,0 +1,32 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user