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
b6b1987a
Commit
b6b1987a
authored
Apr 22, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix super large thing
parent
cc9d4245
Pipeline
#35421
passed with stages
in 56 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
src/match/entities/match.entity.ts
src/match/entities/match.entity.ts
+3
-8
src/participant/entities/participant.entity.ts
src/participant/entities/participant.entity.ts
+8
-4
No files found.
src/match/entities/match.entity.ts
View file @
b6b1987a
import
{
Entity
,
Index
,
ManyToOne
,
OneToMany
}
from
'
typeorm
'
;
import
{
Entity
,
Index
,
ManyToOne
,
OneToMany
,
SelectQueryBuilder
,
}
from
'
typeorm
'
;
import
{
applyQueryProperty
,
BoolColumn
,
EnumColumn
,
IdBase
,
IntColumn
,
NotChangeable
,
NotColumn
,
NotInResult
,
QueryEqual
,
QueryMatchBoolean
,
}
from
'
nicot
'
;
...
...
@@ -127,6 +121,7 @@ export class Match extends IdBase() {
@
NotColumn
()
@
ManyToOne
(()
=>
Match
,
(
match
)
=>
match
.
parentMatches
)
@
NotInResult
()
childMatch
:
Match
;
@
NotColumn
()
@
OneToMany
(()
=>
Match
,
(
match
)
=>
match
.
childMatch
)
...
...
src/participant/entities/participant.entity.ts
View file @
b6b1987a
...
...
@@ -4,6 +4,7 @@ import {
BoolColumn
,
NotChangeable
,
NotColumn
,
NotInResult
,
QueryEqual
,
QueryMatchBoolean
,
}
from
'
nicot
'
;
...
...
@@ -47,19 +48,22 @@ export class Participant extends NamedBase {
@
NotColumn
()
@
OneToMany
(()
=>
Match
,
(
match
)
=>
match
.
player1
)
@
NotInResult
()
matches1
:
Match
[];
@
NotColumn
()
@
OneToMany
(()
=>
Match
,
(
match
)
=>
match
.
player2
)
@
NotInResult
()
matches2
:
Match
[];
@
NotColumn
()
@
OneToMany
(()
=>
Match
,
(
match
)
=>
match
.
winner
)
@
NotInResult
()
wonMatches
:
Match
[];
@
NotColumn
()
@
ApiProperty
({
type
:
[
Match
],
description
:
'
参与的比赛。
'
})
matches
:
Match
[];
//
@NotColumn()
//
@ApiProperty({ type: [Match], description: '参与的比赛。' })
//
matches: Match[];
@
NotColumn
({
description
:
'
该选手的成绩。
'
,
...
...
@@ -73,7 +77,7 @@ export class Participant extends NamedBase {
async
afterGet
()
{
await
super
.
afterGet
();
this
.
matches
=
this
.
getMatches
();
//
this.matches = this.getMatches();
}
checkPermission
(
user
:
MycardUser
)
{
...
...
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