parent
cf3285b9cd
commit
224a6f6752
@ -0,0 +1,10 @@
|
||||
# Getting Started
|
||||
|
||||
### Reference Documentation
|
||||
For further reference, please consider the following sections:
|
||||
|
||||
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
|
||||
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.2.11.RELEASE/maven-plugin/)
|
||||
* [Spring Configuration Processor](https://docs.spring.io/spring-boot/docs/2.3.5.RELEASE/reference/htmlsingle/#configuration-metadata-annotation-processor)
|
||||
* [Spring Boot DevTools](https://docs.spring.io/spring-boot/docs/2.3.5.RELEASE/reference/htmlsingle/#using-boot-devtools)
|
||||
|
@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="Spring" name="Spring">
|
||||
<configuration />
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_11">
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="jxjy-core" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.2.9.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.2.9.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.2.9.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.2.9.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.lettuce:lettuce-core:5.2.2.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.51.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.51.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.51.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.51.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.51.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.51.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.3.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-pool2:2.7.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.2.9.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.37" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.20.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.1.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.2.9.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.4.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.1.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: tk.mybatis:mapper:4.1.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.persistence:persistence-api:1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.qiniu:qiniu-java-sdk:7.2.29" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: com.squareup.okhttp3:okhttp:3.14.9" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: com.squareup.okio:okio:1.17.2" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: com.google.code.gson:gson:2.8.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.9" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.13" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.guava:guava:23.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:1.3.9" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.errorprone:error_prone_annotations:2.0.18" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.j2objc:j2objc-annotations:1.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.codehaus.mojo:animal-sniffer-annotations:1.14" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.auth0:java-jwt:3.3.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.10.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.10.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.10.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.13" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-httpclient:commons-httpclient:3.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.0.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.jdom:jdom:2.0.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alipay.sdk:alipay-sdk-java:4.9.9" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.50" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.62" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-autoconfigure:1.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.1.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.2.9.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.2.9.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.2.9.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.2.9.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.12.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.12.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.30" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.2.8.RELEASE" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.25" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.spring4all:swagger-spring-boot-starter:1.6.0.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-ui:2.7.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.7.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.reflections:reflections:0.9.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.javassist:javassist:3.21.0-GA" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger2:2.7.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.5.13" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.swagger:swagger-models:1.5.13" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-spi:2.7.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-core:2.7.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.10.13" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-schema:2.7.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.7.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.30" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.1.0.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-bean-validators:2.7.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.hc</groupId>
|
||||
<artifactId>jxjy-education</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>jxjy-business</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>jxjy-business</name>
|
||||
<description>Demo project for Spring Boot</description>
|
||||
|
||||
<properties>
|
||||
<java.version>11</java.version>
|
||||
<pagehelper.version>1.2.5</pagehelper.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.hc</groupId>
|
||||
<artifactId>jxjy-core</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.pagehelper</groupId>
|
||||
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
||||
<version>${pagehelper.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||||
<groupId>org.mybatis.spring.boot</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
||||
</project>
|
@ -0,0 +1,35 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @author 10696
|
||||
* @since 2020/11/25 10:41
|
||||
*/
|
||||
@Getter
|
||||
public class ClassCourseDto {
|
||||
|
||||
private Integer classCourseId;
|
||||
|
||||
private Integer classId;
|
||||
|
||||
private Integer courseId;
|
||||
|
||||
private Integer courseType;
|
||||
|
||||
private String courseName;
|
||||
|
||||
private String courseLogo;
|
||||
|
||||
private String courseDesc;
|
||||
|
||||
private Float courseHours;
|
||||
|
||||
private String courseTeacher;
|
||||
|
||||
private Integer isValid;
|
||||
|
||||
private String gallery;
|
||||
|
||||
private Integer reserved1;
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import com.hc.business.model.CourseChapterVideo;
|
||||
import com.hc.business.model.UserVideoPosition;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author 10696
|
||||
* @since 2020/11/25 10:41
|
||||
*/
|
||||
@Data
|
||||
public class CourseVideoDto {
|
||||
|
||||
private CourseChapterVideo video;
|
||||
private UserVideoPosition position;
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* @author 10696
|
||||
*/
|
||||
@Getter
|
||||
@ToString
|
||||
public class OrderInvoicesDto {
|
||||
|
||||
private Integer ordersId;
|
||||
|
||||
private String orderNo;
|
||||
|
||||
private Integer userId;
|
||||
|
||||
private Integer classId;
|
||||
|
||||
private Integer orderStatus;
|
||||
|
||||
private String body;
|
||||
|
||||
private String subject;
|
||||
|
||||
private Double totalAmount;
|
||||
|
||||
private Long createTime;
|
||||
|
||||
private Long overTime;
|
||||
|
||||
private String remark;
|
||||
|
||||
private Integer isDe;
|
||||
|
||||
private Integer userInvoicesId;
|
||||
|
||||
private String invoicesHead;
|
||||
|
||||
private Integer invoicesType;
|
||||
|
||||
private String invoicesCode;
|
||||
|
||||
private String invoicesBank;
|
||||
|
||||
private String invoicesUser;
|
||||
|
||||
private String invoicesNo;
|
||||
|
||||
private Double invoicesPrice;
|
||||
|
||||
private Integer status;
|
||||
|
||||
private Long time;
|
||||
|
||||
private String remarks;
|
||||
|
||||
private String remarksSign;
|
||||
|
||||
private String taxCode;
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class PaperAnswer implements Serializable{
|
||||
|
||||
private Integer questionId;
|
||||
|
||||
private List<Integer> answerId;
|
||||
|
||||
public Integer getQuestionId() {
|
||||
return questionId;
|
||||
}
|
||||
|
||||
public void setQuestionId(Integer questionId) {
|
||||
this.questionId = questionId;
|
||||
}
|
||||
|
||||
public List<Integer> getAnswerId() {
|
||||
return answerId;
|
||||
}
|
||||
|
||||
public void setAnswerId(List<Integer> answerId) {
|
||||
this.answerId = answerId;
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class PaperCommitDTO implements Serializable {
|
||||
|
||||
@NotNull(message = "用户id不可以为空")
|
||||
private Integer userId;
|
||||
|
||||
@NotNull(message = "试卷id不可以为空")
|
||||
private Integer paperId;
|
||||
|
||||
@NotNull(message = "班次id不可以为空")
|
||||
private Integer classId;
|
||||
|
||||
@NotNull(message = "考试时间不可以为空")
|
||||
private String testTime;
|
||||
|
||||
private List<PaperAnswer> answerList;
|
||||
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import com.hc.business.model.Paper;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author 10696
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class PaperResultDto {
|
||||
|
||||
private Paper paper;
|
||||
|
||||
private List<QuestionTypeDto> questionTypeDtoList;
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author 10696
|
||||
*/
|
||||
@Data
|
||||
public class QuestionTypeDto {
|
||||
|
||||
private String typeName;
|
||||
|
||||
private List<Integer> questionList;
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @author JIA
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class RetrievePasswordDto {
|
||||
|
||||
@NotNull(message = "手机号不可以为空")
|
||||
private String userMobile;
|
||||
|
||||
@NotNull(message = "短信回执不可以为空")
|
||||
private String sessionId;
|
||||
|
||||
@NotNull(message = "验证码不可以为空")
|
||||
private String code;
|
||||
|
||||
@NotNull(message = "新密码不可以为空")
|
||||
private String password;
|
||||
|
||||
private String userName;
|
||||
|
||||
private String userGender;
|
||||
|
||||
private String userCompany;
|
||||
|
||||
private String userEmail;
|
||||
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @author JIA
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class SmsLoginDto {
|
||||
|
||||
@NotNull(message = "手机号不可以为空")
|
||||
private String userMobile;
|
||||
|
||||
@NotNull(message = "短信回执不可以为空")
|
||||
private String sessionId;
|
||||
|
||||
@NotNull(message = "验证码不可以为空")
|
||||
private String code;
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author 10696
|
||||
* @since 2021/1/22 11:44
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class StaTimeTable {
|
||||
|
||||
private String clickDate;
|
||||
|
||||
private Integer countCreate;
|
||||
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import com.hc.business.model.Course;
|
||||
import com.hc.business.model.CourseChapterVideo;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author 10696
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class ThirdCourseDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -570784181035882992L;
|
||||
|
||||
private Course course;
|
||||
|
||||
private List<CourseChapterVideo> courseChapterVideoList;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
|
||||
/**
|
||||
* 用户课程表(TypeCourse)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:05:18
|
||||
*/
|
||||
@Getter
|
||||
public class TypeCourseDto {
|
||||
|
||||
private Integer courseTypeReId;
|
||||
|
||||
|
||||
private Integer courseId;
|
||||
|
||||
|
||||
private String courseName;
|
||||
|
||||
private String courseLogo;
|
||||
|
||||
|
||||
private Integer courseHours;
|
||||
private String courseTeacher;
|
||||
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 用户课程表(UserCourse)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:05:18
|
||||
*/
|
||||
@Getter
|
||||
public class UserCourseDto {
|
||||
|
||||
private Integer userCourseId;
|
||||
|
||||
private Integer userId;
|
||||
|
||||
private Integer courseId;
|
||||
|
||||
private Double coursePercent;
|
||||
|
||||
private String years;
|
||||
|
||||
private Integer classId;
|
||||
|
||||
private String courseName;
|
||||
|
||||
private String courseLogo;
|
||||
|
||||
private Integer courseType;
|
||||
|
||||
private Integer courseHours;
|
||||
private String courseTeacher;
|
||||
|
||||
// private String courseDesc;
|
||||
|
||||
// private Float courseHours;
|
||||
|
||||
//private String courseTeacher;
|
||||
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.Email;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 用户表(User)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:04:13
|
||||
*/
|
||||
@Getter
|
||||
public class UserListDto implements Serializable {
|
||||
|
||||
|
||||
|
||||
private Integer userId;
|
||||
|
||||
|
||||
private Integer userType;
|
||||
|
||||
|
||||
private String userName;
|
||||
|
||||
private String userMobile;
|
||||
|
||||
private String userEmail;
|
||||
|
||||
private String userGender;
|
||||
|
||||
|
||||
private String userCompany;
|
||||
|
||||
///订单编号
|
||||
private long orderNumber;
|
||||
//支付状态
|
||||
private int orderStatus;
|
||||
//支付时间
|
||||
private long orderTime;
|
||||
|
||||
//标题
|
||||
private String className;
|
||||
|
||||
//备注
|
||||
private String userReserved;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author 10696
|
||||
* @since 2021/1/26 10:51
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class UserPriceTotal {
|
||||
|
||||
private BigDecimal totalUserCount;
|
||||
|
||||
private BigDecimal todayUserCount;
|
||||
|
||||
private BigDecimal monthUserCount;
|
||||
|
||||
private BigDecimal yearUserCount;
|
||||
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @author 10696
|
||||
* @since 2020/12/6 11:50
|
||||
*/
|
||||
|
||||
@Getter
|
||||
public class UserStatusClassDto {
|
||||
|
||||
private Integer statusId;
|
||||
|
||||
private String className;
|
||||
|
||||
private Float totalHours;
|
||||
|
||||
private Long applyStartTime;
|
||||
|
||||
private Long applyEndTime;
|
||||
|
||||
private Long studyStartTime;
|
||||
|
||||
private Long studyEndTime;
|
||||
|
||||
private Long paperStartTime;
|
||||
|
||||
private Long paperEndTime;
|
||||
|
||||
private Long certStartTime;
|
||||
|
||||
private Long certEndTime;
|
||||
|
||||
private Integer classConfigId;
|
||||
|
||||
private Integer needPaper;
|
||||
|
||||
private Integer paperId;
|
||||
|
||||
private Integer userId;
|
||||
|
||||
private Integer status;
|
||||
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.hc.business.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author 10696
|
||||
* @since 2021/1/22 13:30
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class UserTimeTotal {
|
||||
|
||||
private Integer totalUserCount;
|
||||
|
||||
private Integer todayUserCount;
|
||||
|
||||
private Integer monthUserCount;
|
||||
|
||||
private Integer yearUserCount;
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.AreaDistrict;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 省份表(AreaDistrict)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-20 12:48:45
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface AreaDistrictMapper extends Mapper<AreaDistrict> {
|
||||
|
||||
/**
|
||||
* 依据parentId获取地区
|
||||
*
|
||||
* @param parentId 父级id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<AreaDistrict> queryAllByParentId(Integer parentId);
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.Banner;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 广告表
|
||||
* (Banner)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-26 09:29:48
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface BannerMapper extends Mapper<Banner> {
|
||||
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.ClassConfig;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 班次表(ClassConfig)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-19 16:12:30
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface ClassConfigMapper extends Mapper<ClassConfig> {
|
||||
|
||||
/**
|
||||
* 条件查询培训班
|
||||
*
|
||||
* @param valid 是否上线
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<ClassConfig> queryByValid(Integer valid);
|
||||
|
||||
/**
|
||||
* 地区id查询培训班
|
||||
*
|
||||
* @param areaId 地区id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<ClassConfig> queryByAreaId(Integer areaId);
|
||||
|
||||
/**
|
||||
* 培训班名称查询培训班
|
||||
*
|
||||
* @param name 培训班名称
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<ClassConfig> queryByClassName(String name);
|
||||
|
||||
/**
|
||||
* 依据开始时间查询班次
|
||||
*
|
||||
* @param studyStartTime
|
||||
* @return
|
||||
*/
|
||||
List<ClassConfig> queryByTime(Long studyStartTime);
|
||||
|
||||
/**
|
||||
* 获取全部的培训班
|
||||
*
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<ClassConfig> queryAll();
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.ClassConfigSponsor;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (ClassConfigSponsor)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2021-05-28 14:11:29
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface ClassConfigSponsorMapper extends Mapper<ClassConfigSponsor> {
|
||||
|
||||
/**
|
||||
* 获取班次主办方信息
|
||||
*
|
||||
* @param classId 班次id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<ClassConfigSponsor> queryListByClassId(Integer classId);
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.dto.ClassCourseDto;
|
||||
import com.hc.business.model.ClassCourse;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 班次课程表(ClassCourse)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-24 11:30:06
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface ClassCourseMapper extends Mapper<ClassCourse> {
|
||||
|
||||
/**
|
||||
* 查询班级课程
|
||||
*
|
||||
* @param classId 班级id
|
||||
* @param courseType 类别
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<ClassCourseDto> queryByClassId(@Param("classId") Integer classId,
|
||||
@Param("courseType") Integer courseType);
|
||||
|
||||
/**
|
||||
* 查询重复课程
|
||||
*
|
||||
* @param classId 班级id
|
||||
* @param courseId 课程id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<ClassCourse> queryByClassIdWithCourseId(@Param("classId") Integer classId,
|
||||
@Param("courseId") Integer courseId);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.CourseChapterAnnex;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 章节附件表(CourseChapterAnnex)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:04:49
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface CourseChapterAnnexMapper extends Mapper<CourseChapterAnnex> {
|
||||
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.CourseChapter;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 课程章节表(CourseChapter)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:04:47
|
||||
*/
|
||||
|
||||
|
||||
@Repository
|
||||
public interface CourseChapterMapper extends Mapper<CourseChapter> {
|
||||
|
||||
/**
|
||||
* 改版 william
|
||||
*
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
List<CourseChapter> getCourseChapterChildList(Map<String, Object> map);
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.CourseChapterTest;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
|
||||
/**
|
||||
* 章节测试表/随堂练习表(CourseChapterTest)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:04:53
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface CourseChapterTestMapper extends Mapper<CourseChapterTest> {
|
||||
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.CourseChapterVideo;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 课程视频(CourseChapterVideo)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:04:55
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface CourseChapterVideoMapper extends Mapper<CourseChapterVideo> {
|
||||
|
||||
/**
|
||||
* 获取章节下的所有视频
|
||||
*
|
||||
* @param chapterId 章节id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<CourseChapterVideo> selectVideoByChapterId(Integer chapterId);
|
||||
|
||||
/**
|
||||
* 获取图书下的所有视频
|
||||
*
|
||||
* @param courseId 课程id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<CourseChapterVideo> selectVideoByCourseId(Integer courseId);
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.Course;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 课程表(Course)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:04:45
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface CourseMapper extends Mapper<Course> {
|
||||
|
||||
/**
|
||||
* 查询所有的课程分类id
|
||||
*
|
||||
* @param typeId 分类id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<Course> queryByTypeId(Integer typeId);
|
||||
|
||||
/**
|
||||
* 依据老师名称获取课程
|
||||
*
|
||||
* @param name 老师名称
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<Course> queryTeacherName(String name);
|
||||
|
||||
/**
|
||||
* 依据课程名称获取课程
|
||||
*
|
||||
* @param name 课程名称
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<Course> queryCourseName(String name);
|
||||
|
||||
/**
|
||||
* 获取全部课程
|
||||
*
|
||||
* @param valid 是否上下架
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<Course> queryAll(Integer valid);
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.CourseType;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (CourseType)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-17 14:12:51
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface CourseTypeMapper extends Mapper<CourseType> {
|
||||
|
||||
/**
|
||||
* 查询课程分类
|
||||
*
|
||||
* @param courseName 课程分类名称
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<CourseType> queryAllByCourseName(String courseName);
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.CourseTypeRelation;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* (CourseTypeRelation)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2021-02-02 09:25:08
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface CourseTypeRelationMapper extends Mapper<CourseTypeRelation> {
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.News;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 新闻表
|
||||
* (News)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-20 11:48:36
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface NewsMapper extends Mapper<News> {
|
||||
|
||||
/**
|
||||
* 依据标签id查询news
|
||||
*
|
||||
* @param tagId 标签id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<News> queryByTagId(Integer tagId);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.NewsTag;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 新闻标签表(NewsTag)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-20 12:52:32
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface NewsTagMapper extends Mapper<NewsTag> {
|
||||
|
||||
/**
|
||||
* 分页查询多条数据
|
||||
*
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<NewsTag> queryAll();
|
||||
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.OrderUserLog;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (OrderUserLog)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-03 09:25:08
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface OrderUserLogMapper extends Mapper<OrderUserLog> {
|
||||
|
||||
/**
|
||||
* 依据订单id查询用户
|
||||
*
|
||||
* @param ordersId 订单id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<OrderUserLog> queryByOrderId(Integer ordersId);
|
||||
|
||||
/**
|
||||
* 依据用户id和订单id查询
|
||||
*
|
||||
* @param ordersId 订单id
|
||||
* @param userId 用户id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<OrderUserLog> queryByUserIdAndOrderId(@Param("ordersId") Integer ordersId,
|
||||
@Param("userId") Integer userId);
|
||||
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.dto.OrderInvoicesDto;
|
||||
import com.hc.business.model.Orders;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单表(Orders)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-26 16:46:42
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface OrdersMapper extends Mapper<Orders> {
|
||||
|
||||
/**
|
||||
* 依据订单编号获取订单信息
|
||||
*
|
||||
* @param orderNo 订单编号
|
||||
* @return 实例对象
|
||||
*/
|
||||
Orders queryByOrderNo(String orderNo);
|
||||
|
||||
/**
|
||||
* 依据用户id 查询
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<Orders> queryAllByUserId(Integer userId);
|
||||
|
||||
/**
|
||||
* 用户 查询多条数据
|
||||
*
|
||||
* @param classId 班次id
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<Orders> queryAllByClassId(Integer classId);
|
||||
|
||||
/**
|
||||
* 用户 查询多条数据
|
||||
*
|
||||
* @param className 班次名称
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<Orders> queryAllByClassName(String className);
|
||||
|
||||
/**
|
||||
* 用户 查询多条数据
|
||||
*
|
||||
* @param status 订单状态
|
||||
* @return 对象列表
|
||||
*/
|
||||
List<Orders> queryAllByStatus(Integer status);
|
||||
|
||||
/**
|
||||
* 依据发票id查询
|
||||
*
|
||||
* @param userInvoicesId 发票id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<Orders> queryByUserInvoicesId(Integer userInvoicesId);
|
||||
|
||||
/**
|
||||
* 查询总金额
|
||||
*
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
BigDecimal countPrice();
|
||||
|
||||
/**
|
||||
* 当天订单金额
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
BigDecimal queryToday();
|
||||
|
||||
/**
|
||||
* 当月订单金额
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
BigDecimal queryMonth();
|
||||
|
||||
/**
|
||||
* 当年订单金额
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
BigDecimal queryYear();
|
||||
|
||||
/**
|
||||
* 获取订单数量
|
||||
*
|
||||
* @return 实例对象
|
||||
*/
|
||||
Integer countOrderTotal();
|
||||
|
||||
|
||||
/**
|
||||
* 查询有效的发票和订单
|
||||
*
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<OrderInvoicesDto> queryAllWithInvoices();
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.Paper;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 试卷表(Paper)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-07 11:34:34
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface PaperMapper extends Mapper<Paper> {
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.PaperQuestion;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 随机试卷问题表(PaperQuestion)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-07 11:35:11
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface PaperQuestionMapper extends Mapper<PaperQuestion> {
|
||||
|
||||
/**
|
||||
* 依据试卷id获取抽题规则
|
||||
*
|
||||
* @param paperId 试卷id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<PaperQuestion> queryByPaperId(Integer paperId);
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.QuestionAnswer;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 问题答案表(QuestionAnswer)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-07 11:36:19
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface QuestionAnswerMapper extends Mapper<QuestionAnswer> {
|
||||
|
||||
/**
|
||||
* 获取习题答案
|
||||
*
|
||||
* @param questionId 试题id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<QuestionAnswer> queryByQuestionId(Integer questionId);
|
||||
|
||||
/**
|
||||
* 依据试题id获取答案id
|
||||
*
|
||||
* @param questionId 试题id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<Integer> selectAnswerIdListByQuestionId(Integer questionId);
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.Question;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 习题表(Question)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-07 11:35:55
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface QuestionMapper extends Mapper<Question> {
|
||||
|
||||
|
||||
/**
|
||||
* 依据主键获取题目
|
||||
*
|
||||
* @param questionId 题目id
|
||||
* @return 实例对象
|
||||
*/
|
||||
Question queryById(Integer questionId);
|
||||
|
||||
|
||||
/**
|
||||
* 获取全部习题
|
||||
*
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<Question> queryQuestions();
|
||||
|
||||
|
||||
/**
|
||||
* 获取习题id
|
||||
*
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<Integer> queryByTagId(@Param("questionType") Integer questionType,
|
||||
@Param("questionLevel") Integer questionLevel,
|
||||
@Param("questionTagId") Integer questionTagId);
|
||||
|
||||
|
||||
|
||||
List<Integer> queryTagId(@Param("questionTagId") Integer questionTagId);
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.QuestionTag;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 问题标签表(QuestionTag)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-07 11:36:39
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface QuestionTagMapper extends Mapper<QuestionTag> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.QuestionType;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 问题类型表(QuestionType)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-07 11:37:00
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface QuestionTypeMapper extends Mapper<QuestionType> {
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.Course;
|
||||
import com.hc.business.model.ThirdCourse;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 第三方用户课程配置表(ThirdCourse)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-06-17 17:29:30
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface ThirdCourseMapper extends Mapper<ThirdCourse> {
|
||||
|
||||
/**
|
||||
* 获取课程
|
||||
*
|
||||
* @param thirdId 第三方主键
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<Course> queryThreadCourse(Integer thirdId);
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.Third;
|
||||
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 第三方用户表(Third)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-06-17 17:29:30
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface ThirdMapper extends Mapper<Third> {
|
||||
|
||||
/**
|
||||
* 依据token 获取第三方信息
|
||||
*
|
||||
* @param token 校验码
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<Third> queryThirdByToken(String token);
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.UserAdmin;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 管理员表(UserAdmin)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-16 13:45:04
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface UserAdminMapper extends Mapper<UserAdmin> {
|
||||
|
||||
/**
|
||||
* 依据用户名查找管理员
|
||||
*
|
||||
* @param adminAccount 用户名
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserAdmin> selectUserAdmin(String adminAccount);
|
||||
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.UserAdvise;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户建议表
|
||||
* (UserAdvise)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-16 14:20:02
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface UserAdviseMapper extends Mapper<UserAdvise> {
|
||||
|
||||
/**
|
||||
* 依据用户id查询建议
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserAdvise> queryAllByUserId(Integer userId);
|
||||
|
||||
/**
|
||||
* 依据类别id查询建议
|
||||
*
|
||||
* @param adviceType 类别id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserAdvise> queryAllByAdviceType(Integer adviceType);
|
||||
|
||||
/**
|
||||
* 查询所有意见信息
|
||||
*
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserAdvise> queryAll();
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.dto.UserCourseDto;
|
||||
import com.hc.business.model.UserCourse;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户课程表(UserCourse)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:05:19
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface UserCourseMapper extends Mapper<UserCourse> {
|
||||
|
||||
/**
|
||||
* 依据用户id 和培训班id 获取用户课程以及进度
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserCourseDto> selectUserCourseList(@Param("userId") Integer userId,
|
||||
@Param("classId") Integer classId);
|
||||
|
||||
/**
|
||||
* 依据用户id 和培训班id 获取用户课程
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @param classId 班级id
|
||||
* @return 实力对象数组
|
||||
*/
|
||||
List<UserCourse> selectUserCourseListByParam(@Param("userId") Integer userId,
|
||||
@Param("classId") Integer classId);
|
||||
|
||||
/**
|
||||
* 依据用户id 和培训班id,课程id获取某个课程进度 获取用户课程以及进度
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserCourseDto> selectUserCourseProgress(@Param("userId") Integer userId,
|
||||
@Param("classId") Integer classId,
|
||||
@Param("courseId") Integer courseId);
|
||||
|
||||
/**
|
||||
* 用户课程
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @param classId 班级id
|
||||
* @param courseId 课程id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserCourse> selectUserCourse(@Param("userId") Integer userId,
|
||||
@Param("classId") Integer classId,
|
||||
@Param("courseId") Integer courseId);
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.UserInvoices;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户发票表(UserInvoices)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-02 10:50:34
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface UserInvoicesMapper extends Mapper<UserInvoices> {
|
||||
|
||||
/**
|
||||
* 获取用户发票信息
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserInvoices> queryDetailByUserId(Integer userId);
|
||||
|
||||
/**
|
||||
* 查询有效发票
|
||||
*
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserInvoices> queryAll();
|
||||
|
||||
/**
|
||||
* 获取班次发票信息
|
||||
*
|
||||
* @param classId 班次id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserInvoices> queryByClassId(Integer classId);
|
||||
|
||||
/**
|
||||
* 获取状态获取发票信息
|
||||
*
|
||||
* @param status 状态
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserInvoices> queryByStatus(Integer status);
|
||||
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.dto.StaTimeTable;
|
||||
import com.hc.business.dto.UserListDto;
|
||||
import com.hc.business.model.User;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户表(User)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:04:14
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface UserMapper extends Mapper<User> {
|
||||
|
||||
/**
|
||||
* 手机号查询用户
|
||||
*
|
||||
* @param userMobile 手机号
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<User> queryUserByMobile(String userMobile);
|
||||
|
||||
/**
|
||||
* 身份证号查询用户
|
||||
*
|
||||
* @param cardId 身份证号
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<User> queryOneByCardId(String cardId);
|
||||
|
||||
/**
|
||||
* 姓名查询用户
|
||||
*
|
||||
* @param name 身份证号
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<User> queryUserByName(String name);
|
||||
|
||||
|
||||
/**
|
||||
* 姓名查询用户
|
||||
*
|
||||
* @param name 身份证号
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserListDto> queryUserByClassName(@Param("name")String name);
|
||||
|
||||
/**
|
||||
* 姓名查询用户
|
||||
*
|
||||
* @param name 身份证号
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserListDto> queryUserByClassNameAndPay(@Param("name")String name);
|
||||
|
||||
/**
|
||||
* 获取最近七天用户统计数量
|
||||
*
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<StaTimeTable> queryByUserCount();
|
||||
|
||||
/**
|
||||
* 当天注册用户
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
Integer queryToday();
|
||||
|
||||
/**
|
||||
* 当月注册用户
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
Integer queryMonth();
|
||||
|
||||
/**
|
||||
* 当年注册用户
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
Integer queryYear();
|
||||
|
||||
/**
|
||||
* 用户总数
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
int queryTotal();
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.UserRefundHistory;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
|
||||
/**
|
||||
* 用户退款记录表(UserRefundHistory)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-10 11:31:38
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface UserRefundHistoryMapper extends Mapper<UserRefundHistory> {
|
||||
|
||||
/**
|
||||
* 依据订单号查询退货单
|
||||
*
|
||||
* @param orderNo 订单号
|
||||
* @return 实例对象
|
||||
*/
|
||||
UserRefundHistory queryByOrderNo(String orderNo);
|
||||
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.dto.UserStatusClassDto;
|
||||
import com.hc.business.model.User;
|
||||
import com.hc.business.model.UserStatus;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户班级学习进度表
|
||||
* (UserStatus)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-06 11:26:42
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface UserStatusMapper extends Mapper<UserStatus> {
|
||||
|
||||
/**
|
||||
* 查询用户培训记录
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserStatusClassDto> queryDtoByUserId(Integer userId);
|
||||
|
||||
|
||||
/**
|
||||
* 查询用户状态
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserStatus> queryByUserId(Integer userId);
|
||||
|
||||
|
||||
/**
|
||||
* 查询用户状态
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @param classId 班次id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserStatus> queryByClassIdAndUserId(@Param("classId") Integer classId,
|
||||
@Param("userId") Integer userId);
|
||||
|
||||
/**
|
||||
* 查询用户状态
|
||||
*
|
||||
* @param classId 班次id
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<User> queryByClassId(Integer classId);
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.UserTeacher;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* (UserTeacher)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-20 11:08:18
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface UserTeacherMapper extends Mapper<UserTeacher> {
|
||||
|
||||
/**
|
||||
* 依据老师名称查询老师
|
||||
*
|
||||
* @param name 老师名称
|
||||
* @return 实例对象数组
|
||||
*/
|
||||
List<UserTeacher> queryByName(String name);
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.UserTestHistory;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 用户考试记录表(UserTestHistory)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-07 11:28:18
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface UserTestHistoryMapper extends Mapper<UserTestHistory> {
|
||||
|
||||
/**
|
||||
* 获取当前最高成绩
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @param classId 班次id
|
||||
* @return 实例对象
|
||||
*/
|
||||
UserTestHistory queryMaxScore(Integer userId, Integer classId);
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.hc.business.mapper;
|
||||
|
||||
import com.hc.business.model.UserVideoPosition;
|
||||
import com.hc.core.utils.mapper.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户视频观看记录(UserVideoPosition)表数据库访问层
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-05-29 15:50:50
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface UserVideoPositionMapper extends Mapper<UserVideoPosition>{
|
||||
|
||||
/**
|
||||
* 查询视频观看记录
|
||||
*
|
||||
* @param videoId
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
List<UserVideoPosition> selectUserPositionByUserAndVideo(@Param("videoId") Integer videoId,
|
||||
@Param("userId") Integer userId);
|
||||
|
||||
}
|
@ -0,0 +1,143 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Transient;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 省份表(AreaDistrict)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-20 12:48:44
|
||||
*/
|
||||
|
||||
@ApiModel(value = "地区表")
|
||||
public class AreaDistrict implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -60609528264342036L;
|
||||
|
||||
/**
|
||||
* 地区编号
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "地区编号")
|
||||
private Integer areaId;
|
||||
|
||||
/**
|
||||
* 地区名称
|
||||
*/
|
||||
@ApiModelProperty(value = "地区名称", required = true)
|
||||
@NotNull
|
||||
private String areaName;
|
||||
|
||||
/**
|
||||
* 父级编号
|
||||
*/
|
||||
@ApiModelProperty(value = "父级编号", required = true)
|
||||
@NotNull
|
||||
private Integer parentId;
|
||||
|
||||
/**
|
||||
* 省级配图
|
||||
*/
|
||||
@ApiModelProperty(value = "省级配图", required = true)
|
||||
private String areaImage;
|
||||
|
||||
/**
|
||||
* 地区状态 0/锁定 1/开放
|
||||
*/
|
||||
@ApiModelProperty(value = "地区状态 0/锁定 1/开放", required = true)
|
||||
private Integer areaStatus;
|
||||
|
||||
/**
|
||||
* 地区索引
|
||||
*/
|
||||
@ApiModelProperty(value = "地区索引", required = true)
|
||||
@NotNull
|
||||
private Integer areaIndex;
|
||||
|
||||
/**
|
||||
* 构造的
|
||||
*/
|
||||
@Transient
|
||||
private List<AreaDistrict> areaDistrictList;
|
||||
|
||||
public AreaDistrict(Integer areaId, @NotNull String areaName,
|
||||
@NotNull Integer parentId, String areaImage,
|
||||
Integer areaStatus, @NotNull Integer areaIndex) {
|
||||
this.areaId = areaId;
|
||||
this.areaName = areaName;
|
||||
this.parentId = parentId;
|
||||
this.areaImage = areaImage;
|
||||
this.areaStatus = areaStatus;
|
||||
this.areaIndex = areaIndex;
|
||||
}
|
||||
|
||||
public AreaDistrict() {
|
||||
}
|
||||
|
||||
public Integer getAreaId() {
|
||||
return areaId;
|
||||
}
|
||||
|
||||
public void setAreaId(Integer areaId) {
|
||||
this.areaId = areaId;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public Integer getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(Integer parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getAreaImage() {
|
||||
return areaImage;
|
||||
}
|
||||
|
||||
public void setAreaImage(String areaImage) {
|
||||
this.areaImage = areaImage;
|
||||
}
|
||||
|
||||
public Integer getAreaStatus() {
|
||||
return areaStatus;
|
||||
}
|
||||
|
||||
public void setAreaStatus(Integer areaStatus) {
|
||||
this.areaStatus = areaStatus;
|
||||
}
|
||||
|
||||
public Integer getAreaIndex() {
|
||||
return areaIndex;
|
||||
}
|
||||
|
||||
public void setAreaIndex(Integer areaIndex) {
|
||||
this.areaIndex = areaIndex;
|
||||
}
|
||||
|
||||
public List<AreaDistrict> getAreaDistrictList() {
|
||||
return areaDistrictList;
|
||||
}
|
||||
|
||||
public void setAreaDistrictList(List<AreaDistrict> areaDistrictList) {
|
||||
this.areaDistrictList = areaDistrictList;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author jia
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "班次图章表")
|
||||
public class ClassConfigSponsor implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 961577731337873266L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键", required = true)
|
||||
private Integer sponsorId;
|
||||
|
||||
/**
|
||||
* 主办方图章地址
|
||||
*/
|
||||
@ApiModelProperty(value = "主办方图章地址", required = true)
|
||||
private String sponsorUrl;
|
||||
|
||||
/**
|
||||
* 主板方名称
|
||||
*/
|
||||
@ApiModelProperty(value = "主板方名称", required = true)
|
||||
private String sponsorName;
|
||||
|
||||
/**
|
||||
* 班次id
|
||||
*/
|
||||
@ApiModelProperty(value = "班次id", required = true)
|
||||
@NotNull
|
||||
private Integer classId;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
@ApiModelProperty(value = "排序", required = true)
|
||||
private Integer sponsorIndex;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间", required = true)
|
||||
private Long createTime;
|
||||
}
|
@ -0,0 +1,165 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Transient;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 课程章节表(CourseChapter)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:04:47
|
||||
*/
|
||||
|
||||
|
||||
@ApiModel(value = "章节表")
|
||||
public class CourseChapter implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 873871660383226119L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Integer courseChapterId;
|
||||
|
||||
/**
|
||||
* 章节名字
|
||||
*/
|
||||
@ApiModelProperty(value = "章节名字", required = true)
|
||||
@NotNull
|
||||
private String chapterName;
|
||||
|
||||
/**
|
||||
* 父节点ID
|
||||
*/
|
||||
@ApiModelProperty(value = "父节点ID", required = true)
|
||||
@NotNull
|
||||
private Integer parentId;
|
||||
|
||||
/**
|
||||
* 章节层级
|
||||
*/
|
||||
@ApiModelProperty(value = "章节层级", required = true)
|
||||
@NotNull
|
||||
private Integer chapterLevel;
|
||||
|
||||
/**
|
||||
* 课程ID
|
||||
*/
|
||||
@ApiModelProperty(value = "课程ID", required = true)
|
||||
@NotNull
|
||||
private Integer courseId;
|
||||
|
||||
/**
|
||||
* 构造
|
||||
*/
|
||||
@Transient
|
||||
private List<CourseChapter> childChapter;
|
||||
|
||||
@Transient
|
||||
private CourseChapterVideo chapterVideo;
|
||||
|
||||
@Transient
|
||||
private CourseChapterAnnex courseChapterAnnex;
|
||||
|
||||
@Transient
|
||||
private UserVideoPosition userVideoPosition;
|
||||
|
||||
public CourseChapter(Integer courseChapterId, @NotNull String chapterName,
|
||||
@NotNull Integer parentId,
|
||||
@NotNull Integer chapterLevel,
|
||||
@NotNull Integer courseId) {
|
||||
this.courseChapterId = courseChapterId;
|
||||
this.chapterName = chapterName;
|
||||
this.parentId = parentId;
|
||||
this.chapterLevel = chapterLevel;
|
||||
this.courseId = courseId;
|
||||
}
|
||||
|
||||
public CourseChapter() {
|
||||
}
|
||||
|
||||
public Integer getCourseChapterId() {
|
||||
return courseChapterId;
|
||||
}
|
||||
|
||||
public void setCourseChapterId(Integer courseChapterId) {
|
||||
this.courseChapterId = courseChapterId;
|
||||
}
|
||||
|
||||
public String getChapterName() {
|
||||
return chapterName;
|
||||
}
|
||||
|
||||
public void setChapterName(String chapterName) {
|
||||
this.chapterName = chapterName;
|
||||
}
|
||||
|
||||
public Integer getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(Integer parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Integer getChapterLevel() {
|
||||
return chapterLevel;
|
||||
}
|
||||
|
||||
public void setChapterLevel(Integer chapterLevel) {
|
||||
this.chapterLevel = chapterLevel;
|
||||
}
|
||||
|
||||
public Integer getCourseId() {
|
||||
return courseId;
|
||||
}
|
||||
|
||||
public void setCourseId(Integer courseId) {
|
||||
this.courseId = courseId;
|
||||
}
|
||||
|
||||
public List<CourseChapter> getChildChapter() {
|
||||
return childChapter;
|
||||
}
|
||||
|
||||
public void setChildChapter(List<CourseChapter> childChapter) {
|
||||
this.childChapter = childChapter;
|
||||
}
|
||||
|
||||
public CourseChapterVideo getChapterVideo() {
|
||||
return chapterVideo;
|
||||
}
|
||||
|
||||
public void setChapterVideo(CourseChapterVideo chapterVideo) {
|
||||
this.chapterVideo = chapterVideo;
|
||||
}
|
||||
|
||||
public CourseChapterAnnex getCourseChapterAnnex() {
|
||||
return courseChapterAnnex;
|
||||
}
|
||||
|
||||
public void setCourseChapterAnnex(CourseChapterAnnex courseChapterAnnex) {
|
||||
this.courseChapterAnnex = courseChapterAnnex;
|
||||
}
|
||||
|
||||
public UserVideoPosition getUserVideoPosition() {
|
||||
return userVideoPosition;
|
||||
}
|
||||
|
||||
public void setUserVideoPosition(UserVideoPosition userVideoPosition) {
|
||||
this.userVideoPosition = userVideoPosition;
|
||||
}
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 章节附件表(CourseChapterAnnex)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:04:48
|
||||
*/
|
||||
|
||||
|
||||
@ApiModel(value = "章节附件表")
|
||||
public class CourseChapterAnnex implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 282553089268625985L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Integer courseChapterAnnexId;
|
||||
|
||||
/**
|
||||
* 附件名字
|
||||
*/
|
||||
@ApiModelProperty(value = "附件名字", required = true)
|
||||
@NotNull
|
||||
private String annexName;
|
||||
|
||||
/**
|
||||
* 章节ID
|
||||
*/
|
||||
@ApiModelProperty(value = "章节ID", required = true)
|
||||
@NotNull
|
||||
private Integer courseChapterId;
|
||||
|
||||
/**
|
||||
* 介绍
|
||||
*/
|
||||
@ApiModelProperty(value = "介绍", required = true)
|
||||
@NotNull
|
||||
private String annexIntroduction;
|
||||
|
||||
/**
|
||||
* 附件地址
|
||||
*/
|
||||
@ApiModelProperty(value = "附件地址", required = true)
|
||||
@NotNull
|
||||
private String annexUrl;
|
||||
|
||||
public CourseChapterAnnex(Integer courseChapterAnnexId, @NotNull String annexName,
|
||||
@NotNull Integer courseChapterId,
|
||||
@NotNull String annexIntroduction, @NotNull String annexUrl) {
|
||||
this.courseChapterAnnexId = courseChapterAnnexId;
|
||||
this.annexName = annexName;
|
||||
this.courseChapterId = courseChapterId;
|
||||
this.annexIntroduction = annexIntroduction;
|
||||
this.annexUrl = annexUrl;
|
||||
}
|
||||
|
||||
public CourseChapterAnnex() {
|
||||
}
|
||||
|
||||
public Integer getCourseChapterAnnexId() {
|
||||
return courseChapterAnnexId;
|
||||
}
|
||||
|
||||
public void setCourseChapterAnnexId(Integer courseChapterAnnexId) {
|
||||
this.courseChapterAnnexId = courseChapterAnnexId;
|
||||
}
|
||||
|
||||
public String getAnnexName() {
|
||||
return annexName;
|
||||
}
|
||||
|
||||
public void setAnnexName(String annexName) {
|
||||
this.annexName = annexName;
|
||||
}
|
||||
|
||||
public Integer getCourseChapterId() {
|
||||
return courseChapterId;
|
||||
}
|
||||
|
||||
public void setCourseChapterId(Integer courseChapterId) {
|
||||
this.courseChapterId = courseChapterId;
|
||||
}
|
||||
|
||||
public String getAnnexIntroduction() {
|
||||
return annexIntroduction;
|
||||
}
|
||||
|
||||
public void setAnnexIntroduction(String annexIntroduction) {
|
||||
this.annexIntroduction = annexIntroduction;
|
||||
}
|
||||
|
||||
public String getAnnexUrl() {
|
||||
return annexUrl;
|
||||
}
|
||||
|
||||
public void setAnnexUrl(String annexUrl) {
|
||||
this.annexUrl = annexUrl;
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* (CourseType)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-17 14:12:49
|
||||
*/
|
||||
|
||||
@ApiModel(value = "课程分类表")
|
||||
public class CourseType implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -74761225011108876L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer courseTypeId;
|
||||
|
||||
/**
|
||||
* 课程分类名称
|
||||
*/
|
||||
@ApiModelProperty(value = "课程分类名称", required = true)
|
||||
@NotNull
|
||||
private String courseName;
|
||||
|
||||
|
||||
public CourseType(Integer courseTypeId, String courseName) {
|
||||
this.courseTypeId = courseTypeId;
|
||||
this.courseName = courseName;
|
||||
}
|
||||
|
||||
public CourseType() {
|
||||
}
|
||||
|
||||
public Integer getCourseTypeId() {
|
||||
return courseTypeId;
|
||||
}
|
||||
|
||||
public void setCourseTypeId(Integer courseTypeId) {
|
||||
this.courseTypeId = courseTypeId;
|
||||
}
|
||||
|
||||
public String getCourseName() {
|
||||
return courseName;
|
||||
}
|
||||
|
||||
public void setCourseName(String courseName) {
|
||||
this.courseName = courseName;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* (CourseTypeRelation)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2021-02-02 09:25:06
|
||||
*/
|
||||
|
||||
@ApiModel(value = "课程类别关系表")
|
||||
public class CourseTypeRelation implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -48750814361274136L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Integer courseTypeReId;
|
||||
|
||||
/**
|
||||
* 课程id
|
||||
*/
|
||||
@ApiModelProperty(value = "课程id", required = true)
|
||||
private Integer courseId;
|
||||
|
||||
/**
|
||||
* 类别id
|
||||
*/
|
||||
@ApiModelProperty(value = "类别id", required = true)
|
||||
private Integer courseTypeId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Long createTime;
|
||||
|
||||
public CourseTypeRelation(Integer courseTypeReId, Integer courseId, Integer courseTypeId, Long createTime) {
|
||||
this.courseTypeReId = courseTypeReId;
|
||||
this.courseId = courseId;
|
||||
this.courseTypeId = courseTypeId;
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public CourseTypeRelation() {
|
||||
}
|
||||
|
||||
public Integer getCourseTypeReId() {
|
||||
return courseTypeReId;
|
||||
}
|
||||
|
||||
public void setCourseTypeReId(Integer courseTypeReId) {
|
||||
this.courseTypeReId = courseTypeReId;
|
||||
}
|
||||
|
||||
public Integer getCourseId() {
|
||||
return courseId;
|
||||
}
|
||||
|
||||
public void setCourseId(Integer courseId) {
|
||||
this.courseId = courseId;
|
||||
}
|
||||
|
||||
public Integer getCourseTypeId() {
|
||||
return courseTypeId;
|
||||
}
|
||||
|
||||
public void setCourseTypeId(Integer courseTypeId) {
|
||||
this.courseTypeId = courseTypeId;
|
||||
}
|
||||
|
||||
public Long getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 新闻表
|
||||
* (News)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-20 11:48:34
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "资讯表")
|
||||
public class News implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -39295514485939079L;
|
||||
|
||||
|
||||
/**
|
||||
* 新闻id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "新闻id")
|
||||
private Integer newsId;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
@ApiModelProperty(value = "标题", required = true)
|
||||
@NotNull
|
||||
private String newsTitle;
|
||||
|
||||
/**
|
||||
* 标题配图
|
||||
*/
|
||||
@ApiModelProperty(value = "标题配图", required = true)
|
||||
@NotNull
|
||||
private String newsLogo;
|
||||
|
||||
/**
|
||||
* 新闻内容
|
||||
*/
|
||||
@ApiModelProperty(value = "新闻内容", required = true)
|
||||
@NotNull
|
||||
private String newsContent;
|
||||
|
||||
/**
|
||||
* 新闻时间
|
||||
*/
|
||||
@ApiModelProperty(value = "新闻时间")
|
||||
private Long createTime;
|
||||
|
||||
/**
|
||||
* 新闻类别
|
||||
*/
|
||||
@ApiModelProperty(value = "新闻类别")
|
||||
|
||||
private Integer tagId;
|
||||
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 新闻标签表(NewsTag)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-20 13:13:47
|
||||
*/
|
||||
|
||||
@ApiModel(value = "资讯标签表")
|
||||
public class NewsTag implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -31343210313614099L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Integer tagId;
|
||||
|
||||
/**
|
||||
* 类别名称
|
||||
*/
|
||||
@ApiModelProperty(value = "类别名称", required = true)
|
||||
@NotNull
|
||||
private String tagName;
|
||||
|
||||
public NewsTag(Integer tagId, @NotNull String tagName) {
|
||||
this.tagId = tagId;
|
||||
this.tagName = tagName;
|
||||
}
|
||||
|
||||
public NewsTag() {
|
||||
}
|
||||
|
||||
public Integer getTagId() {
|
||||
return tagId;
|
||||
}
|
||||
|
||||
public void setTagId(Integer tagId) {
|
||||
this.tagId = tagId;
|
||||
}
|
||||
|
||||
public String getTagName() {
|
||||
return tagName;
|
||||
}
|
||||
|
||||
public void setTagName(String tagName) {
|
||||
this.tagName = tagName;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* (OrderUserLog)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-03 09:25:07
|
||||
*/
|
||||
|
||||
@ApiModel(value = "订单详情表")
|
||||
public class OrderUserLog implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 666133974894655590L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer orderLogId;
|
||||
|
||||
/**
|
||||
* 订单id
|
||||
*/
|
||||
@ApiModelProperty(value = "订单id", required = true)
|
||||
@NotNull
|
||||
private Integer orderId;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户id", required = true)
|
||||
@NotNull
|
||||
private Integer reUserId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Long createTime;
|
||||
|
||||
public OrderUserLog(Integer orderLogId, @NotNull Integer orderId,
|
||||
@NotNull Integer reUserId, Long createTime) {
|
||||
this.orderLogId = orderLogId;
|
||||
this.orderId = orderId;
|
||||
this.reUserId = reUserId;
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public OrderUserLog() {
|
||||
}
|
||||
|
||||
public Integer getOrderLogId() {
|
||||
return orderLogId;
|
||||
}
|
||||
|
||||
public void setOrderLogId(Integer orderLogId) {
|
||||
this.orderLogId = orderLogId;
|
||||
}
|
||||
|
||||
public Integer getOrderId() {
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderId(Integer orderId) {
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Integer getReUserId() {
|
||||
return reUserId;
|
||||
}
|
||||
|
||||
public void setReUserId(Integer reUserId) {
|
||||
this.reUserId = reUserId;
|
||||
}
|
||||
|
||||
public Long getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,259 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import tk.mybatis.mapper.annotation.Order;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 订单表(Orders)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-26 16:46:40
|
||||
*/
|
||||
|
||||
@ApiModel(value = "订单表")
|
||||
public class Orders implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 204802189701833123L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
@Order("DESC")
|
||||
private Integer ordersId;
|
||||
|
||||
/**
|
||||
* 订单号
|
||||
*/
|
||||
@ApiModelProperty(value = "订单号")
|
||||
@NotBlank
|
||||
private String orderNo;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户id", required = true)
|
||||
@NotNull
|
||||
private Integer userId;
|
||||
|
||||
/**
|
||||
* 班级id
|
||||
*/
|
||||
@ApiModelProperty(value = "班级id", required = true)
|
||||
@NotNull
|
||||
private Integer classId;
|
||||
|
||||
/**
|
||||
* 订单状态
|
||||
*/
|
||||
@ApiModelProperty(value = "订单状态 0 未支付 1 已支付 2 已退款")
|
||||
private Integer orderStatus;
|
||||
|
||||
/**
|
||||
* 商品介绍
|
||||
*/
|
||||
@ApiModelProperty(value = "商品介绍", required = true)
|
||||
@NotNull
|
||||
private String body;
|
||||
|
||||
/**
|
||||
* 订单名称
|
||||
*/
|
||||
@ApiModelProperty(value = "订单名称", required = true)
|
||||
@NotNull
|
||||
private String subject;
|
||||
|
||||
/**
|
||||
* 订单总金额
|
||||
*/
|
||||
@ApiModelProperty(value = "订单总金额", required = true)
|
||||
@NotNull
|
||||
private Double totalAmount;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Long createTime;
|
||||
|
||||
/**
|
||||
* 支付宝交易号
|
||||
*/
|
||||
@ApiModelProperty(value = "支付宝交易号")
|
||||
private String tradeNo;
|
||||
|
||||
/**
|
||||
* 失效时间
|
||||
*/
|
||||
@ApiModelProperty(value = "失效时间")
|
||||
private Long overTime;
|
||||
|
||||
/**
|
||||
* 订单备注
|
||||
*/
|
||||
@ApiModelProperty(value = "订单备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@ApiModelProperty(value = "是否删除 1 未删除 0 已删除")
|
||||
private Integer isDe;
|
||||
|
||||
/**
|
||||
* 发票id
|
||||
*/
|
||||
@ApiModelProperty(value = "发票id")
|
||||
private Integer userInvoicesId;
|
||||
|
||||
|
||||
public Orders(Integer ordersId, String orderNo,
|
||||
@NotNull Integer userId, @NotNull Integer classId,
|
||||
Integer orderStatus, @NotNull String body, @NotNull String subject,
|
||||
@NotNull Double totalAmount,
|
||||
Long createTime, String tradeNo, Long overTime, Integer isDe,
|
||||
Integer userInvoicesId, String remark
|
||||
) {
|
||||
this.ordersId = ordersId;
|
||||
this.orderNo = orderNo;
|
||||
this.userId = userId;
|
||||
this.classId = classId;
|
||||
this.orderStatus = orderStatus;
|
||||
this.body = body;
|
||||
this.subject = subject;
|
||||
this.totalAmount = totalAmount;
|
||||
this.createTime = createTime;
|
||||
this.tradeNo = tradeNo;
|
||||
this.overTime = overTime;
|
||||
this.isDe = isDe;
|
||||
this.userInvoicesId = userInvoicesId;
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public Orders() {
|
||||
}
|
||||
|
||||
public Integer getOrdersId() {
|
||||
return ordersId;
|
||||
}
|
||||
|
||||
public void setOrdersId(Integer ordersId) {
|
||||
this.ordersId = ordersId;
|
||||
}
|
||||
|
||||
public String getOrderNo() {
|
||||
return orderNo;
|
||||
}
|
||||
|
||||
public void setOrderNo(String orderNo) {
|
||||
this.orderNo = orderNo;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getClassId() {
|
||||
return classId;
|
||||
}
|
||||
|
||||
public void setClassId(Integer classId) {
|
||||
this.classId = classId;
|
||||
}
|
||||
|
||||
public Integer getOrderStatus() {
|
||||
return orderStatus;
|
||||
}
|
||||
|
||||
public void setOrderStatus(Integer orderStatus) {
|
||||
this.orderStatus = orderStatus;
|
||||
}
|
||||
|
||||
public String getBody() {
|
||||
return body;
|
||||
}
|
||||
|
||||
public void setBody(String body) {
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
public String getSubject() {
|
||||
return subject;
|
||||
}
|
||||
|
||||
public void setSubject(String subject) {
|
||||
this.subject = subject;
|
||||
}
|
||||
|
||||
public Double getTotalAmount() {
|
||||
return totalAmount;
|
||||
}
|
||||
|
||||
public void setTotalAmount(Double totalAmount) {
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public Long getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getTradeNo() {
|
||||
return tradeNo;
|
||||
}
|
||||
|
||||
public void setTradeNo(String tradeNo) {
|
||||
this.tradeNo = tradeNo;
|
||||
}
|
||||
|
||||
public Long getOverTime() {
|
||||
return overTime;
|
||||
}
|
||||
|
||||
public void setOverTime(Long overTime) {
|
||||
this.overTime = overTime;
|
||||
}
|
||||
|
||||
public Integer getIsDe() {
|
||||
return isDe;
|
||||
}
|
||||
|
||||
public void setIsDe(Integer isDe) {
|
||||
this.isDe = isDe;
|
||||
}
|
||||
|
||||
public Integer getUserInvoicesId() {
|
||||
return userInvoicesId;
|
||||
}
|
||||
|
||||
public void setUserInvoicesId(Integer userInvoicesId) {
|
||||
this.userInvoicesId = userInvoicesId;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
}
|
@ -0,0 +1,145 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 随机试卷问题表(PaperQuestion)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-07 11:35:09
|
||||
*/
|
||||
|
||||
@ApiModel(value = "抽题表")
|
||||
public class PaperQuestion implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -31457085483443169L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Integer paperRuleId;
|
||||
|
||||
/**
|
||||
* 试卷编号
|
||||
*/
|
||||
@ApiModelProperty(value = "试卷编号", required = true)
|
||||
@NotNull
|
||||
private Integer paperId;
|
||||
|
||||
/**
|
||||
* 问题数量
|
||||
*/
|
||||
@ApiModelProperty(value = "问题数量", required = true)
|
||||
@NotNull
|
||||
private Integer questionNum;
|
||||
|
||||
/**
|
||||
* 难易程度
|
||||
*/
|
||||
@ApiModelProperty(value = "难易程度", required = true)
|
||||
private Integer questionLevel;
|
||||
|
||||
/**
|
||||
* 题目类型
|
||||
*/
|
||||
@ApiModelProperty(value = "题目类型", required = true)
|
||||
@NotNull
|
||||
private Integer questionType;
|
||||
|
||||
/**
|
||||
* 分值
|
||||
*/
|
||||
@ApiModelProperty(value = "分值", required = true)
|
||||
private Integer score;
|
||||
|
||||
/**
|
||||
* 基于哪个题库
|
||||
*/
|
||||
@ApiModelProperty(value = "基于哪个题库", required = true)
|
||||
@NotNull
|
||||
private Integer questionTagId;
|
||||
|
||||
public PaperQuestion(Integer paperRuleId, @NotNull Integer paperId,
|
||||
@NotNull Integer questionNum, Integer questionLevel,
|
||||
@NotNull Integer questionType, Integer score,
|
||||
@NotNull Integer questionTagId) {
|
||||
this.paperRuleId = paperRuleId;
|
||||
this.paperId = paperId;
|
||||
this.questionNum = questionNum;
|
||||
this.questionLevel = questionLevel;
|
||||
this.questionType = questionType;
|
||||
this.score = score;
|
||||
this.questionTagId = questionTagId;
|
||||
}
|
||||
|
||||
public PaperQuestion() {
|
||||
}
|
||||
|
||||
public Integer getPaperRuleId() {
|
||||
return paperRuleId;
|
||||
}
|
||||
|
||||
public void setPaperRuleId(Integer paperRuleId) {
|
||||
this.paperRuleId = paperRuleId;
|
||||
}
|
||||
|
||||
public Integer getPaperId() {
|
||||
return paperId;
|
||||
}
|
||||
|
||||
public void setPaperId(Integer paperId) {
|
||||
this.paperId = paperId;
|
||||
}
|
||||
|
||||
public Integer getQuestionNum() {
|
||||
return questionNum;
|
||||
}
|
||||
|
||||
public void setQuestionNum(Integer questionNum) {
|
||||
this.questionNum = questionNum;
|
||||
}
|
||||
|
||||
public Integer getQuestionLevel() {
|
||||
return questionLevel;
|
||||
}
|
||||
|
||||
public void setQuestionLevel(Integer questionLevel) {
|
||||
this.questionLevel = questionLevel;
|
||||
}
|
||||
|
||||
public Integer getQuestionType() {
|
||||
return questionType;
|
||||
}
|
||||
|
||||
public void setQuestionType(Integer questionType) {
|
||||
this.questionType = questionType;
|
||||
}
|
||||
|
||||
public Integer getScore() {
|
||||
return score;
|
||||
}
|
||||
|
||||
public void setScore(Integer score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
public Integer getQuestionTagId() {
|
||||
return questionTagId;
|
||||
}
|
||||
|
||||
public void setQuestionTagId(Integer questionTagId) {
|
||||
this.questionTagId = questionTagId;
|
||||
}
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 问题答案表(QuestionAnswer)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-07 11:36:17
|
||||
*/
|
||||
|
||||
@ApiModel(value = "题目答案表")
|
||||
public class QuestionAnswer implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 408168416998479718L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Integer questionAnswerId;
|
||||
|
||||
/**
|
||||
* 习题id
|
||||
*/
|
||||
@ApiModelProperty(value = "习题id", required = true)
|
||||
@NotNull
|
||||
private Integer questionId;
|
||||
|
||||
/**
|
||||
* 试题答案
|
||||
*/
|
||||
@ApiModelProperty(value = "试题答案", required = true)
|
||||
@NotNull
|
||||
private String questionAnswer;
|
||||
|
||||
/**
|
||||
* 是否正确
|
||||
*/
|
||||
@ApiModelProperty(value = "是否正确", required = true)
|
||||
@NotNull
|
||||
private Byte isTrue;
|
||||
|
||||
public QuestionAnswer(Integer questionAnswerId, @NotNull Integer questionId,
|
||||
@NotNull String questionAnswer, @NotNull Byte isTrue) {
|
||||
this.questionAnswerId = questionAnswerId;
|
||||
this.questionId = questionId;
|
||||
this.questionAnswer = questionAnswer;
|
||||
this.isTrue = isTrue;
|
||||
}
|
||||
|
||||
public QuestionAnswer() {
|
||||
}
|
||||
|
||||
public Integer getQuestionAnswerId() {
|
||||
return questionAnswerId;
|
||||
}
|
||||
|
||||
public void setQuestionAnswerId(Integer questionAnswerId) {
|
||||
this.questionAnswerId = questionAnswerId;
|
||||
}
|
||||
|
||||
public Integer getQuestionId() {
|
||||
return questionId;
|
||||
}
|
||||
|
||||
public void setQuestionId(Integer questionId) {
|
||||
this.questionId = questionId;
|
||||
}
|
||||
|
||||
public String getQuestionAnswer() {
|
||||
return questionAnswer;
|
||||
}
|
||||
|
||||
public void setQuestionAnswer(String questionAnswer) {
|
||||
this.questionAnswer = questionAnswer;
|
||||
}
|
||||
|
||||
public Byte getIsTrue() {
|
||||
return isTrue;
|
||||
}
|
||||
|
||||
public void setIsTrue(Byte isTrue) {
|
||||
this.isTrue = isTrue;
|
||||
}
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 问题标签表(QuestionTag)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-07 11:36:38
|
||||
*/
|
||||
|
||||
@ApiModel(value = "题目标签表")
|
||||
public class QuestionTag implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 707743295313254406L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Integer questionTagId;
|
||||
|
||||
/**
|
||||
* 标签名称
|
||||
*/
|
||||
@ApiModelProperty(value = "标签名称", required = true)
|
||||
@NotNull
|
||||
private String tagName;
|
||||
|
||||
public QuestionTag(Integer questionTagId, @NotNull String tagName) {
|
||||
this.questionTagId = questionTagId;
|
||||
this.tagName = tagName;
|
||||
}
|
||||
|
||||
public QuestionTag() {
|
||||
}
|
||||
|
||||
public Integer getQuestionTagId() {
|
||||
return questionTagId;
|
||||
}
|
||||
|
||||
public void setQuestionTagId(Integer questionTagId) {
|
||||
this.questionTagId = questionTagId;
|
||||
}
|
||||
|
||||
public String getTagName() {
|
||||
return tagName;
|
||||
}
|
||||
|
||||
public void setTagName(String tagName) {
|
||||
this.tagName = tagName;
|
||||
}
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 问题类型表(QuestionType)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-07 11:36:58
|
||||
*/
|
||||
|
||||
@ApiModel(value = "试题类型表")
|
||||
public class QuestionType implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 477430279562474374L;
|
||||
|
||||
|
||||
/**
|
||||
* 题库id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "题库id")
|
||||
private Integer typeId;
|
||||
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
@ApiModelProperty(value = "类型名称", required = true)
|
||||
@NotNull
|
||||
private String typeName;
|
||||
|
||||
public QuestionType(Integer typeId, @NotNull String typeName) {
|
||||
this.typeId = typeId;
|
||||
this.typeName = typeName;
|
||||
}
|
||||
|
||||
public QuestionType() {
|
||||
}
|
||||
|
||||
public Integer getTypeId() {
|
||||
return typeId;
|
||||
}
|
||||
|
||||
public void setTypeId(Integer typeId) {
|
||||
this.typeId = typeId;
|
||||
}
|
||||
|
||||
public String getTypeName() {
|
||||
return typeName;
|
||||
}
|
||||
|
||||
public void setTypeName(String typeName) {
|
||||
this.typeName = typeName;
|
||||
}
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 第三方用户表(Third)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-06-17 17:29:30
|
||||
*/
|
||||
|
||||
public class Third implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 449560525009961962L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Integer thirdId;
|
||||
/**
|
||||
* 第三方访问TOKEN
|
||||
*/
|
||||
private String thirdToken;
|
||||
/**
|
||||
* 第三方名字
|
||||
*/
|
||||
private String thirdName;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Long createTime = System.currentTimeMillis();
|
||||
/**
|
||||
* 失效时间
|
||||
*/
|
||||
private Long expireTime;
|
||||
|
||||
public Third(Integer thirdId, String thirdToken, String thirdName, Long createTime, Long expireTime) {
|
||||
this.thirdId = thirdId;
|
||||
this.thirdToken = thirdToken;
|
||||
this.thirdName = thirdName;
|
||||
this.createTime = createTime;
|
||||
this.expireTime = expireTime;
|
||||
}
|
||||
|
||||
public Third() {
|
||||
}
|
||||
|
||||
public Integer getThirdId() {
|
||||
return thirdId;
|
||||
}
|
||||
|
||||
public void setThirdId(Integer thirdId) {
|
||||
this.thirdId = thirdId;
|
||||
}
|
||||
|
||||
public String getThirdToken() {
|
||||
return thirdToken;
|
||||
}
|
||||
|
||||
public void setThirdToken(String thirdToken) {
|
||||
this.thirdToken = thirdToken;
|
||||
}
|
||||
|
||||
public String getThirdName() {
|
||||
return thirdName;
|
||||
}
|
||||
|
||||
public void setThirdName(String thirdName) {
|
||||
this.thirdName = thirdName;
|
||||
}
|
||||
|
||||
public Long getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Long getExpireTime() {
|
||||
return expireTime;
|
||||
}
|
||||
|
||||
public void setExpireTime(Long expireTime) {
|
||||
this.expireTime = expireTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,114 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 管理员表(UserAdmin)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-16 13:45:03
|
||||
*/
|
||||
|
||||
@ApiModel(value = "管理员表")
|
||||
public class UserAdmin implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -33023267070799101L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Integer userAdminId;
|
||||
|
||||
/**
|
||||
* 管理员名字
|
||||
*/
|
||||
@ApiModelProperty(value = "管理员名字", required = true)
|
||||
@NotNull
|
||||
private String adminName;
|
||||
|
||||
/**
|
||||
* 管理员账号
|
||||
*/
|
||||
@ApiModelProperty(value = "管理员账号", required = true)
|
||||
@NotNull
|
||||
private String adminAccount;
|
||||
|
||||
/**
|
||||
* 管理员密码
|
||||
*/
|
||||
@ApiModelProperty(value = "管理员密码", required = true)
|
||||
@NotNull
|
||||
private String adminPass;
|
||||
|
||||
/**
|
||||
* 管理员级别
|
||||
*/
|
||||
@ApiModelProperty(value = "管理员级别", required = true)
|
||||
@NotNull
|
||||
private Integer permissionLevel;
|
||||
|
||||
public UserAdmin(Integer userAdminId, @NotNull String adminName,
|
||||
@NotNull String adminAccount,
|
||||
@NotNull String adminPass, @NotNull Integer permissionLevel) {
|
||||
this.userAdminId = userAdminId;
|
||||
this.adminName = adminName;
|
||||
this.adminAccount = adminAccount;
|
||||
this.adminPass = adminPass;
|
||||
this.permissionLevel = permissionLevel;
|
||||
}
|
||||
|
||||
public UserAdmin() {
|
||||
}
|
||||
|
||||
public Integer getUserAdminId() {
|
||||
return userAdminId;
|
||||
}
|
||||
|
||||
public void setUserAdminId(Integer userAdminId) {
|
||||
this.userAdminId = userAdminId;
|
||||
}
|
||||
|
||||
public String getAdminName() {
|
||||
return adminName;
|
||||
}
|
||||
|
||||
public void setAdminName(String adminName) {
|
||||
this.adminName = adminName;
|
||||
}
|
||||
|
||||
public String getAdminAccount() {
|
||||
return adminAccount;
|
||||
}
|
||||
|
||||
public void setAdminAccount(String adminAccount) {
|
||||
this.adminAccount = adminAccount;
|
||||
}
|
||||
|
||||
public String getAdminPass() {
|
||||
return adminPass;
|
||||
}
|
||||
|
||||
public void setAdminPass(String adminPass) {
|
||||
this.adminPass = adminPass;
|
||||
}
|
||||
|
||||
public Integer getPermissionLevel() {
|
||||
return permissionLevel;
|
||||
}
|
||||
|
||||
public void setPermissionLevel(Integer permissionLevel) {
|
||||
this.permissionLevel = permissionLevel;
|
||||
}
|
||||
}
|
@ -0,0 +1,172 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.Email;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 用户建议表
|
||||
* (UserAdvise)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-16 14:20:01
|
||||
*/
|
||||
|
||||
@ApiModel(value = "用户信息表")
|
||||
public class UserAdvise implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -75842427826309033L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer adviceId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@ApiModelProperty(value = "用户ID", required = true)
|
||||
@NotNull
|
||||
private Integer userId;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
@ApiModelProperty(value = "邮箱", required = true)
|
||||
@NotNull
|
||||
@Email
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
@ApiModelProperty(value = "标题", required = true)
|
||||
@NotNull
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 用户建议
|
||||
*/
|
||||
@ApiModelProperty(value = "通知信息", required = true)
|
||||
@NotNull
|
||||
private String advise;
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
@ApiModelProperty(value = "时间")
|
||||
private Long createTime;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "通知图片")
|
||||
private String adviceLogo;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "通知类型")
|
||||
private Integer adviceType;
|
||||
|
||||
@ApiModelProperty(value = "是否回复")
|
||||
private Integer isReply;
|
||||
|
||||
public UserAdvise(Integer adviceId, @NotNull Integer userId,
|
||||
@NotNull @Email String email,
|
||||
@NotNull String title, @NotNull String advise,
|
||||
Long createTime, String adviceLogo,
|
||||
Integer adviceType, Integer isReply) {
|
||||
this.adviceId = adviceId;
|
||||
this.userId = userId;
|
||||
this.email = email;
|
||||
this.title = title;
|
||||
this.advise = advise;
|
||||
this.createTime = createTime;
|
||||
this.adviceLogo = adviceLogo;
|
||||
this.adviceType = adviceType;
|
||||
this.isReply = isReply;
|
||||
}
|
||||
|
||||
public UserAdvise() {
|
||||
}
|
||||
|
||||
public Integer getAdviceId() {
|
||||
return adviceId;
|
||||
}
|
||||
|
||||
public void setAdviceId(Integer adviceId) {
|
||||
this.adviceId = adviceId;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getAdvise() {
|
||||
return advise;
|
||||
}
|
||||
|
||||
public void setAdvise(String advise) {
|
||||
this.advise = advise;
|
||||
}
|
||||
|
||||
public Long getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getAdviceLogo() {
|
||||
return adviceLogo;
|
||||
}
|
||||
|
||||
public void setAdviceLogo(String adviceLogo) {
|
||||
this.adviceLogo = adviceLogo;
|
||||
}
|
||||
|
||||
public Integer getAdviceType() {
|
||||
return adviceType;
|
||||
}
|
||||
|
||||
public void setAdviceType(Integer adviceType) {
|
||||
this.adviceType = adviceType;
|
||||
}
|
||||
|
||||
public Integer getIsReply() {
|
||||
return isReply;
|
||||
}
|
||||
|
||||
public void setIsReply(Integer isReply) {
|
||||
this.isReply = isReply;
|
||||
}
|
||||
}
|
@ -0,0 +1,114 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 用户课程表(UserCourse)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-09 10:05:18
|
||||
*/
|
||||
|
||||
@ApiModel(value = "用户课程表")
|
||||
public class UserCourse implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 367696525637009095L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Integer userCourseId;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户id", required = true)
|
||||
@NotNull
|
||||
private Integer userId;
|
||||
|
||||
/**
|
||||
* 课程SKUid
|
||||
*/
|
||||
@ApiModelProperty(value = "课程SKUid", required = true)
|
||||
@NotNull
|
||||
private Integer courseId;
|
||||
|
||||
/**
|
||||
* 总体进度
|
||||
*/
|
||||
@ApiModelProperty(value = "总体进度")
|
||||
@NotNull
|
||||
private Double coursePercent;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
@ApiModelProperty(value = "班级ID", required = true)
|
||||
@NotNull
|
||||
private Integer classId;
|
||||
|
||||
public UserCourse(Integer userCourseId, @NotNull Integer userId,
|
||||
@NotNull Integer courseId, Double coursePercent,
|
||||
@NotNull Integer classId) {
|
||||
this.userCourseId = userCourseId;
|
||||
this.userId = userId;
|
||||
this.courseId = courseId;
|
||||
this.coursePercent = coursePercent;
|
||||
this.classId = classId;
|
||||
}
|
||||
|
||||
public UserCourse() {
|
||||
}
|
||||
|
||||
public Integer getUserCourseId() {
|
||||
return userCourseId;
|
||||
}
|
||||
|
||||
public void setUserCourseId(Integer userCourseId) {
|
||||
this.userCourseId = userCourseId;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getCourseId() {
|
||||
return courseId;
|
||||
}
|
||||
|
||||
public void setCourseId(Integer courseId) {
|
||||
this.courseId = courseId;
|
||||
}
|
||||
|
||||
public Double getCoursePercent() {
|
||||
return coursePercent;
|
||||
}
|
||||
|
||||
public void setCoursePercent(Double coursePercent) {
|
||||
this.coursePercent = coursePercent;
|
||||
}
|
||||
|
||||
public Integer getClassId() {
|
||||
return classId;
|
||||
}
|
||||
|
||||
public void setClassId(Integer classId) {
|
||||
this.classId = classId;
|
||||
}
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 用户班级学习进度表
|
||||
* (UserStatus)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-06 11:37:06
|
||||
*/
|
||||
|
||||
@ApiModel(value = "用户状态表")
|
||||
public class UserStatus implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 425010649051627355L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Integer statusId;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户id")
|
||||
@NotNull
|
||||
private Integer userId;
|
||||
|
||||
/**
|
||||
* 地区年度继续学习配置ID
|
||||
*/
|
||||
@ApiModelProperty(value = "地区年度继续学习配置ID")
|
||||
@NotNull
|
||||
private Integer classId;
|
||||
|
||||
/**
|
||||
* 报名得订单号
|
||||
*/
|
||||
@ApiModelProperty(value = "报名得订单号")
|
||||
@NotNull
|
||||
private Integer orderId;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@ApiModelProperty(value = "状态", required = true)
|
||||
@NotNull
|
||||
private Integer status;
|
||||
|
||||
public UserStatus(Integer statusId, @NotNull Integer userId,
|
||||
@NotNull Integer classId,
|
||||
@NotNull Integer orderId, @NotNull Integer status) {
|
||||
this.statusId = statusId;
|
||||
this.userId = userId;
|
||||
this.classId = classId;
|
||||
this.orderId = orderId;
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public UserStatus() {
|
||||
}
|
||||
|
||||
public Integer getStatusId() {
|
||||
return statusId;
|
||||
}
|
||||
|
||||
public void setStatusId(Integer statusId) {
|
||||
this.statusId = statusId;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getClassId() {
|
||||
return classId;
|
||||
}
|
||||
|
||||
public void setClassId(Integer classId) {
|
||||
this.classId = classId;
|
||||
}
|
||||
|
||||
public Integer getOrderId() {
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderId(Integer orderId) {
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
@ -0,0 +1,130 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* (UserTeacher)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-20 11:08:17
|
||||
*/
|
||||
|
||||
@ApiModel(value = "老师表")
|
||||
public class UserTeacher implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 354661860163916483L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer teacherId;
|
||||
|
||||
/**
|
||||
* 老师名称
|
||||
*/
|
||||
@ApiModelProperty(value = "老师名称", required = true)
|
||||
@NotNull
|
||||
private String teacherName;
|
||||
|
||||
/**
|
||||
* 老师简介
|
||||
*/
|
||||
@ApiModelProperty(value = "老师简介", required = true)
|
||||
@NotNull
|
||||
private String teacherIntroduce;
|
||||
|
||||
/**
|
||||
* 老师头像
|
||||
*/
|
||||
@ApiModelProperty(value = "老师头像", required = true)
|
||||
@NotNull
|
||||
private String teacherLogo;
|
||||
|
||||
/**
|
||||
* 老师图片
|
||||
*/
|
||||
@ApiModelProperty(value = "老师图片", required = true)
|
||||
@NotNull
|
||||
private String teacherUrl;
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
@ApiModelProperty(value = "时间")
|
||||
private Long createTime;
|
||||
|
||||
public UserTeacher(Integer teacherId, @NotNull String teacherName,
|
||||
@NotNull String teacherIntroduce,
|
||||
@NotNull String teacherLogo,
|
||||
@NotNull String teacherUrl, Long createTime) {
|
||||
this.teacherId = teacherId;
|
||||
this.teacherName = teacherName;
|
||||
this.teacherIntroduce = teacherIntroduce;
|
||||
this.teacherLogo = teacherLogo;
|
||||
this.teacherUrl = teacherUrl;
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public UserTeacher() {
|
||||
}
|
||||
|
||||
public Integer getTeacherId() {
|
||||
return teacherId;
|
||||
}
|
||||
|
||||
public void setTeacherId(Integer teacherId) {
|
||||
this.teacherId = teacherId;
|
||||
}
|
||||
|
||||
public String getTeacherName() {
|
||||
return teacherName;
|
||||
}
|
||||
|
||||
public void setTeacherName(String teacherName) {
|
||||
this.teacherName = teacherName;
|
||||
}
|
||||
|
||||
public String getTeacherIntroduce() {
|
||||
return teacherIntroduce;
|
||||
}
|
||||
|
||||
public void setTeacherIntroduce(String teacherIntroduce) {
|
||||
this.teacherIntroduce = teacherIntroduce;
|
||||
}
|
||||
|
||||
public String getTeacherLogo() {
|
||||
return teacherLogo;
|
||||
}
|
||||
|
||||
public void setTeacherLogo(String teacherLogo) {
|
||||
this.teacherLogo = teacherLogo;
|
||||
}
|
||||
|
||||
public String getTeacherUrl() {
|
||||
return teacherUrl;
|
||||
}
|
||||
|
||||
public void setTeacherUrl(String teacherUrl) {
|
||||
this.teacherUrl = teacherUrl;
|
||||
}
|
||||
|
||||
public Long getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,165 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 用户考试记录表(UserTestHistory)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-12-07 11:28:17
|
||||
*/
|
||||
|
||||
@ApiModel(value = "考试记录表")
|
||||
public class UserTestHistory implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -86805600747462758L;
|
||||
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Integer testId;
|
||||
|
||||
/**
|
||||
* 用户Id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户Id", required = true)
|
||||
private Integer userId;
|
||||
|
||||
/**
|
||||
* 试卷ID
|
||||
*/
|
||||
@ApiModelProperty(value = "试卷ID", required = true)
|
||||
private Integer paperId;
|
||||
|
||||
/**
|
||||
* 班次id
|
||||
*/
|
||||
@ApiModelProperty(value = "班次ID", required = true)
|
||||
private Integer classId;
|
||||
|
||||
/**
|
||||
* 成绩
|
||||
*/
|
||||
@ApiModelProperty(value = "成绩", required = true)
|
||||
private Integer score;
|
||||
|
||||
/**
|
||||
* 问题ID数组
|
||||
*/
|
||||
@ApiModelProperty(value = "问题ID数组", required = true)
|
||||
private String answer;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Long createTime;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "总分", required = true)
|
||||
private Integer totalScore;
|
||||
|
||||
/**
|
||||
* 考试时间
|
||||
*/
|
||||
@ApiModelProperty(value = "考试时间", required = true)
|
||||
private String testTime;
|
||||
|
||||
public UserTestHistory(Integer testId, Integer userId, Integer paperId,
|
||||
Integer classId, Integer score, String answer,
|
||||
Long createTime, Integer totalScore, String testTime) {
|
||||
this.testId = testId;
|
||||
this.userId = userId;
|
||||
this.paperId = paperId;
|
||||
this.classId = classId;
|
||||
this.score = score;
|
||||
this.answer = answer;
|
||||
this.createTime = createTime;
|
||||
this.totalScore = totalScore;
|
||||
this.testTime = testTime;
|
||||
}
|
||||
|
||||
public UserTestHistory() {
|
||||
}
|
||||
|
||||
public Integer getTestId() {
|
||||
return testId;
|
||||
}
|
||||
|
||||
public void setTestId(Integer testId) {
|
||||
this.testId = testId;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getPaperId() {
|
||||
return paperId;
|
||||
}
|
||||
|
||||
public void setPaperId(Integer paperId) {
|
||||
this.paperId = paperId;
|
||||
}
|
||||
|
||||
public Integer getClassId() {
|
||||
return classId;
|
||||
}
|
||||
|
||||
public void setClassId(Integer classId) {
|
||||
this.classId = classId;
|
||||
}
|
||||
|
||||
public Integer getScore() {
|
||||
return score;
|
||||
}
|
||||
|
||||
public void setScore(Integer score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
public String getAnswer() {
|
||||
return answer;
|
||||
}
|
||||
|
||||
public void setAnswer(String answer) {
|
||||
this.answer = answer;
|
||||
}
|
||||
|
||||
public Long getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Integer getTotalScore() {
|
||||
return totalScore;
|
||||
}
|
||||
|
||||
public void setTotalScore(Integer totalScore) {
|
||||
this.totalScore = totalScore;
|
||||
}
|
||||
|
||||
public String getTestTime() {
|
||||
return testTime;
|
||||
}
|
||||
|
||||
public void setTestTime(String testTime) {
|
||||
this.testTime = testTime;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,122 @@
|
||||
package com.hc.business.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 用户视频观看记录(UserVideoPosition)实体类
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-05-29 15:50:50
|
||||
*/
|
||||
|
||||
@ApiModel(value = "视频记录表")
|
||||
public class UserVideoPosition implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 133164084604002223L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
private Integer userVideoPositionId;
|
||||
|
||||
/**
|
||||
* 视频id
|
||||
*/
|
||||
@ApiModelProperty(value = "视频id", required = true)
|
||||
@NotNull
|
||||
private Integer videoId;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户id", required = true)
|
||||
@NotNull
|
||||
private Integer userId;
|
||||
|
||||
/**
|
||||
* 视频观看时间
|
||||
*/
|
||||
private String videoPosition;
|
||||
|
||||
/**
|
||||
* 是否观看解鼠
|
||||
*/
|
||||
private Integer watchEnd;
|
||||
|
||||
/**
|
||||
* 视频时长
|
||||
*/
|
||||
private String videoTime;
|
||||
|
||||
public UserVideoPosition(Integer userVideoPositionId, @NotNull Integer videoId,
|
||||
@NotNull Integer userId,
|
||||
String videoPosition, Integer watchEnd, String videoTime) {
|
||||
this.userVideoPositionId = userVideoPositionId;
|
||||
this.videoId = videoId;
|
||||
this.userId = userId;
|
||||
this.videoPosition = videoPosition;
|
||||
this.watchEnd = watchEnd;
|
||||
this.videoTime = videoTime;
|
||||
}
|
||||
|
||||
public UserVideoPosition() {
|
||||
}
|
||||
|
||||
public Integer getUserVideoPositionId() {
|
||||
return userVideoPositionId;
|
||||
}
|
||||
|
||||
public void setUserVideoPositionId(Integer userVideoPositionId) {
|
||||
this.userVideoPositionId = userVideoPositionId;
|
||||
}
|
||||
|
||||
public Integer getVideoId() {
|
||||
return videoId;
|
||||
}
|
||||
|
||||
public void setVideoId(Integer videoId) {
|
||||
this.videoId = videoId;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getVideoPosition() {
|
||||
return videoPosition;
|
||||
}
|
||||
|
||||
public void setVideoPosition(String videoPosition) {
|
||||
this.videoPosition = videoPosition;
|
||||
}
|
||||
|
||||
public Integer getWatchEnd() {
|
||||
return watchEnd;
|
||||
}
|
||||
|
||||
public void setWatchEnd(Integer watchEnd) {
|
||||
this.watchEnd = watchEnd;
|
||||
}
|
||||
|
||||
public String getVideoTime() {
|
||||
return videoTime;
|
||||
}
|
||||
|
||||
public void setVideoTime(String videoTime) {
|
||||
this.videoTime = videoTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package com.hc.business.model.jwt;
|
||||
|
||||
import com.hc.business.model.User;
|
||||
import com.hc.business.model.UserAdmin;
|
||||
import com.hc.business.model.login.AccessEntity;
|
||||
import com.hc.business.model.login.AuthEntity;
|
||||
import com.hc.business.model.login.TokenEntity;
|
||||
import com.hc.core.utils.exception.ResponseException;
|
||||
import com.hc.core.utils.redis.RedisUtil;
|
||||
import com.hc.core.utils.tool.IdGenerator;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.SerializationUtils;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
@Slf4j
|
||||
@Component
|
||||
public class GenerateAuthToken {
|
||||
|
||||
|
||||
private final RedisUtil redisUtil;
|
||||
|
||||
public GenerateAuthToken(RedisUtil redisUtil) {
|
||||
this.redisUtil = redisUtil;
|
||||
}
|
||||
|
||||
public AccessEntity generateToken(AuthEntity auth, User user, UserAdmin userAdmin) {
|
||||
|
||||
AccessEntity accessEntity = new AccessEntity();
|
||||
accessEntity.setAuth(auth);
|
||||
TokenEntity tokenEntity = new TokenEntity();
|
||||
// 默认超时 8 小时
|
||||
tokenEntity.setExpires(60 * 60 * 8);
|
||||
String token = JWTUtil.sign(auth.getUserName(), IdGenerator.passwordToHash(auth.getPassword()));
|
||||
tokenEntity.setId(token);
|
||||
|
||||
if (userAdmin != null) {
|
||||
//设置权限级别
|
||||
tokenEntity.setPermissionLevel(userAdmin.getPermissionLevel());
|
||||
}
|
||||
|
||||
accessEntity.setToken(tokenEntity);
|
||||
|
||||
String accessEntityStr = null;
|
||||
try {
|
||||
accessEntityStr = new String(Objects.requireNonNull(SerializationUtils.serialize(accessEntity)));
|
||||
} catch (Exception e) {
|
||||
throw new ResponseException(-1,"登录序列化失败");
|
||||
}
|
||||
|
||||
// 写入到 redis
|
||||
redisUtil.set(accessEntity.getToken().getId(),
|
||||
accessEntityStr,
|
||||
accessEntity.getToken().getExpires());
|
||||
|
||||
if (user != null) {
|
||||
accessEntity.setUser(user);
|
||||
}
|
||||
if (userAdmin != null){
|
||||
accessEntity.setUserAdmin(userAdmin);
|
||||
}
|
||||
log.info("user: {}", auth.getUserName()+" 成功登录系统");
|
||||
return accessEntity;
|
||||
}
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
package com.hc.business.model.jwt;
|
||||
|
||||
import com.auth0.jwt.JWT;
|
||||
import com.auth0.jwt.JWTVerifier;
|
||||
import com.auth0.jwt.algorithms.Algorithm;
|
||||
import com.auth0.jwt.exceptions.JWTDecodeException;
|
||||
import com.auth0.jwt.interfaces.DecodedJWT;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
|
||||
@Component
|
||||
public class JWTUtil {
|
||||
|
||||
// 过期时间8小时0分钟
|
||||
|
||||
private static final long EXPIRE_TIME = 8 * 60 * 60 * 1000;
|
||||
|
||||
/**
|
||||
* 校验token是否正确
|
||||
*
|
||||
* @param token 密钥
|
||||
* @param secret 用户的密码
|
||||
* @return 是否正确
|
||||
*/
|
||||
public static boolean verify(String token, String userName, String secret) {
|
||||
try {
|
||||
Algorithm algorithm = Algorithm.HMAC256(secret);
|
||||
JWTVerifier verifier = JWT.require(algorithm)
|
||||
.withClaim("userName", userName)
|
||||
.build();
|
||||
DecodedJWT jwt = verifier.verify(token);
|
||||
return true;
|
||||
} catch (Exception exception) {
|
||||
System.out.println(exception.getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得token中的信息无需secret解密也能获得
|
||||
*
|
||||
* @return token中包含的用户名
|
||||
*/
|
||||
public static String getUserName(String token) {
|
||||
try {
|
||||
DecodedJWT jwt = JWT.decode(token);
|
||||
return jwt.getClaim("userName").asString();
|
||||
} catch (JWTDecodeException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成签名,2小时后过期
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @param secret 用户的密码
|
||||
* @return 加密的token
|
||||
*/
|
||||
public static String sign(String userName, String secret) {
|
||||
Date date = new Date(System.currentTimeMillis() + EXPIRE_TIME);
|
||||
Algorithm algorithm = null;
|
||||
try {
|
||||
algorithm = Algorithm.HMAC256(secret);
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// 附带userName信息
|
||||
return JWT.create()
|
||||
.withClaim("userName", userName)
|
||||
.withExpiresAt(date)
|
||||
.sign(algorithm);
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package com.hc.business.model.login;
|
||||
|
||||
import com.hc.business.model.User;
|
||||
import com.hc.business.model.UserAdmin;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@ApiModel("登录信息表")
|
||||
@Data
|
||||
public class AccessEntity implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = -5164168823800497252L;
|
||||
|
||||
@ApiModelProperty(value = "用户信息")
|
||||
private AuthEntity auth;
|
||||
|
||||
@ApiModelProperty(value = "token",example = "e781d000-0498-46d3-90df-96edfd95bcd6")
|
||||
private TokenEntity token;
|
||||
|
||||
@ApiModelProperty(value = "user")
|
||||
private User user;
|
||||
|
||||
@ApiModelProperty(value = "userAdmin")
|
||||
private UserAdmin userAdmin;
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.hc.business.model.login;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class AuthEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -9061398570055647081L;
|
||||
|
||||
@NotNull(message = "用户名不可以为空")
|
||||
private String userName;
|
||||
|
||||
@NotNull(message = "密码不可以为空")
|
||||
private String password;
|
||||
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.hc.business.model.login;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class TokenEntity implements Serializable{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -6482495805136843397L;
|
||||
|
||||
private String id;
|
||||
|
||||
private int expires;
|
||||
|
||||
private Integer permissionLevel;
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.hc.business.service;
|
||||
|
||||
import com.alipay.api.AlipayApiException;
|
||||
import com.hc.core.utils.pay.browser.alipay.bean.AliPayRefundBean;
|
||||
import com.hc.core.utils.pay.browser.alipay.bean.AliPayBean;
|
||||
import org.springframework.stereotype.Component;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author 10696
|
||||
*/
|
||||
|
||||
@Component
|
||||
public interface AliPayService {
|
||||
|
||||
/**
|
||||
* 支付宝支付
|
||||
*
|
||||
* @param aliPayBean 支付对象
|
||||
* @return 实例对象
|
||||
* @throws AlipayApiException
|
||||
*/
|
||||
Map<String, String> alipay(AliPayBean aliPayBean) throws AlipayApiException;
|
||||
|
||||
|
||||
/**
|
||||
* 支付成功回调
|
||||
*
|
||||
* @param outTradeNo 订单号
|
||||
* @param tradeNo 支付宝交易号
|
||||
* @param tradeStatus 支付状态
|
||||
*/
|
||||
void returnNotifyUrlInfo(String outTradeNo, String tradeNo, String tradeStatus);
|
||||
|
||||
/**
|
||||
* 支付宝退款
|
||||
*
|
||||
* @param aliPayRefundBean 退款对象
|
||||
* @return 实例对象
|
||||
* @throws AlipayApiException
|
||||
*/
|
||||
Map<String, String> refund(AliPayRefundBean aliPayRefundBean) throws AlipayApiException;
|
||||
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.hc.business.service;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.hc.business.model.AreaDistrict;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
||||
/**
|
||||
* 省份表(AreaDistrict)表服务接口
|
||||
*
|
||||
* @author java
|
||||
* @since 2020-11-20 12:48:46
|
||||
*/
|
||||
|
||||
@Component
|
||||
public interface AreaDistrictService {
|
||||
|
||||
/**
|
||||
* 通过ID查询单条数据
|
||||
*
|
||||
* @param areaId 主键
|
||||
* @return 实例对象
|
||||
*/
|
||||
AreaDistrict queryById(Integer areaId);
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param areaDistrict 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
AreaDistrict insert(AreaDistrict areaDistrict);
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param areaDistrict 实例对象
|
||||
* @return 实例对象
|
||||
*/
|
||||
AreaDistrict update(AreaDistrict areaDistrict);
|
||||
|
||||
/**
|
||||
* 通过主键删除数据
|
||||
*
|
||||
* @param areaId 主键
|
||||
* @return 是否成功
|
||||
*/
|
||||
boolean deleteById(Integer areaId);
|
||||
|
||||
/**
|
||||
* 分页查询多条数据
|
||||
*
|
||||
* @param page 页码
|
||||
* @param size 查询条数
|
||||
* @return 对象列表
|
||||
*/
|
||||
PageInfo queryAllByLimit(int page, int size);
|
||||
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue