package com.doumee.dao.dto; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.NotNull; import java.io.Serializable; /** * 异地寄送规则项 * @author rk * @date 2026/04/08 */ @Data @ApiModel("异地寄送规则项") public class RemoteDeliveryPricingItemDTO implements Serializable { @ApiModelProperty(value = "物品规格主键(category.id, type=4)", required = true, example = "1") @NotNull(message = "物品规格主键不能为空") private Integer categoryId; @ApiModelProperty(value = "配送起步里程公里数", required = true, example = "5") @NotNull(message = "配送起步里程不能为空") private String startDistance; @ApiModelProperty(value = "配送起步里程每公里单价", required = true, example = "3.00") @NotNull(message = "配送起步里程每公里单价不能为空") private String startPrice; @ApiModelProperty(value = "超出首单里程公里数", required = true, example = "10") @NotNull(message = "超出首单里程不能为空") private String extraDistance; @ApiModelProperty(value = "超出首单里程每公里单价", required = true, example = "2.00") @NotNull(message = "超出首单里程每公里单价不能为空") private String extraPrice; }