考试页面
parent
ef83c6b961
commit
b43c855735
@ -0,0 +1,30 @@
|
|||||||
|
package com.tz.platform.entity;
|
||||||
|
|
||||||
|
import com.vladmihalcea.hibernate.type.json.JsonStringType;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.hibernate.annotations.Type;
|
||||||
|
import org.hibernate.annotations.TypeDef;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@TypeDef(name = "json", typeClass = JsonStringType.class)
|
||||||
|
@Table(indexes = {@Index(columnList = "userId,competitionId,stageId")})
|
||||||
|
public class ExamAnwser {
|
||||||
|
/**
|
||||||
|
* 大赛ID_阶段ID_分组ID_用户ID_问题ID
|
||||||
|
*/
|
||||||
|
@Id
|
||||||
|
private String id;
|
||||||
|
private Long userId;
|
||||||
|
private Long competitionId;
|
||||||
|
private Integer stageId;
|
||||||
|
@Type(type = "json")
|
||||||
|
@Column(columnDefinition = "json")
|
||||||
|
private List<Integer> anwserId;
|
||||||
|
private Long score;
|
||||||
|
private Date updateTime;
|
||||||
|
}
|
@ -1,20 +0,0 @@
|
|||||||
package com.tz.platform.entity;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import javax.persistence.*;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Entity
|
|
||||||
@Data
|
|
||||||
@Table(indexes = {@Index(columnList = "competitionId")})
|
|
||||||
public class ExamPaper {
|
|
||||||
@Id
|
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
||||||
private Long id;
|
|
||||||
private Long competitionId;
|
|
||||||
private Integer stageId;
|
|
||||||
private Date startTime;
|
|
||||||
private Date endTime;
|
|
||||||
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
package com.tz.platform.repository;
|
|
||||||
|
|
||||||
import com.tz.platform.entity.ExamPaper;
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
@Repository
|
|
||||||
public interface ExamPaperDao extends JpaRepository<ExamPaper,Long> {
|
|
||||||
}
|
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.tz.platform.feign.exam.qo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class CacheQuetionQO {
|
||||||
|
private List<Long> ids;
|
||||||
|
private String key;
|
||||||
|
private Long ms;
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.tz.platform.api;
|
||||||
|
|
||||||
|
public class ExamApiController {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.tz.platform.api.dto;
|
||||||
|
|
||||||
|
public class ExamQuestionDTO {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.tz.platform.api.dto;
|
||||||
|
|
||||||
|
public class ListExamQuestionDTO {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.tz.platform.config;
|
||||||
|
|
||||||
|
public class RedisConfig {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.tz.platform.config;
|
||||||
|
|
||||||
|
public class TzRabbitConfig {
|
||||||
|
}
|
Loading…
Reference in New Issue