package com.crm.rely.backend.core.entity.finance.transfer;

import com.crm.rely.backend.core.constant.PayConstant;
import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class FinanceTransferAddEntity extends BaseAddEntity {

    /**
     * 用户id
     */
    private Long customId;

    /**
     * 转账金额
     */
    @NotNull(message = PayConstant.FINANCE_TRANSFER_AMOUNT_NOT_EMPTY)
    private BigDecimal amount;

    /**
     * 出金账户(转出)
     */
    @NotNull(message = PayConstant.PAY_LOGIN_NOT_EMPTY)
    private Long withdrawLogin;

    /**
     * 入金账户(转入)
     */
    @NotNull(message = PayConstant.PAY_LOGIN_NOT_EMPTY)
    private  Long depositLogin;

    private Long cId;
}
