chore: init

This commit is contained in:
Kuizuo
2024-04-26 02:12:44 +08:00
commit 5231e5f565
298 changed files with 44435 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import 'fastify'
declare module 'fastify' {
interface FastifyRequest {
user?: IAuthUser
}
}
+16
View File
@@ -0,0 +1,16 @@
import { Role } from '@server/modules/auth/auth.constant'
declare global {
interface IAuthUser {
id: string
role: Role
exp?: number
iat?: number
}
export interface IListRespData<T = any> {
items: T[]
}
}
export {}
+1
View File
@@ -0,0 +1 @@
import '@my/database/global'
+7
View File
@@ -0,0 +1,7 @@
import 'socket.io'
declare module 'socket.io' {
interface Socket {
user?: IAuthUser
}
}