ch some
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

This commit is contained in:
2026-09-04 19:33:26 +05:00
parent 28509eb4ca
commit d1a6fcaadc
102 changed files with 2089 additions and 1957 deletions

32
internal/shared/types.go Normal file
View 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"`
}