Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tabulator-another
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
tabulator-another
Commits
6231c9fa
Commit
6231c9fa
authored
Apr 23, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f980d71e
Pipeline
#35441
failed with stages
in 33 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/participant/participant.controller.ts
src/participant/participant.controller.ts
+2
-1
src/tournament/tournament.controller.ts
src/tournament/tournament.controller.ts
+2
-1
No files found.
src/participant/participant.controller.ts
View file @
6231c9fa
...
@@ -6,6 +6,7 @@ import { ApiMycardUser, MycardUser, PutMycardUser } from 'nestjs-mycard';
...
@@ -6,6 +6,7 @@ import { ApiMycardUser, MycardUser, PutMycardUser } from 'nestjs-mycard';
import
{
ApiTags
}
from
'
@nestjs/swagger
'
;
import
{
ApiTags
}
from
'
@nestjs/swagger
'
;
const
factory
=
new
RestfulFactory
(
Participant
);
const
factory
=
new
RestfulFactory
(
Participant
);
class
CreateParticipantDto
extends
factory
.
createDto
{}
class
FindParticipantDto
extends
factory
.
findAllDto
{}
class
FindParticipantDto
extends
factory
.
findAllDto
{}
class
UpdateParticipantDto
extends
factory
.
updateDto
{}
class
UpdateParticipantDto
extends
factory
.
updateDto
{}
class
ImportParticipantDto
extends
factory
.
importDto
{}
class
ImportParticipantDto
extends
factory
.
importDto
{}
...
@@ -20,7 +21,7 @@ export class ParticipantController {
...
@@ -20,7 +21,7 @@ export class ParticipantController {
@
factory
.
create
()
@
factory
.
create
()
async
create
(
async
create
(
@
factory
.
createParam
()
participant
:
Participant
,
@
factory
.
createParam
()
participant
:
CreateParticipantDto
,
@
PutMycardUser
()
user
:
MycardUser
,
@
PutMycardUser
()
user
:
MycardUser
,
)
{
)
{
return
this
.
participantService
.
createParticipant
(
participant
,
user
);
return
this
.
participantService
.
createParticipant
(
participant
,
user
);
...
...
src/tournament/tournament.controller.ts
View file @
6231c9fa
...
@@ -11,6 +11,7 @@ import {
...
@@ -11,6 +11,7 @@ import {
}
from
'
@nestjs/swagger
'
;
}
from
'
@nestjs/swagger
'
;
const
factory
=
new
RestfulFactory
(
Tournament
);
const
factory
=
new
RestfulFactory
(
Tournament
);
class
CreateTournamentDto
extends
factory
.
createDto
{}
class
FindTournamentDto
extends
factory
.
findAllDto
{}
class
FindTournamentDto
extends
factory
.
findAllDto
{}
class
UpdateTournamentDto
extends
factory
.
updateDto
{}
class
UpdateTournamentDto
extends
factory
.
updateDto
{}
...
@@ -24,7 +25,7 @@ export class TournamentController {
...
@@ -24,7 +25,7 @@ export class TournamentController {
@
factory
.
create
()
@
factory
.
create
()
async
create
(
async
create
(
@
factory
.
createParam
()
tournament
:
Tournament
,
@
factory
.
createParam
()
tournament
:
CreateTournamentDto
,
@
PutMycardUser
()
user
:
MycardUser
,
@
PutMycardUser
()
user
:
MycardUser
,
)
{
)
{
return
this
.
tournamentService
.
createTournament
(
tournament
,
user
);
return
this
.
tournamentService
.
createTournament
(
tournament
,
user
);
...
...
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