| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- package space.anyi.serve.entity.problem;
- import io.swagger.v3.oas.annotations.media.Schema;
- import jakarta.validation.constraints.NotNull;
- @Schema(description = "题目样例新增和修改使用的DTO")
- public class ProblemCaseDto {
- @Schema(description = "样例ID")
- private Long id;
- @NotNull(message = "所属题目ID不能为空")
- @Schema(description = "所属题目ID")
- private Long problemId;
- @Schema(description = "样例输入")
- private String input;
- @Schema(description = "样例输出")
- private String output;
- @Schema(description = "样例说明")
- private String description;
- @Schema(description = "显示顺序")
- private Integer sortOrder;
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public Long getProblemId() {
- return problemId;
- }
- public void setProblemId(Long problemId) {
- this.problemId = problemId;
- }
- public String getInput() {
- return input;
- }
- public void setInput(String input) {
- this.input = input;
- }
- public String getOutput() {
- return output;
- }
- public void setOutput(String output) {
- this.output = output;
- }
- public String getDescription() {
- return description;
- }
- public void setDescription(String description) {
- this.description = description;
- }
- public Integer getSortOrder() {
- return sortOrder;
- }
- public void setSortOrder(Integer sortOrder) {
- this.sortOrder = sortOrder;
- }
- }
|