diff --git a/main_dc/yalarba/api_es/internal/handlers/all_handlers.go b/main_dc/yalarba/api_es/internal/handlers/all_handlers.go new file mode 100644 index 0000000..28ae6f5 --- /dev/null +++ b/main_dc/yalarba/api_es/internal/handlers/all_handlers.go @@ -0,0 +1 @@ +package handlers \ No newline at end of file diff --git a/main_dc/yalarba/api_es/internal/handlers/auth_handler.go b/main_dc/yalarba/api_es/internal/handlers/auth_handler.go new file mode 100644 index 0000000..28ae6f5 --- /dev/null +++ b/main_dc/yalarba/api_es/internal/handlers/auth_handler.go @@ -0,0 +1 @@ +package handlers \ No newline at end of file diff --git a/main_dc/yalarba/api_es/internal/handlers/user_handler.go b/main_dc/yalarba/api_es/internal/handlers/user_handler.go new file mode 100644 index 0000000..28ae6f5 --- /dev/null +++ b/main_dc/yalarba/api_es/internal/handlers/user_handler.go @@ -0,0 +1 @@ +package handlers \ No newline at end of file diff --git a/main_dc/yalarba/api_es/internal/models/busines_object.go b/main_dc/yalarba/api_es/internal/models/busines_object.go new file mode 100644 index 0000000..2640e7f --- /dev/null +++ b/main_dc/yalarba/api_es/internal/models/busines_object.go @@ -0,0 +1 @@ +package models diff --git a/main_dc/yalarba/api_es/internal/models/news.go b/main_dc/yalarba/api_es/internal/models/news.go new file mode 100644 index 0000000..778a4c0 --- /dev/null +++ b/main_dc/yalarba/api_es/internal/models/news.go @@ -0,0 +1 @@ +package models \ No newline at end of file diff --git a/main_dc/yalarba/api_es/internal/models/reports.go b/main_dc/yalarba/api_es/internal/models/reports.go new file mode 100644 index 0000000..778a4c0 --- /dev/null +++ b/main_dc/yalarba/api_es/internal/models/reports.go @@ -0,0 +1 @@ +package models \ No newline at end of file diff --git a/main_dc/yalarba/api_es/internal/models/user.go b/main_dc/yalarba/api_es/internal/models/user.go index 5d2d984..da3ec87 100644 --- a/main_dc/yalarba/api_es/internal/models/user.go +++ b/main_dc/yalarba/api_es/internal/models/user.go @@ -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"` diff --git a/main_dc/yalarba/api_es/internal/repositories/user_repository.go b/main_dc/yalarba/api_es/internal/repositories/user_repository.go new file mode 100644 index 0000000..61385c7 --- /dev/null +++ b/main_dc/yalarba/api_es/internal/repositories/user_repository.go @@ -0,0 +1 @@ +package repositories \ No newline at end of file