package com.oying.modules.pc.store.domain.dto; import cn.hutool.core.collection.CollUtil; import cn.hutool.json.JSONUtil; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import java.time.LocalTime; import java.util.ArrayList; import java.util.List; @Data public class StoreCreateRequest { @NotBlank @ApiModelProperty(value = "店铺全称", example = "重庆永辉超市新纪元店") private String storeName; /*@NotBlank @ApiModelProperty(value = "店铺简称", example = "永辉超市(新纪元店)") private String storeShortName;*/ @NotNull @ApiModelProperty(value = "店铺LOGO文件ID", example = "14567785444763247876234") private Long logoUploadFileId; @ApiModelProperty(value = "店铺门户图片ID", example = "276409837458893793939") private Long coverUploadFileId; @NotBlank @ApiModelProperty(value = "平台类目ID", example = "29784639387324848347230") private Long platformCategoryId; @ApiModelProperty(value = "简介", example = " ") private String description; @NotBlank @ApiModelProperty(value = "店铺联系电话", example = "13800000001") private String contactPhone; @ApiModelProperty(value = "营业开始时间", example = "08:00") private LocalTime openTime; @ApiModelProperty(value = "营业结束时间", example = "22:00") private LocalTime closeTime; @NotBlank @ApiModelProperty(value = "店铺地址", example = "276409837458893793939") private String address; @NotNull @ApiModelProperty(value = "店铺坐标经度", example = "121.505978") private Double longitude; @NotNull @ApiModelProperty(value = "店铺坐标纬度", example = "31.144515") private Double latitude; @ApiModelProperty(value = "营业半径(米)") private Integer radius; @ApiModelProperty(value = "是否支持退货") private Integer returns; @ApiModelProperty(value = "是否支持自提") private Integer selfPickup; @ApiModelProperty(value = "店铺资质", example = "[]") private List qualificationList = new ArrayList<>(); public boolean hasQualificationList() { return CollUtil.isNotEmpty(this.qualificationList); } }