package com.dsh.account.entity;
|
|
import com.baomidou.mybatisplus.enums.IdType;
|
import java.util.Date;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
import com.baomidou.mybatisplus.annotations.Version;
|
|
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.AUTO)
|
private Integer id;
|
/**
|
* 用户id
|
*/
|
private Integer appUserId;
|
/**
|
* 积分类型(1=赠送积分,2=兑换商品,3=完成课后练习,4=观看教学视频)
|
*/
|
private Integer type;
|
/**
|
* 历史积分
|
*/
|
private Integer oldIntegral;
|
/**
|
* 新积分
|
*/
|
private Integer newIntegral;
|
/**
|
* 备注
|
*/
|
private String remark;
|
/**
|
* 添加时间
|
*/
|
private Date insertTime;
|
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
}
|