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

khu-khlug / sight-backend / 13037012621

29 Jan 2025 05:31PM UTC coverage: 57.481% (-0.3%) from 57.757%
13037012621

push

github

web-flow
feat: 전화번호 및 학번 검색어 유형 추가 (#92)

503 of 1416 branches covered (35.52%)

Branch coverage included in aggregate %.

0 of 8 new or added lines in 4 files covered. (0.0%)

29 existing lines in 4 files now uncovered.

1391 of 1879 relevant lines covered (74.03%)

6.39 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,
NEW
26
      phone: dto.phone,
×
27
      name: dto.name,
28
      number: dto.number,
UNCOV
29
      college: dto.college,
×
30
      grade: dto.grade,
31
      state: dto.state,
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