2022-10-11 10:18:12 +00:00
|
|
|
import { EntityInfo } from './entity';
|
2022-09-23 22:14:51 +00:00
|
|
|
|
2022-10-10 10:11:11 +00:00
|
|
|
export type UserInfo = {
|
2022-09-23 22:14:51 +00:00
|
|
|
name: string;
|
2022-10-10 15:01:31 +00:00
|
|
|
};
|
2022-09-23 22:14:51 +00:00
|
|
|
|
2022-10-11 10:18:12 +00:00
|
|
|
export type User = UserInfo & EntityInfo;
|
2022-10-10 10:11:11 +00:00
|
|
|
|
|
|
|
export type CreateUserBody = {
|
2022-09-23 22:14:51 +00:00
|
|
|
name: string;
|
|
|
|
password: string;
|
|
|
|
};
|
|
|
|
|
2022-10-10 10:11:11 +00:00
|
|
|
export type LoginUserBody = CreateUserBody;
|
2022-10-11 10:18:12 +00:00
|
|
|
|
|
|
|
export type UserCtor = Partial<User>;
|