package com.stylefeng.guns.modular.system.model;
|
|
import com.baomidou.mybatisplus.enums.IdType;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
/**
|
* <p>
|
* 用户收藏课程
|
* </p>
|
*
|
* @author 无关风月
|
* @since 2024-02-06
|
*/
|
@TableName("t_user_collect")
|
public class UserCollect extends Model<UserCollect> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 用户id
|
*/
|
private Integer userId;
|
/**
|
* 课程id
|
*/
|
private Integer courseId;
|
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
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;
|
}
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
@Override
|
public String toString() {
|
return "UserCollect{" +
|
"id=" + id +
|
", userId=" + userId +
|
", courseId=" + courseId +
|
"}";
|
}
|
}
|