import { UserDBO } from '../dbos/user'; import { Component, Request, Http } from '@pjblog/http'; import { ClassicCache } from '@pjblog/cache'; import type { EntityManager } from 'typeorm'; interface IBody { account: string; password: string; } export interface ILoginControllerResponse { account: string; nickname: string; avatar: string; time: number; } export declare class LoginController extends Component { readonly manager: EntityManager; readonly service: UserDBO; readonly configs: Configs; readonly http: Http; readonly classicCache: ClassicCache; constructor(req: Request); checkUserExists(): Promise; checkPasswordCorrect(): void; rebuildPassword(): Promise; buildCache(): Promise; } import { Configs } from '../../configs/service'; export declare function createNewLoginData(): ILoginControllerResponse; export {};