|
@@ -7,7 +7,6 @@ import lombok.ToString;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
-import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
|
|
|
@Schema(description = "管理后台 - 快递运费模板更新 Request VO")
|
|
@@ -20,14 +19,38 @@ public class DeliveryExpressTemplateUpdateReqVO extends DeliveryExpressTemplateB
|
|
|
@NotNull(message = "编号不能为空")
|
|
|
private Long id;
|
|
|
|
|
|
- // TODO @jason:pojo 不给默认值哈
|
|
|
-
|
|
|
@Schema(description = "区域运费列表")
|
|
|
@Valid
|
|
|
- private List<ExpressTemplateChargeUpdateVO> templateCharge = Collections.emptyList();
|
|
|
+ private List<ExpressTemplateChargeUpdateVO> templateCharge;
|
|
|
|
|
|
@Schema(description = "包邮区域列表")
|
|
|
@Valid
|
|
|
- private List<ExpressTemplateFreeUpdateVO> templateFree = Collections.emptyList();
|
|
|
+ private List<ExpressTemplateFreeUpdateVO> templateFree;
|
|
|
+
|
|
|
+ @Schema(description = "管理后台 - 快递运费模板区域运费更新 Request VO")
|
|
|
+ @Data
|
|
|
+ public static class ExpressTemplateChargeUpdateVO extends ExpressTemplateChargeBaseVO {
|
|
|
+
|
|
|
+ @Schema(description = "编号", example = "6592")
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ // TODO @jason:这几个字段,应该不通过前端传递,而是后端查询后去赋值的
|
|
|
+ @Schema(description = "配送模板编号", example = "1")
|
|
|
+ private Long templateId;
|
|
|
+
|
|
|
+ @Schema(description = "配送计费方式", example = "1")
|
|
|
+ private Integer chargeMode;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Schema(description = "管理后台 - 快递运费模板包邮区域更新 Request VO")
|
|
|
+ @Data
|
|
|
+ public static class ExpressTemplateFreeUpdateVO extends ExpressTemplateFreeBaseVO {
|
|
|
+
|
|
|
+ @Schema(description = "编号", example = "6592")
|
|
|
+ private Long id;
|
|
|
|
|
|
+ @Schema(description = "配送模板编号", example = "1")
|
|
|
+ private Long templateId;
|
|
|
+ }
|
|
|
}
|