Commit 7a13304f authored by Pavel Mishakov's avatar Pavel Mishakov

add userDtos

parent 51c74b07
import { EStatuses } from "../enums/EStatuses";
import IProduct from "./IProduct";
export default interface IResponse<T=undefined> {
result: T | undefined | null
export default interface IResponse<T> {
result: T
message: string
status: EStatuses
}
\ No newline at end of file
export default interface IUser {
_id: string
username: string
password: string
active: boolean
token: string
}
\ No newline at end of file
import IUSer from "./IUser";
export default interface IUserCreateDto {
username: IUSer['username']
password: IUSer['password']
}
\ No newline at end of file
import IUSer from "./IUser";
export default interface IUserGetDto {
_id: IUSer['_id']
username: IUSer['username']
token: IUSer['token']
}
\ No newline at end of file
......@@ -5,6 +5,6 @@ import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
port: 3003
port: 3000
}
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment