package com.hotwj.platform.pay.domain.bo;

import com.hotwj.platform.pay.domain.PayWallet;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 会员钱包业务对象 pay_wallet
 *
 * @author shihongwei
 * @date 2026-05-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PayWallet.class, reverseConvertGenerate = false)
public class PayWalletBo extends BaseEntity {

    /**
     * 编号
     */
    @NotNull(message = "编号不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 用户编号（企业则为企业id）
     */
    @NotNull(message = "用户编号（企业则为企业id）不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 余额
     */
    @NotNull(message = "余额不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal balance;

    /**
     * 累计支出
     */
    @NotNull(message = "累计支出不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal totalExpense;

    /**
     * 累计充值
     */
    @NotNull(message = "累计充值不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal totalRecharge;

    /**
     * 冻结金额
     */
    @NotNull(message = "冻结金额不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal freezePrice;

    /**
     * 1.个人账户 2.企业账户
     */
    private Long walletType;

    /**
     * 冻结状态：0=正常 1=冻结
     */
    private Long freezeStatus;

    /**
     * 0=正常, 1=已删除
     */
    private Long isDeleted;


}
