ProblemCaseDto.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package space.anyi.serve.entity.problem;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. import jakarta.validation.constraints.NotNull;
  4. @Schema(description = "题目样例新增和修改使用的DTO")
  5. public class ProblemCaseDto {
  6. @Schema(description = "样例ID")
  7. private Long id;
  8. @NotNull(message = "所属题目ID不能为空")
  9. @Schema(description = "所属题目ID")
  10. private Long problemId;
  11. @Schema(description = "样例输入")
  12. private String input;
  13. @Schema(description = "样例输出")
  14. private String output;
  15. @Schema(description = "样例说明")
  16. private String description;
  17. @Schema(description = "显示顺序")
  18. private Integer sortOrder;
  19. public Long getId() {
  20. return id;
  21. }
  22. public void setId(Long id) {
  23. this.id = id;
  24. }
  25. public Long getProblemId() {
  26. return problemId;
  27. }
  28. public void setProblemId(Long problemId) {
  29. this.problemId = problemId;
  30. }
  31. public String getInput() {
  32. return input;
  33. }
  34. public void setInput(String input) {
  35. this.input = input;
  36. }
  37. public String getOutput() {
  38. return output;
  39. }
  40. public void setOutput(String output) {
  41. this.output = output;
  42. }
  43. public String getDescription() {
  44. return description;
  45. }
  46. public void setDescription(String description) {
  47. this.description = description;
  48. }
  49. public Integer getSortOrder() {
  50. return sortOrder;
  51. }
  52. public void setSortOrder(Integer sortOrder) {
  53. this.sortOrder = sortOrder;
  54. }
  55. }