11 lines
351 B
Go
Executable File
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)
|
|
}
|