package com.dsh.account.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import java.util.Date;
|
import java.io.Serializable;
|
|
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.experimental.Accessors;
|
|
/**
|
* <p>
|
* 用户积分变动记录
|
* </p>
|
*
|
* @author jqs
|
* @since 2023-07-10
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
@Accessors(chain = true)
|
@TableName("t_user_integral_changes")
|
public class UserIntegralChanges extends Model<UserIntegralChanges> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.NONE)
|
private Long id;
|
/**
|
* 用户id
|
*/
|
@TableField("appUserId")
|
private Integer appUserId;
|
/**
|
* 积分类型(1=赠送积分,2=兑换商品,3=完成课后练习,4=观看教学视频)
|
*/
|
@TableField("type")
|
private Integer type;
|
/**
|
* 历史积分
|
*/
|
@TableField("oldIntegral")
|
private Integer oldIntegral;
|
/**
|
* 新积分
|
*/
|
@TableField("newIntegral")
|
private Integer newIntegral;
|
/**
|
* 备注
|
*/
|
@TableField("remark")
|
private String remark;
|
/**
|
* 添加时间
|
*/
|
@TableField("insertTime")
|
private Date insertTime;
|
/**
|
* 变动类型(1增加 2扣除)
|
*/
|
@TableField("category")
|
private Integer category;
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
}
|