无关风月
2024-08-20 9f88b12d16c83963dad8fb8f79d9eeba2c311518
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.stylefeng.guns.modular.system.model;
 
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
 
/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 无关风月
 * @since 2024-02-06
 */
@Data
@TableName("t_user_watch")
public class UserWatch extends Model<UserWatch> {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "课程id")
    private Integer courseId;
    @ApiModelProperty(value = "上次播放到的视频id")
    private Integer beforeVideoId;
    @ApiModelProperty(value = "上次播放到视频xx秒处")
    private Integer beforeTime;
    @ApiModelProperty(value = "用户id")
    private Integer userId;
    @ApiModelProperty(value = "实际观看时间 秒")
    private Integer realTime;
    @ApiModelProperty(value = "打卡时间")
    private Date clockTime;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
 
 
}