bugfix, add db stuff

This commit is contained in:
GEEKiDoS
2024-04-09 10:50:23 +08:00
parent 7a1e4bbf4c
commit 1fa7d578fe
10 changed files with 1986 additions and 38 deletions
+72
View File
@@ -0,0 +1,72 @@
import { Binary } from "mongodb";
export interface PlayerInfo {
_id: string;
rivals: string[];
pointCount: number;
customize: {
2: string;
3: string;
4: string;
5: string;
6: string;
7: string;
8: string;
11: string;
10: string;
},
otherCustomize: {
1: string;
2: string;
3: string;
4: string;
5: string;
}
}
export interface PlayerPlayData {
_id: string;
pdata: Binary;
checksum: string;
}
export interface PlayerMusicData {
player: string;
musicId: string;
clearFlag: {
spb: number;
spn: number;
sph: number;
spa: number;
spl: number;
dpb: number;
dpn: number;
dph: number;
dpa: number;
dpl: number;
};
score: {
spb: number;
spn: number;
sph: number;
spa: number;
spl: number;
dpb: number;
dpn: number;
dph: number;
dpa: number;
dpl: number;
};
missCount: {
spb: number;
spn: number;
sph: number;
spa: number;
spl: number;
dpb: number;
dpn: number;
dph: number;
dpa: number;
dpl: number;
};
}