Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: dto, repository 분리
Browse files Browse the repository at this point in the history
niamu01 committed Dec 8, 2023
1 parent aa37537 commit 3389f00
Showing 43 changed files with 63 additions and 464 deletions.
2 changes: 1 addition & 1 deletion src/ext/cabi42.controller.ts
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ import {
import { UserSessionDto } from 'src/auth/dto/user.session.dto';
import { ExtAuthGuard } from 'src/auth/guard/ext-auth.guard';
import { User } from 'src/auth/user.decorator';
import { UserAccumulationMonthType } from '../tag-log-v2/dto/admin/user-accumulation-month.type';
import { UserAccumulationMonthType } from 'src/tag-log/dto/admin/user-accumulation-month.type';
import { TagLogAdminService } from '../tag-log-v2/tag-log-v2-admin.service';

@ApiTags('Cabi42 전용 API')
2 changes: 1 addition & 1 deletion src/ext/ext.module.ts
Original file line number Diff line number Diff line change
@@ -3,8 +3,8 @@ import { TypeOrmModule } from '@nestjs/typeorm';
import { AuthModule } from 'src/auth/auth.module';
import { DeviceInfo } from 'src/entities/device-info.entity';
import { TagLog } from 'src/entities/tag-log.entity';
import { TagLogRepository } from 'src/tag-log-v1/repository/mysql/tag-log.repository';
import { TagLogModule } from 'src/tag-log-v1/tag-log.module';
import { TagLogRepository } from 'src/tag-log/repository/mysql/tag-log.repository';
import { UserModule } from 'src/user/user.module';
import { ExtService } from './ext.service';
import { DeviceInfoRepository } from './repository/mysql/device-info.repository';
2 changes: 1 addition & 1 deletion src/ext/ext.service.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import {
Injectable,
Logger,
} from '@nestjs/common';
import { ITagLogRepository } from 'src/tag-log-v1/repository/interface/tag-log-repository.interface';
import { ITagLogRepository } from 'src/tag-log/repository/interface/tag-log-repository.interface';
import { UserService } from 'src/user/user.service';
import { Where42ResponseDto } from './dto/where42.response.dto';
import { IDeviceInfoRepository } from './repository/interface/device-info.repository.interface';

This file was deleted.

26 changes: 0 additions & 26 deletions src/tag-log-v1/repository/mysql/pair-info.repository.ts

This file was deleted.

8 changes: 4 additions & 4 deletions src/tag-log-v1/tag-log-admin.controller.ts
Original file line number Diff line number Diff line change
@@ -17,12 +17,12 @@ import {
ApiResponse,
ApiTags,
} from '@nestjs/swagger';
import { User } from 'src/auth/user.decorator';
import { UserSessionDto } from 'src/auth/dto/user.session.dto';
import { UserAccumulationDayType } from './dto/admin/user-accumulation-day.type';
import { UserAccumulationMonthType } from './dto/admin/user-accumulation-month.type';
import { TagLogAdminService } from './tag-log-admin.service';
import { AdminAuthGuard } from 'src/auth/guard/admin-auth.guard';
import { User } from 'src/auth/user.decorator';
import { UserAccumulationDayType } from 'src/tag-log/dto/admin/user-accumulation-day.type';
import { UserAccumulationMonthType } from 'src/tag-log/dto/admin/user-accumulation-month.type';
import { TagLogAdminService } from './tag-log-admin.service';

@ApiTags('체류 시간 산출 (관리자 전용 API)')
@ApiBearerAuth()
4 changes: 2 additions & 2 deletions src/tag-log-v1/tag-log-admin.service.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Injectable, Logger } from '@nestjs/common';
import { UserAccumulationDayType } from 'src/tag-log/dto/admin/user-accumulation-day.type';
import { UserAccumulationMonthType } from 'src/tag-log/dto/admin/user-accumulation-month.type';
import { UserService } from 'src/user/user.service';
import { DateCalculator } from 'src/utils/date-calculator.component';
import { UserAccumulationDayType } from './dto/admin/user-accumulation-day.type';
import { UserAccumulationMonthType } from './dto/admin/user-accumulation-month.type';
import { TagLogService } from './tag-log.service';

@Injectable()
8 changes: 4 additions & 4 deletions src/tag-log-v1/tag-log.controller.ts
Original file line number Diff line number Diff line change
@@ -13,13 +13,13 @@ import {
ApiResponse,
ApiTags,
} from '@nestjs/swagger';
import { User } from 'src/auth/user.decorator';
import { UserSessionDto } from 'src/auth/dto/user.session.dto';
import { UserAuthGuard } from 'src/auth/guard/user-auth.guard';
import { User } from 'src/auth/user.decorator';
import { UserInfoType } from 'src/tag-log/dto/user-Info.type';
import { UserInOutLogsType } from '../tag-log/dto/UserInOutLogs.type';
import { UserAccumulationType } from './dto/user-accumulation.type';
import { UserInfoType } from './dto/user-Info.type';
import { UserInOutLogsType } from './dto/UserInOutLogs.type';
import { TagLogService } from './tag-log.service';
import { UserAuthGuard } from 'src/auth/guard/user-auth.guard';

@ApiTags('체류 시간 산출')
@Controller({
6 changes: 3 additions & 3 deletions src/tag-log-v1/tag-log.module.ts
Original file line number Diff line number Diff line change
@@ -3,14 +3,14 @@ import { TypeOrmModule } from '@nestjs/typeorm';
import { AuthModule } from 'src/auth/auth.module';
import { PairInfo } from 'src/entities/pair-info.entity';
import { TagLog } from 'src/entities/tag-log.entity';
import { TagLogRepository } from 'src/tag-log/repository/mysql/tag-log.repository';
import { UserModule } from 'src/user/user.module';
import { UtilsModule } from 'src/utils/utils.module';
import { PairInfoRepository } from './repository/mysql/pair-info.repository';
import { TagLogRepository } from './repository/mysql/tag-log.repository';
import { TagLogAdminController } from './tag-log-admin.controller';
import { PairInfoRepository } from '../tag-log/repository/mysql/pair-info.repository';
import { TagLogAdminService } from './tag-log-admin.service';
import { TagLogController } from './tag-log.controller';
import { TagLogService } from './tag-log.service';
import { TagLogAdminController } from './tag-log-admin.controller';

const tagLogRepo = {
provide: 'ITagLogRepository',
12 changes: 6 additions & 6 deletions src/tag-log-v1/tag-log.service.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Inject, Injectable, Logger } from '@nestjs/common';
import InOut from 'src/enums/inout.enum';
import { InOutDto } from 'src/tag-log/dto/inout.dto';
import { PairInfoDto } from 'src/tag-log/dto/pair-info.dto';
import { TagLogDto } from 'src/tag-log/dto/tag-log.dto';
import { CardDto } from 'src/user/dto/card.dto';
import { UserService } from 'src/user/user.service';
import { DateCalculator } from 'src/utils/date-calculator.component';
import { InOutDto } from './dto/inout.dto';
import { TagLogDto } from './dto/tag-log.dto';
import { PairInfoDto } from './dto/pair-info.dto';
import { IPairInfoRepository } from '../tag-log/repository/interface/pair-info-repository.interface';
import { ITagLogRepository } from '../tag-log/repository/interface/tag-log-repository.interface';
import { InOutLogType } from './dto/subType/InOutLog.type';
import { ITagLogRepository } from './repository/interface/tag-log-repository.interface';
import { IPairInfoRepository } from './repository/interface/pair-info-repository.interface';
import { CardDto } from 'src/user/dto/card.dto';

@Injectable()
export class TagLogService {
22 changes: 0 additions & 22 deletions src/tag-log-v2/dto/UserInOutLogs.type.ts

This file was deleted.

67 changes: 0 additions & 67 deletions src/tag-log-v2/dto/admin/user-accumulation-day.type.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/tag-log-v2/dto/admin/user-accumulation-month-day.type.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/tag-log-v2/dto/admin/user-accumulation-month.type.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/tag-log-v2/dto/admin/user-id.type.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/tag-log-v2/dto/inout.dto.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/tag-log-v2/dto/pair-info.dto.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/tag-log-v2/dto/tag-log.dto.ts

This file was deleted.

47 changes: 0 additions & 47 deletions src/tag-log-v2/dto/user-Info.type.ts

This file was deleted.

Loading

0 comments on commit 3389f00

Please sign in to comment.