-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from Open-Webtoon-Reader/improvement/route-sep…
…aration Merge episode chunk loading to Main
- Loading branch information
Showing
4 changed files
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {ApiProperty} from "@nestjs/swagger"; | ||
import {IsInt, IsOptional} from "class-validator"; | ||
|
||
export class ChunkNumberDto{ | ||
@ApiProperty({required: false}) | ||
@IsOptional() | ||
@IsInt() | ||
chunk: number; | ||
} |
21 changes: 21 additions & 0 deletions
21
src/modules/webtoon/webtoon/models/responses/episode-chunk.response.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import EpisodeLineModel from "../models/episode-line.model"; | ||
import {ApiProperty} from "@nestjs/swagger"; | ||
|
||
export default class EpisodeChunkResponse{ | ||
@ApiProperty() | ||
episodes: EpisodeLineModel[]; | ||
@ApiProperty() | ||
currentChunk: number; | ||
@ApiProperty() | ||
maxChunks: number; | ||
|
||
constructor( | ||
episodes: EpisodeLineModel[], | ||
currentChunk: number, | ||
maxChunks: number | ||
){ | ||
this.episodes = episodes; | ||
this.currentChunk = currentChunk; | ||
this.maxChunks = maxChunks; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters