-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
174 additions
and
0 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
40 changes: 40 additions & 0 deletions
40
src/main/java/io/github/xxyopen/novel/dto/req/ChapterUpdateReqDto.java
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,40 @@ | ||
package io.github.xxyopen.novel.dto.req; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Data; | ||
import org.hibernate.validator.constraints.Length; | ||
|
||
/** | ||
* 章节发布 请求DTO | ||
* | ||
* @author xiongxiaoyang | ||
* @date 2022/5/23 | ||
*/ | ||
@Data | ||
public class ChapterUpdateReqDto { | ||
|
||
/** | ||
* 章节名 | ||
*/ | ||
@NotBlank | ||
@Schema(description = "章节名", required = true) | ||
private String chapterName; | ||
|
||
/** | ||
* 章节内容 | ||
*/ | ||
@Schema(description = "章节内容", required = true) | ||
@NotBlank | ||
@Length(min = 50) | ||
private String chapterContent; | ||
|
||
/** | ||
* 是否收费;1-收费 0-免费 | ||
*/ | ||
@Schema(description = "是否收费;1-收费 0-免费", required = true) | ||
@NotNull | ||
private Integer isVip; | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
src/main/java/io/github/xxyopen/novel/dto/resp/ChapterContentRespDto.java
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,35 @@ | ||
package io.github.xxyopen.novel.dto.resp; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
/** | ||
* 小说内容 响应DTO | ||
* | ||
* @author xiongxiaoyang | ||
* @date 2022/5/15 | ||
*/ | ||
@Data | ||
@Builder | ||
public class ChapterContentRespDto { | ||
|
||
/** | ||
* 章节标题 | ||
*/ | ||
@Schema(description = "章节名") | ||
private String chapterName; | ||
|
||
/** | ||
* 章节内容 | ||
*/ | ||
@Schema(description = "章节内容") | ||
private String chapterContent; | ||
|
||
/** | ||
* 是否收费;1-收费 0-免费 | ||
*/ | ||
@Schema(description = "是否收费;1-收费 0-免费") | ||
private Integer isVip; | ||
|
||
} |
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
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