modified: go.mod

modified:   go.sum
	modified:   internal/handlers/auth.go
	new file:   internal/handlers/oauth.go
	modified:   internal/handlers/user_handler.go
	renamed:    internal/model/o_auth_provider.go -> internal/models/o_auth_provider.go
	renamed:    internal/model/user.go -> internal/models/user.go
	modified:   internal/repository/user_repository.go
	modified:   internal/service/user_service.go
	modified:   pkg/database/postgres.go
add  oauth_handler
This commit is contained in:
2025-09-29 22:01:04 +05:00
parent ca37a475c9
commit f7b09e260c
10 changed files with 160 additions and 42 deletions
@@ -4,7 +4,7 @@ import (
"fmt"
"log"
"serv_golang_rest_api/internal/config"
"serv_golang_rest_api/internal/model"
"serv_golang_rest_api/internal/models"
"gorm.io/driver/postgres"
"gorm.io/gorm"
@@ -46,7 +46,7 @@ func autoMigrate(db *gorm.DB) error {
// Или используйте автоматические миграции GORM
return db.AutoMigrate(
&model.User{},
&models.User{},
// другие модели...
)
}