• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

khu-khlug / sight-backend / 13616929463

02 Mar 2025 03:40PM UTC coverage: 57.19% (-1.0%) from 58.222%
13616929463

push

github

web-flow
chore: yarn에서 npm으로 롤백 (#105)

637 of 1702 branches covered (37.43%)

Branch coverage included in aggregate %.

1797 of 2554 relevant lines covered (70.36%)

15.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/app/interface/user/manager/UserManageController.ts
1
import { Controller, Get, HttpStatus, Query } from '@nestjs/common';
2
import { QueryBus } from '@nestjs/cqrs';
×
3
import { ApiOperation, ApiResponse } from '@nestjs/swagger';
×
4

5
import { Auth } from '@khlug/core/auth/Auth';
6
import { UserRole } from '@khlug/core/auth/UserRole';
7

8
import { ListUserRequestDto } from '@khlug/app/interface/user/manager/dto/ListUserRequestDto';
9
import { ListUserResponseDto } from '@khlug/app/interface/user/manager/dto/ListUserResponseDto';
10

×
11
import { ListUserQuery } from '@khlug/app/application/user/query/listUser/ListUserQuery';
12

×
13
@Controller()
14
export class UserManageController {
15
  constructor(private readonly queryBus: QueryBus) {}
×
16

×
17
  @Get('/manager/users')
×
18
  @Auth([UserRole.MANAGER])
×
19
  @ApiOperation({ summary: '회원 목록 조회' })
20
  @ApiResponse({ status: HttpStatus.OK, type: ListUserResponseDto })
21
  async listUser(
×
22
    @Query() dto: ListUserRequestDto,
23
  ): Promise<ListUserResponseDto> {
24
    const query = new ListUserQuery({
×
25
      email: dto.email,
×
26
      phone: dto.phone,
27
      name: dto.name,
28
      number: dto.number,
29
      college: dto.college,
30
      grade: dto.grade,
31
      studentStatus: dto.studentStatus,
32
      limit: dto.limit,
33
      offset: dto.offset,
34
    });
35
    const result = await this.queryBus.execute(query);
36
    return ListUserResponseDto.buildFromQueryResult(result);
37
  }
38
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc