package cn.iocoder.yudao.module.system.controller.admin.carteen.vo;

import cn.hutool.core.lang.RegexPool;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 门店管理新增/修改 Request VO")
@Data
public class CarteenSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1824")
    private Long id;

    @Schema(description = "门店名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "门店名称不能为空")
    private String storesName;

    @Schema(description = "门店状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "门店状态不能为空")
    private Boolean status;

    @Schema(description = "多储位管理", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "多储位管理不能为空")
    private Boolean multipleManage;

    @Schema(description = "是否启用公众号点餐", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "是否启用公众号点餐,不能为空")
    private Boolean accountOrder;

    @Schema(description = "门店地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "门店地址不能为空")
    private String storeAddress;

    @Schema(description = "联系电话", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "联系电话不能为空或者格式错误")
    @Pattern(regexp = RegexPool.MOBILE, message = "联系电话格式不正确")
    private String phone;

}