Question.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. package com.example.onlinejudge.model.entity;
  2. import lombok.Data;
  3. import com.baomidou.mybatisplus.annotation.*;
  4. import java.util.Date;
  5. /**
  6. * 题目
  7. */
  8. @Data
  9. public class Question {
  10. /**
  11. * id
  12. */
  13. @TableId(type = IdType.ASSIGN_ID)
  14. private Long id;
  15. /**
  16. * 标题
  17. */
  18. private String title;
  19. /**
  20. * 内容
  21. */
  22. private String content;
  23. /**
  24. * 标签列表(json 数组)
  25. */
  26. private String tags;
  27. /**
  28. * 题目答案
  29. */
  30. private String answer;
  31. /**
  32. * 题目提交数
  33. */
  34. private Integer submitNum;
  35. /**
  36. * 题目通过数
  37. */
  38. private Integer acceptedNum;
  39. /**
  40. * 判题用例(json 数组)
  41. */
  42. private String judgeCase;
  43. /**
  44. * 判题配置(json 对象)
  45. */
  46. private String judgeConfig;
  47. /**
  48. * 点赞数
  49. */
  50. private Integer thumbNum;
  51. /**
  52. * 收藏数
  53. */
  54. private Integer favourNum;
  55. /**
  56. * 创建用户 id
  57. */
  58. private Long userId;
  59. /**
  60. * 创建时间
  61. */
  62. private Date createTime;
  63. /**
  64. * 更新时间
  65. */
  66. private Date updateTime;
  67. /**
  68. * 是否删除
  69. */
  70. @TableLogic
  71. private Integer isDelete;
  72. @TableField(exist = false)
  73. private static final long serialVersionUID = 1L;
  74. }