package com.sqx.modules.address.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class InsideAddressUpdateStatusDto {
    @ApiModelProperty(name = "id，修改时不能为空")
    private Long id;

    @ApiModelProperty(name = "启用状态;1启用、0禁用")
    @NotBlank(message = "启用状态不能为空")
    @Pattern(regexp = "0|1", message = "启用状态只能为0或1")
    private String status;
}
