package com.hotwj.platform.operationManagement.fundAccount.domain.bo;

import com.hotwj.platform.operationManagement.fundAccount.domain.HotFundAccount;
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;

/**
 * 资金账户业务对象 hot_fund_account
 *
 * @author shihongwei
 * @date 2026-04-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotFundAccount.class, reverseConvertGenerate = false)
public class HotFundAccountBo extends BaseEntity {

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

    /**
     * 公司ID（应用层保证必填）
     */
    private Long companyId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 账户编号
     */
    private String accountNo;

    /**
     * 账户类型：1=个人 2=企业
     */
    private Long accountType;

    /**
     * 可用余额
     */
    private BigDecimal balanceAmount;

    /**
     * 状态：1=正常 0=禁用
     */
    private Long status;

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


}
