21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
import { Repository } from 'typeorm';
|
|
import { UserModel } from 'src/model/user.model';
|
|
import { AuthService } from 'src/app/common/service/auth.service';
|
|
import { CaptchaService } from 'src/app/common/service/captcha.service';
|
|
import { UserLogService } from '../../common/service/user_log.service';
|
|
export declare class ApiAuthService {
|
|
private authService;
|
|
private captchaService;
|
|
private userModel;
|
|
private userLogService;
|
|
constructor(authService: AuthService, captchaService: CaptchaService, userModel: Repository<UserModel>, userLogService: UserLogService);
|
|
login(phone: string, password: string, captchaKey?: string, captchaCode?: string): Promise<import("src/app/common/api").ApiResponseVo<null> | import("src/app/common/api").ApiResponseVo<{
|
|
token: string;
|
|
} | undefined>>;
|
|
createToken(payload: Buffer | object): Promise<string>;
|
|
register(phone: string, password: string, inviteCode: string, captchaKey: string, captchaCode: string): Promise<import("src/app/common/api").ApiResponseVo<null> | import("src/app/common/api").ApiResponseVo<{
|
|
token: string;
|
|
} | undefined>>;
|
|
private importUserAndJoinGroup;
|
|
}
|