import { ContentResult } from 'maishu-node-mvc'; import { UserDataContext } from '../data-context'; import { User } from '../entities'; import { LoginResult } from "../../gateway"; import { DataSourceSelectArguments } from 'maishu-wuzhui-helper'; export default class UserController { /** 手机是否已注册 */ isMobileRegister(dc: UserDataContext, { mobile }: { mobile: any; }): Promise; isUserNameRegister(dc: UserDataContext, { user_name }: { user_name: any; }): Promise; isEmailRegister(dc: UserDataContext, { email }: { email: any; }): Promise; register(dc: UserDataContext, { mobile, password, smsId, verifyCode, data, userName }: { mobile: string; password: string; smsId: string; verifyCode: string; data: any; userName: string; }): Promise; registerWidthoutVerify(dc: UserDataContext, { item }: { item: User; }): Promise; private loginActionResult; resetPassword(dc: UserDataContext, { mobile, password, smsId, verifyCode }: { mobile: any; password: any; smsId: any; verifyCode: any; }): Promise; resetMobile(dc: UserDataContext, userId: string, { mobile, smsId, verifyCode }: { mobile: any; smsId: any; verifyCode: any; }): Promise<{ id: string; }>; loginByUserName(dc: UserDataContext, { username, password }: { username: any; password: any; }): Promise; private loginByOpenId; private loginByVerifyCode; login(dc: UserDataContext, args: any): Promise; logout(): Promise; /** 获取登录用户的信息 */ me(user: User): Promise>; /** 获取用户信息 */ item(dc: UserDataContext, { userId }: { userId: string; }): Promise; list(dc: UserDataContext, d: { args: DataSourceSelectArguments; }): Promise>; /** 添加用户 */ add(dc: UserDataContext, { item }: { item: User; }): Promise>; remove(dc: UserDataContext, { id }: { id: any; }): Promise<{ id: any; }>; update(dc: UserDataContext, { user }: { user: User; }): Promise>; userLatestLogin(dc: UserDataContext, { userIds }: { userIds: string[]; }): Promise; }