meti-backend/internal/handler/auth_service.go

14 lines
402 B
Go
Raw Normal View History

2025-08-09 15:08:26 +07:00
package handler
import (
"context"
"eslogad-be/internal/contract"
)
type AuthService interface {
Login(ctx context.Context, req *contract.LoginRequest) (*contract.LoginResponse, error)
ValidateToken(tokenString string) (*contract.UserResponse, error)
RefreshToken(ctx context.Context, tokenString string) (*contract.LoginResponse, error)
Logout(ctx context.Context, tokenString string) error
}