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

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

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

@Data
public class FinanceCustomTransferAddEntity extends BaseAddEntity {

    private Long customId;

    /**
     * 转账金额
     */
    @NotNull(message = PayConstant.FINANCE_TRANSFER_AMOUNT_NOT_EMPTY)
    @Min(value = 0, message = Constants.PARAMETER_ERROR)
    private BigDecimal amount;

    @NotNull(message = PayConstant.PAY_LOGIN_NOT_EMPTY)
    private Long login;

    private Long cId;
}
