package com.wzj.soopin.transaction.domain.bo;


import com.alibaba.excel.annotation.ExcelProperty;
import com.wzj.soopin.transaction.domain.po.DivideRuleDetail;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.common.core.domain.BaseBO;
import org.dromara.common.core.enums.TenantType;


/**
 * 分账规则明细
 *
 * @author wzj
 * @date 2023-03-07
 */
@Schema(description="分账规则明细")
@Data
public class DivideRuleDetailBO extends BaseBO<DivideRuleDetail> {

    /**
     * 主键
     */
    @Schema(description ="主键")
    @ExcelProperty(value = "主键", order = 1)
    private Long id;

    /**
     * 提现码
     */

    @Schema(description ="分账规则id")
    @ExcelProperty(value = "分账规则id", order = 2)
    private Long ruleId;


    @Schema(description ="金额占比百分值")
    @ExcelProperty(value ="金额占比百分值", order = 4)
    @NotNull(message = "金额占比百分值不能为空")
    private Integer moneyPercent;

    @Schema(description ="手续费占比百分值")
    @ExcelProperty(value ="手续费占比百分值", order = 5)
    @NotNull(message = "手续费占比百分值不能为空")
    private Integer feePercent;

    /**
     * 分账租户类型，{@link TenantType}
     */
    @Schema(description ="分账租户类型 2->商家,3->代理,4->平台,5->达人")
    @ExcelProperty(value ="类型", order = 8)
    @NotNull(message = "分账租户类型不能为空")
    private Integer type;


}
