Files
online-backend/internal/shared/types.go
GuwandykA d1a6fcaadc
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled
ch some
2026-09-04 19:33:26 +05:00

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"`
}