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

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

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

@Data
public class FinanceTransferAddEntity extends BaseAddEntity {

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

    /**
     * 转账金额
     */
    @NotNull
    @Min(value = 0)
    private BigDecimal amount;

    /**
     * 出金账户(转出)
     */
    private Long withdrawLogin;

    /**
     * 入金账户(转入)
     */
    @NotNull
    private Long depositLogin;

    private Long cId;


    /**
     * 1 交易账户 2美金账户 3人民币账户
     */
    @NotNull
    @Min(value = 1)
    @Max(value = 2)
    private Integer sourceType;
}
