Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
products_lesson_front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pavel Mishakov
products_lesson_front
Commits
7a13304f
Commit
7a13304f
authored
Mar 24, 2023
by
Pavel Mishakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add userDtos
parent
51c74b07
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
3 deletions
+23
-3
IResponse.ts
src/interfaces/IResponse.ts
+2
-2
IUser.ts
src/interfaces/IUser.ts
+7
-0
IUserCreateDto.ts
src/interfaces/IUserCreateDto.ts
+6
-0
IUserGetDto.ts
src/interfaces/IUserGetDto.ts
+7
-0
vite.config.ts
vite.config.ts
+1
-1
No files found.
src/interfaces/IResponse.ts
View file @
7a13304f
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
src/interfaces/IUser.ts
0 → 100644
View file @
7a13304f
export
default
interface
IUser
{
_id
:
string
username
:
string
password
:
string
active
:
boolean
token
:
string
}
\ No newline at end of file
src/interfaces/IUserCreateDto.ts
0 → 100644
View file @
7a13304f
import
IUSer
from
"./IUser"
;
export
default
interface
IUserCreateDto
{
username
:
IUSer
[
'username'
]
password
:
IUSer
[
'password'
]
}
\ No newline at end of file
src/interfaces/IUserGetDto.ts
0 → 100644
View file @
7a13304f
import
IUSer
from
"./IUser"
;
export
default
interface
IUserGetDto
{
_id
:
IUSer
[
'_id'
]
username
:
IUSer
[
'username'
]
token
:
IUSer
[
'token'
]
}
\ No newline at end of file
vite.config.ts
View file @
7a13304f
...
...
@@ -5,6 +5,6 @@ import react from '@vitejs/plugin-react'
export
default
defineConfig
({
plugins
:
[
react
()],
server
:
{
port
:
300
3
port
:
300
0
}
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment