package com.fs.store.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;


@Getter
@Setter
public class RegionInfoDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "请填写可配送区域")
    private String regionName;

    @NotBlank(message = "请填写首件")
    private String first;

    @NotBlank(message = "请填写首件价格")
    private String price;

    @NotBlank(message = "请填写续件")
    @JsonProperty("continues")
    private String continues;

    @NotBlank(message = "请填写续件价格")
    private String continuePrice;

    private List<RegionDTO> region;
}
