35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
import { EntityDict } from "../oak-app-domain";
|
|
import { BRC } from "../types/RuntimeCxt";
|
|
export declare function mergeUser<ED extends EntityDict>(params: {
|
|
from: string;
|
|
to: string;
|
|
mergeMobile?: true;
|
|
mergeEmail?: true;
|
|
mergeWechatUser?: true;
|
|
}, context: BRC<ED>, innerLogic?: boolean): Promise<void>;
|
|
export declare function getChangePasswordChannels<ED extends EntityDict>(params: {
|
|
userId: string;
|
|
}, context: BRC<ED>, innerLogic?: boolean): Promise<string[]>;
|
|
export declare function updateUserPassword<ED extends EntityDict>(params: {
|
|
userId: string;
|
|
prevPassword?: string;
|
|
captcha?: string;
|
|
newPassword: string;
|
|
mobile?: string;
|
|
}, context: BRC<ED>, innerLogic?: boolean): Promise<{
|
|
result: string;
|
|
times: number;
|
|
} | {
|
|
result: string;
|
|
times?: undefined;
|
|
}>;
|
|
/**
|
|
* 用户账号注册
|
|
* @param params
|
|
* @param context
|
|
*/
|
|
export declare function registerUserByLoginName<ED extends EntityDict>(params: {
|
|
loginName: string;
|
|
password: string;
|
|
}, context: BRC<ED>): Promise<void>;
|