1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- package com.example.onlinejudge.model.entity;
- import lombok.Data;
- import com.baomidou.mybatisplus.annotation.*;
- import java.util.Date;
- /**
- * 题目
- */
- @Data
- public class Question {
- /**
- * id
- */
- @TableId(type = IdType.ASSIGN_ID)
- private Long id;
- /**
- * 标题
- */
- private String title;
- /**
- * 内容
- */
- private String content;
- /**
- * 标签列表(json 数组)
- */
- private String tags;
- /**
- * 题目答案
- */
- private String answer;
- /**
- * 题目提交数
- */
- private Integer submitNum;
- /**
- * 题目通过数
- */
- private Integer acceptedNum;
- /**
- * 判题用例(json 数组)
- */
- private String judgeCase;
- /**
- * 判题配置(json 对象)
- */
- private String judgeConfig;
- /**
- * 点赞数
- */
- private Integer thumbNum;
- /**
- * 收藏数
- */
- private Integer favourNum;
- /**
- * 创建用户 id
- */
- private Long userId;
- /**
- * 创建时间
- */
- private Date createTime;
- /**
- * 更新时间
- */
- private Date updateTime;
- /**
- * 是否删除
- */
- @TableLogic
- private Integer isDelete;
- @TableField(exist = false)
- private static final long serialVersionUID = 1L;
- }
|