package com.ruoyi.ss.channelWithdraw.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 提现渠道对象 e_channel_withdraw
 *
 * @author ruoyi
 * @date 2024-08-02
 */
@Data
public class ChannelWithdraw extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long channelId;

    @Excel(name = "渠道名称")
    @ApiModelProperty("渠道名称")
    private String name;

    @Excel(name = "服务费收取类型")
    @ApiModelProperty("服务费收取类型")
    private String handlingChargeType;

    @Excel(name = "服务费")
    @ApiModelProperty("服务费")
    private BigDecimal withdrawHandlingCharge;

    @Excel(name = "是否启用")
    @ApiModelProperty("是否启用")
    private Boolean enabled;

    @Excel(name = "渠道成本率")
    @ApiModelProperty("渠道成本率")
    private BigDecimal costRate;

    @Excel(name = "图片")
    @ApiModelProperty("图片")
    private String picture;

    @ApiModelProperty("单笔最低提现金额")
    @Min(value = 0, message = "单笔最低提现金额不能小于0")
    private BigDecimal minAmount;

    @ApiModelProperty("单笔最高提现金额")
    @Min(value = 0, message = "单笔最高提现金额不能小于0")
    private BigDecimal maxAmount;

    /** 是否需要上传收款码：0-不需要；1-需要 */
    @Excel(name = "是否需要上传收款码")
    private Boolean isNeedCode;

    /** 提现类型：1-线上；2-线下 */
    @ApiModelProperty("提现类型")
    private String type;

    /** 是否自动转账 */
    @ApiModelProperty("是否自动转账")
    private Boolean isAuto;

}
