package com.ruoyi.ss.channelWithdraw.domain;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonView;
import com.ruoyi.common.core.domain.JsonViewProfile;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.Min;

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

    @JsonView(JsonViewProfile.App.class)
    private Long channelId;

    @Excel(name = "渠道名称")
    @ApiModelProperty("渠道名称")
    @JsonView(JsonViewProfile.App.class)
    private String name;

    @Excel(name = "对应账户类型")
    @ApiModelProperty("对应账户类型")
    @JsonView(JsonViewProfile.App.class)
    private String accountType;

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

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

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

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

    @Excel(name = "图片")
    @ApiModelProperty("图片")
    @JsonView(JsonViewProfile.App.class)
    private String picture;

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

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

}
