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 EstimatedDeliverySaveDTO implements Serializable {
|
|
@ApiModelProperty(value = "规则主键(修改时必传)")
|
private Integer id;
|
|
@ApiModelProperty(value = "城市主键", required = true, example = "1")
|
@NotNull(message = "城市主键不能为空")
|
private Integer cityId;
|
|
@ApiModelProperty(value = "配送里程(公里)", required = true, example = "10")
|
@NotNull(message = "配送里程不能为空")
|
private String distance;
|
|
@ApiModelProperty(value = "配送时长(小时)", required = true, example = "2")
|
@NotNull(message = "配送时长不能为空")
|
private String duration;
|
}
|