2022-10-10 10:11:11 +00:00
|
|
|
import { Entity } 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-10 10:11:11 +00:00
|
|
|
export type User = UserInfo & Entity;
|
|
|
|
|
|
|
|
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;
|