package com.backendsys.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@TableName("sys_user_integral")
public class SysUserIntegral {

    public static interface Increase{}
    public static interface Decrease{}

    @TableId
    @NotNull(message = "user_id 不能为空", groups = { Increase.class, Decrease.class })
    private Long user_id;
    @NotNull(message = "积分不能为空", groups = { Increase.class, Decrease.class })
    private Integer integral;   // 积分
}
