package com.fzm.mall.server.admin.distribution.entity.dto;

import com.fzm.mall.server.admin.constant.MallResponseError;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 物流中心-运费模板-指定地区运费规则
 * </p>
 *
 * @author wulixian
 * @since 2021-03-04
 */
@Data
@ApiModel(value="TemplateItem新增对象", description="物流中心-运费模板-指定地区运费规则")
public class TemplateItemSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "计价方式（1-按件数,2-按重量,3-满金额包邮,4-满数量包邮,5-不支持下单）", required = true)
    @NotNull(message = MallResponseError.NULL_PARAM_ERROR)
    private Integer pricingType;

    @ApiModelProperty(value = "基数（件或KG）")
    private BigDecimal baseNumber;

    @ApiModelProperty(value = "基数对应的费用")
    private BigDecimal baseAmount;

    @ApiModelProperty(value = "续件数（件或KG）")
    private BigDecimal addNumber;

    @ApiModelProperty(value = "续件单价")
    private BigDecimal addCost;

    @ApiModelProperty(value = "满足包邮的金额或数量")
    private BigDecimal freeShippingAmount;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "运送地区")
    private String deliveryArea;
}
