feat: Add new handlers and repository for oauth2
All checks were successful
Backend ci / build (push) Successful in 3m36s
All checks were successful
Backend ci / build (push) Successful in 3m36s
This commit is contained in:
22
backend/internal/repositories/auth_repository.go
Normal file
22
backend/internal/repositories/auth_repository.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package repositories
|
||||
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
"gitea.d3m0k1d.ru/d3m0k1d/d3m0k1d.ru/backend/internal/logger"
|
||||
)
|
||||
|
||||
type authRepository struct {
|
||||
db *sql.DB
|
||||
logger *logger.Logger
|
||||
}
|
||||
|
||||
func NewAuthRepository(db *sql.DB) AuthRepository {
|
||||
return &authRepository{
|
||||
db: db,
|
||||
logger: logger.New(false),
|
||||
}
|
||||
}
|
||||
func (a *authRepository) Test(ctx context.Context) {
|
||||
}
|
||||
Reference in New Issue
Block a user