package com.cool.store.request.plan;

import com.cool.store.common.InsertGroup;
import com.cool.store.common.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 城市规划编辑请求
 */
@Data
public class CityPlanningUpdateRequest {
    @ApiModelProperty(value = "规划id")
    @NotNull(message = "规划id不能为空", groups = {UpdateGroup.class})
    private Long id;
    
    @ApiModelProperty(value = "省区划代码")
    @NotBlank(message = "省区划代码不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String provinceCode;

    @ApiModelProperty(value = "市区划代码")
    @NotBlank(message = "市区划代码不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String cityCode;

    @ApiModelProperty(value = "年份")
    @NotNull(message = "年份不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private Integer year;

    @ApiModelProperty(value = "季度")
    @NotNull(message = "季度不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private Integer quarter;

    @ApiModelProperty(value = "季度目标")
    @NotNull(message = "季度目标不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private Integer target;
}

