22 lines
609 B
TypeScript
22 lines
609 B
TypeScript
import { AuthService } from './auth.service';
|
|
import { RegisterDto } from './dto/register.dto';
|
|
import { LoginDto } from './dto/login.dto';
|
|
export declare class AuthController {
|
|
private readonly authService;
|
|
constructor(authService: AuthService);
|
|
register(dto: RegisterDto): Promise<{
|
|
accessToken: string;
|
|
userId: number;
|
|
username: string;
|
|
role: string;
|
|
isPremium: boolean;
|
|
}>;
|
|
login(dto: LoginDto): Promise<{
|
|
accessToken: string;
|
|
userId: number;
|
|
username: string;
|
|
role: string;
|
|
isPremium: boolean;
|
|
}>;
|
|
}
|