QuestionSubmit.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package com.example.onlinejudge.model.entity;
  2. import com.baomidou.mybatisplus.annotation.*;
  3. import lombok.Data;
  4. import java.util.Date;
  5. /**
  6. * 题目提交
  7. */
  8. @TableName(value ="question_submit")
  9. @Data
  10. public class QuestionSubmit {
  11. /**
  12. * id
  13. */
  14. @TableId(type = IdType.ASSIGN_ID)
  15. private Long id;
  16. /**
  17. * 编程语言
  18. */
  19. private String language;
  20. /**
  21. * 用户代码
  22. */
  23. private String code;
  24. /**
  25. * 判题信息(json 对象)
  26. */
  27. private String judgeInfo;
  28. /**
  29. * 判题状态(0 - 待判题、1 - 判题中、2 - 成功、3 - 失败)
  30. */
  31. private Integer status;
  32. /**
  33. * 题目 id
  34. */
  35. private Long questionId;
  36. /**
  37. * 创建用户 id
  38. */
  39. private Long userId;
  40. /**
  41. * 创建时间
  42. */
  43. private Date createTime;
  44. /**
  45. * 更新时间
  46. */
  47. private Date updateTime;
  48. /**
  49. * 是否删除
  50. */
  51. @TableLogic
  52. private Integer isDelete;
  53. @TableField(exist = false)
  54. private static final long serialVersionUID = 1L;
  55. }