ChapterUpdateReqDto.java 770 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.sf.dto.req;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. import jakarta.validation.constraints.NotBlank;
  4. import jakarta.validation.constraints.NotNull;
  5. import lombok.Data;
  6. /**
  7. * 章节发布 请求DTO
  8. *
  9. * @author xiongxiaoyang
  10. * @date 2022/5/23
  11. */
  12. @Data
  13. public class ChapterUpdateReqDto {
  14. /**
  15. * 章节名
  16. */
  17. @NotBlank
  18. @Schema(description = "章节名", required = true)
  19. private String chapterName;
  20. /**
  21. * 章节内容
  22. */
  23. @Schema(description = "章节内容", required = true)
  24. @NotBlank
  25. private String chapterContent;
  26. /**
  27. * 是否收费;1-收费 0-免费
  28. */
  29. @Schema(description = "是否收费;1-收费 0-免费", required = true)
  30. @NotNull
  31. private Integer isVip;
  32. }