package com.bonus.canteen.core.account.domain;

import com.bonus.common.core.annotation.Excel;
import com.bonus.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 钱包详情信息对象 acc_wallet_info
 * 
 * @author xsheng
 * @date 2025-04-05
 */


@Data
@ToString
public class AccWalletInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /** 主键id */
    private Long walletId;

    /** 人员id */
    private Long userId;

    /** 账户id */
    @Excel(name = "账户id")
    @ApiModelProperty(value = "账户id")
    private Long accountId;

    /** 钱包类型id */
    private Integer walletType;

    /** 钱包余额/分 */
    @Excel(name = "钱包余额/分")
    @ApiModelProperty(value = "钱包余额/分")
    private BigDecimal walletBal;

    /** 最低余额限制/分 */
    @Excel(name = "最低余额限制/分")
    @ApiModelProperty(value = "最低余额限制/分")
    private BigDecimal limitBalance;

    /** 冻结金额 */
    @Excel(name = "冻结金额")
    @ApiModelProperty(value = "冻结金额")
    private BigDecimal frozenBalance;

    /** 过期时间 */
    @ApiModelProperty(value = "过期时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiredTime;

    /** 最后一次补贴金额/分 */
    @Excel(name = "最后一次补贴金额/分")
    @ApiModelProperty(value = "最后一次补贴金额/分")
    private Long lastSubsidyAmount;

    /** 最后一次补贴日期 */
    @ApiModelProperty(value = "最后一次补贴日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后一次补贴日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastSubsidyTime;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

}
