@kokkoro/web
Version:
Create web serve for kokkoro.
26 lines (25 loc) • 761 B
TypeScript
import User from '../model/user.model';
declare class UserService {
constructor();
private initUser;
registerUser(account: string, password: string): Promise<{
account: string;
}>;
hasUser(account: string): Promise<boolean>;
getUserList(): Promise<{
list: {
id: string;
account: string;
createTime: Date;
}[];
}>;
loginUser(account: string, password: string): Promise<string | undefined>;
modifyUser(oldUser: User, newUser: Omit<User, 'id'>): Promise<{
account: string;
}>;
removeUser(account: string, self: string): Promise<{
account: string;
}>;
}
declare const _default: UserService;
export default _default;