Files
online-backend/internal/identity/auth/storage.go
2026-07-15 18:08:19 +05:00

11 lines
351 B
Go
Executable File

package auth
import "context"
type Repository interface {
Login(ctx context.Context, dto LoginDTO) (UserCredentials, error)
GetUserByID(ctx context.Context, id int) (UserCredentials, error)
GetProfile(ctx context.Context, id int) (UserProfileDTO, error)
UpdateProfile(ctx context.Context, id int, dto UpdateProfileDTO) (UserProfileDTO, error)
}