package com.yuchen.saas.payment.api.dto.wallet;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author zhouhanwei
 * @create 2023/11/2 10:47
 */
@Data
public class DeductChildWalletReqDTO {

    /**
     * 所属机构钱包id
     */
    @ApiModelProperty(name = "orgWalletId", value = "所属机构钱包id")
    @NotNull(message = "主机构钱包id不能为空")
    private Long orgWalletId;

    /**
     * 子机构钱包id不能为空
     */
    @ApiModelProperty(name = "orgChildWalletId", value = "子机构钱包id不能为空")
    @NotNull(message = "子机构钱包id不能为空")
    private Long orgChildWalletId;


    /**
     * 扣回额度
     */
    @ApiModelProperty(name = "distributionCost", value = "扣回额度")
    @NotNull(message = "扣回额度不能为空")
    @Min(value = 1, message = "扣回额度要大于0")
    @Max(value = 1000000, message = "扣回额度不得超过1万元")
    private Long deductCost;

    /**
     * 备注
     */
    private String remark;

    /**
     * 运营商名称
     */
    private String operatorName;

    /**
     * 运营商名称
     */
    private Long operatorId;
}
