package com.sqx.modules.shop.dto;

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

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

/**
 * 商户审核dto
 *
 * @author : codingliang
 * @date : 2024-08-20 9:42
 */
@Data
@ApiModel("商户审核DTO")
public class ShopAuditDTO {

    @ApiModelProperty(value = "审核状态 1通过  2拒绝", required = true)
    @NotNull(message = "审核状态不能为空")
    @Max(value = 2, message = "审核状态只能为1或2")
    @Min(value = 1, message = "审核状态只能为1或2")
    private Integer auditStatus;

    @ApiModelProperty("审核备注")
    private String auditReason;

    @ApiModelProperty("商家佣金比例 0-1")
    @Min(value = 0, message = "商家佣金比例不能小于0")
    @Max(value = 1, message = "商家佣金比例不能大于1")
    private BigDecimal shopRate;
}
