|
|
@@ -112,4 +112,13 @@ export class TeamController {
|
|
|
return reply.code(500).send({ message: '获取统计数据失败', error })
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ async getTeams(request: FastifyRequest, reply: FastifyReply) {
|
|
|
+ try {
|
|
|
+ const teams = await this.teamService.getTeams()
|
|
|
+ return reply.send(teams)
|
|
|
+ } catch (error) {
|
|
|
+ return reply.code(500).send({ message: '获取团队失败', error })
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|