Problem.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. package space.anyi.serve.entity.problem;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import java.time.LocalDateTime;
  7. @TableName("dev.problem")
  8. public class Problem {
  9. @TableId(type = IdType.AUTO)
  10. private Long id;
  11. private String title;
  12. private String description;
  13. @TableField("time_limit_ms")
  14. private Integer timeLimitMs;
  15. @TableField("memory_limit_mb")
  16. private Integer memoryLimitMb;
  17. @TableField("try_count")
  18. private Long tryCount;
  19. @TableField("accepted_count")
  20. private Long acceptedCount;
  21. @TableField("is_public")
  22. private Integer isPublic;
  23. private String difficulty;
  24. @TableField("created_by")
  25. private Long createdBy;
  26. @TableField("delete_flag")
  27. private Integer deleteFlag = 0;
  28. @TableField("created_at")
  29. private LocalDateTime createdAt;
  30. @TableField("updated_at")
  31. private LocalDateTime updatedAt;
  32. public Long getId() {
  33. return id;
  34. }
  35. public void setId(Long id) {
  36. this.id = id;
  37. }
  38. public String getTitle() {
  39. return title;
  40. }
  41. public void setTitle(String title) {
  42. this.title = title;
  43. }
  44. public String getDescription() {
  45. return description;
  46. }
  47. public void setDescription(String description) {
  48. this.description = description;
  49. }
  50. public Integer getTimeLimitMs() {
  51. return timeLimitMs;
  52. }
  53. public void setTimeLimitMs(Integer timeLimitMs) {
  54. this.timeLimitMs = timeLimitMs;
  55. }
  56. public Integer getMemoryLimitMb() {
  57. return memoryLimitMb;
  58. }
  59. public void setMemoryLimitMb(Integer memoryLimitMb) {
  60. this.memoryLimitMb = memoryLimitMb;
  61. }
  62. public Long getTryCount() {
  63. return tryCount;
  64. }
  65. public void setTryCount(Long tryCount) {
  66. this.tryCount = tryCount;
  67. }
  68. public Long getAcceptedCount() {
  69. return acceptedCount;
  70. }
  71. public void setAcceptedCount(Long acceptedCount) {
  72. this.acceptedCount = acceptedCount;
  73. }
  74. public Integer getIsPublic() {
  75. return isPublic;
  76. }
  77. public void setIsPublic(Integer isPublic) {
  78. this.isPublic = isPublic;
  79. }
  80. public String getDifficulty() {
  81. return difficulty;
  82. }
  83. public void setDifficulty(String difficulty) {
  84. this.difficulty = difficulty;
  85. }
  86. public Long getCreatedBy() {
  87. return createdBy;
  88. }
  89. public void setCreatedBy(Long createdBy) {
  90. this.createdBy = createdBy;
  91. }
  92. public Integer getDeleteFlag() {
  93. return deleteFlag;
  94. }
  95. public void setDeleteFlag(Integer deleteFlag) {
  96. this.deleteFlag = deleteFlag;
  97. }
  98. public LocalDateTime getCreatedAt() {
  99. return createdAt;
  100. }
  101. public void setCreatedAt(LocalDateTime createdAt) {
  102. this.createdAt = createdAt;
  103. }
  104. public LocalDateTime getUpdatedAt() {
  105. return updatedAt;
  106. }
  107. public void setUpdatedAt(LocalDateTime updatedAt) {
  108. this.updatedAt = updatedAt;
  109. }
  110. }