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.NotBlank;
import javax.validation.constraints.NotNull;

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

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

    /**
     * 分配对象类型
     */
    @ApiModelProperty(name = "objectType", value = "分配对象类型(1: 平台用户，2企业内部成员)")
    private String objectType;

    /**
     * 分配对象
     */
    @ApiModelProperty(name = "userPhone", value = "分配对象")
    @NotBlank(message = "手机号不能为空")
    private String userPhone;

    /**
     * 分配金额
     */
    @ApiModelProperty(name = "distributionCost", value = "分配金额")
    @NotNull(message = "分配金额不能为空")
    @Min(value = 1, message = "分配金额要大于0")
    @Max(value = 1000000, message = "充值金额不得超过1万元")
    private Long distributionCost;

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

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

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