| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- package cn.seecoder.courselearning.po;
- import cn.seecoder.courselearning.vo.CourseVO;
- import lombok.NonNull;
- import java.util.Date;
- public class Course {
- private Integer id;
- private String name;
- private String type;
- private String intro;
- private String picture;
- private String school;
- private Date createTime;
- private Date deleteTime;
- private Integer cost;
- private Integer teacherId;
- private String teacherName;
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name == null ? null : name.trim();
- }
- public String getType() {
- return type;
- }
- public void setType(String type) {
- this.type = type == null ? null : type.trim();
- }
- public String getIntro() {
- return intro;
- }
- public void setIntro(String intro) {
- this.intro = intro == null ? null : intro.trim();
- }
- public String getPicture() {
- return picture;
- }
- public void setPicture(String picture) {
- this.picture = picture == null ? null : picture.trim();
- }
- public String getSchool() {
- return school;
- }
- public void setSchool(String school) {
- this.school = school == null ? null : school.trim();
- }
- public Date getCreateTime() {
- return createTime;
- }
- public void setCreateTime(Date createTime) {
- this.createTime = createTime;
- }
- public Date getDeleteTime() {
- return deleteTime;
- }
- public void setDeleteTime(Date deleteTime) {
- this.deleteTime = deleteTime;
- }
- public Integer getCost() {
- return cost;
- }
- public void setCost(Integer cost) {
- this.cost = cost;
- }
- 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 == null ? null : teacherName.trim();
- }
- public Course() {
- }
- public Course(@NonNull CourseVO courseVO){
- this.id = courseVO.getId();
- this.name = courseVO.getName();
- this.type = courseVO.getType();
- this.intro = courseVO.getIntro();
- this.picture = courseVO.getPicture();
- this.school = courseVO.getSchool();
- this.createTime = courseVO.getCreateTime();
- this.cost = courseVO.getCost();
- this.teacherId = courseVO.getTeacherId();
- this.teacherName = courseVO.getTeacherName();
- }
- }
|