Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro2
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
nanahira
srvpro2
Commits
641611fe
Commit
641611fe
authored
Feb 17, 2026
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rework index
parent
536e1ea7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
AGENTS.md
AGENTS.md
+4
-0
src/feats/cloud-replay/duel-record-player.entity.ts
src/feats/cloud-replay/duel-record-player.entity.ts
+2
-0
src/feats/cloud-replay/duel-record.entity.ts
src/feats/cloud-replay/duel-record.entity.ts
+3
-1
No files found.
AGENTS.md
View file @
641611fe
...
@@ -35,6 +35,10 @@
...
@@ -35,6 +35,10 @@
-
srvpro 里面的 client.send(发送给客户端)还是对应 client.send
-
srvpro 里面的 client.send(发送给客户端)还是对应 client.send
-
srvpro 里面 server.send(模拟客户端发送消息)对应 this.ctx.dispatch(msgClassInstance, client)
-
srvpro 里面 server.send(模拟客户端发送消息)对应 this.ctx.dispatch(msgClassInstance, client)
## ts-rest 相关
-
契约文件放在 src/api/contract.ts 一个文件里面,方便其他项目复制。
## 参考项目
## 参考项目
可以参考电脑的下面的项目,用来参考。这些代码只能看,不能改。~ 指代这台电脑的 HOME 目录。
可以参考电脑的下面的项目,用来参考。这些代码只能看,不能改。~ 指代这台电脑的 HOME 目录。
...
...
src/feats/cloud-replay/duel-record-player.entity.ts
View file @
641611fe
...
@@ -21,6 +21,7 @@ export class DuelRecordPlayer extends BaseTimeEntity {
...
@@ -21,6 +21,7 @@ export class DuelRecordPlayer extends BaseTimeEntity {
@
Generated
(
'
increment
'
)
@
Generated
(
'
increment
'
)
id
!
:
number
;
id
!
:
number
;
@
Index
()
@
Column
({
@
Column
({
type
:
'
varchar
'
,
type
:
'
varchar
'
,
length
:
20
,
length
:
20
,
...
@@ -52,6 +53,7 @@ export class DuelRecordPlayer extends BaseTimeEntity {
...
@@ -52,6 +53,7 @@ export class DuelRecordPlayer extends BaseTimeEntity {
})
})
clientKey
!
:
string
;
// getClientKey(client)
clientKey
!
:
string
;
// getClientKey(client)
@
Index
()
@
Column
(
'
bool
'
)
@
Column
(
'
bool
'
)
isFirst
!
:
boolean
;
// wasSwapped ? duelPos==1 : duelPos==0
isFirst
!
:
boolean
;
// wasSwapped ? duelPos==1 : duelPos==0
...
...
src/feats/cloud-replay/duel-record.entity.ts
View file @
641611fe
...
@@ -25,6 +25,7 @@ export class DuelRecordEntity extends BaseTimeEntity {
...
@@ -25,6 +25,7 @@ export class DuelRecordEntity extends BaseTimeEntity {
@
Column
(
'
timestamp
'
)
@
Column
(
'
timestamp
'
)
startTime
!
:
Date
;
// duelRecord.time
startTime
!
:
Date
;
// duelRecord.time
@
Index
()
@
Column
(
'
timestamp
'
)
@
Column
(
'
timestamp
'
)
endTime
!
:
Date
;
// 入库时间
endTime
!
:
Date
;
// 入库时间
...
@@ -51,8 +52,9 @@ export class DuelRecordEntity extends BaseTimeEntity {
...
@@ -51,8 +52,9 @@ export class DuelRecordEntity extends BaseTimeEntity {
@
Column
(
'
smallint
'
,
{
@
Column
(
'
smallint
'
,
{
unsigned
:
true
,
unsigned
:
true
,
})
})
duelCount
!
:
number
;
// room.duel
Count
.length
duelCount
!
:
number
;
// room.duel
Records
.length
@
Index
()
@
Column
(
'
smallint
'
)
@
Column
(
'
smallint
'
)
winReason
!
:
number
;
// OnRoomWin.winMsg.type
winReason
!
:
number
;
// OnRoomWin.winMsg.type
...
...
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