package org.dromara.main.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.main.domain.Withdraw;

import java.math.BigDecimal;

/**
 * 提现申请业务对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Withdraw.class, reverseConvertGenerate = false)
public class WithdrawBo extends BaseEntity {

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

    private String withdrawNo;

    private Long companyId;

    @NotNull(message = "收款账户不能为空", groups = { AddGroup.class })
    private Long accountId;

    @NotNull(message = "提现金额不能为空", groups = { AddGroup.class })
    private BigDecimal amount;

    private Integer withdrawStatus;

    private String smsCode;
}
