Skip to content

Commit 81784be

Browse files
committed
feat(series): Add slug field in SeriesForEditDTO
1 parent 007ed37 commit 81784be

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/kotlin/me/loghub/api/dto/series/SeriesForEditDTO.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import me.loghub.api.dto.series.chapter.SeriesChapterDTO
44

55
data class SeriesForEditDTO(
66
val id: Long,
7+
val slug: String,
78
val title: String,
89
val description: String,
910
val thumbnail: String,

src/main/kotlin/me/loghub/api/mapper/series/SeriesMapper.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ object SeriesMapper {
3838

3939
fun mapForEdit(series: Series) = SeriesForEditDTO(
4040
id = series.id!!,
41+
slug = series.slug,
4142
title = series.title,
4243
description = series.description,
4344
thumbnail = series.thumbnail,

0 commit comments

Comments
 (0)