new file: main_dc/yalarba/api_es/internal/handlers/all_handlers.go

new file:   main_dc/yalarba/api_es/internal/handlers/auth_handler.go
	new file:   main_dc/yalarba/api_es/internal/handlers/user_handler.go
	new file:   main_dc/yalarba/api_es/internal/models/busines_object.go
	new file:   main_dc/yalarba/api_es/internal/models/news.go
	new file:   main_dc/yalarba/api_es/internal/models/reports.go
	modified:   main_dc/yalarba/api_es/internal/models/user.go
	new file:   main_dc/yalarba/api_es/internal/repositories/user_repository.go
add empty files
This commit is contained in:
2025-11-12 04:38:43 +05:00
parent eedcabe7bf
commit d08b94dbb0
8 changed files with 11 additions and 2 deletions
@@ -14,7 +14,8 @@ type User struct {
// Основная информация
Email string `gorm:"uniqueIndex;not null" json:"email"`
PasswordHash string `gorm:"not null" json:"-"`
FullName string `gorm:"not null" json:"full_name"`
FirstName string `gorm:"not null" json:"first_name"`
LastName string `gorm:"not null" json:"last_name"`
Phone string `json:"phone"`
City string `json:"city"`
@@ -48,7 +49,8 @@ type UserStats struct {
type UserResponse struct {
ID uint `json:"id"`
Email string `json:"email"`
FullName string `json:"full_name"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Phone string `json:"phone"`
City string `json:"city"`
OrganizationForm string `json:"organization_form"`