package org.dromara.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("act_integral_history")
public class SysIntegralHistory {


    @Schema(description = "ID")
    private Long id;

    @Schema(description = "用户ID")
    private Long memberId;

    @Schema(description = "变动金额")
    private BigDecimal amount;

    @Schema(description = "类型  1.收入 2.支出 3.其他")
    private Integer opType;

    @Schema(description = "子类型  11签到 12消费获得 21退款扣除积分 22 兑换优惠卷")
    private Integer subOpType;

    @Schema(description = "订单金额")
    private BigDecimal orderAmount;

    @Schema(description = "订单ID")
    private Long orderId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
