package com.oying.modules.pc.store.domain.dto;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
import java.math.BigDecimal;
|
import java.time.LocalTime;
|
|
@Data
|
public class StoreFieldUpdateRequest {
|
|
@NotNull
|
private Long storeId;
|
|
public interface UpdateStorePlatformCategoryGroup{}
|
|
@NotNull(groups = UpdateStorePlatformCategoryGroup.class)
|
private Long platformCategoryId;
|
|
public interface UpdateStoreNameGroup{}
|
|
@NotBlank(groups = UpdateStoreNameGroup.class)
|
private String storeName;
|
|
public interface UpdateStoreTitleGroup{}
|
|
@NotBlank(groups = UpdateStoreTitleGroup.class)
|
private String storeTitle;
|
|
public interface UpdateStoreBusinessStatusGroup {}
|
|
@NotNull(groups = UpdateStoreBusinessStatusGroup.class)
|
private Integer businessStatus;
|
|
@ApiModelProperty(value = "店铺logo图片")
|
private Long logoImageId;
|
|
public interface UpdateStoreLogoImageGroup{}
|
|
@NotBlank(groups = UpdateStoreLogoImageGroup.class)
|
private String logoImageUploadId;
|
|
@ApiModelProperty(value = "店铺封面图")
|
private Long coverImageId;
|
|
public interface UpdateStoreCoverImageGroup{}
|
|
@NotBlank(groups = UpdateStoreCoverImageGroup.class)
|
private String coverImageUploadId;
|
|
public interface UpdateStoreDescriptionGroup{}
|
|
@NotBlank(groups = UpdateStoreDescriptionGroup.class)
|
private String description;
|
|
public interface UpdateStoreDeliveryFeeGroup{}
|
|
@NotNull(groups = UpdateStoreDeliveryFeeGroup.class)
|
private BigDecimal deliveryFee;
|
|
public interface UpdateStorePackagingFeeGroup{}
|
|
@NotNull(groups = UpdateStorePackagingFeeGroup.class)
|
private BigDecimal packagingFee;
|
|
public interface UpdateStoreDeliveryMinimumGroup{}
|
|
@NotNull(groups = UpdateStoreDeliveryMinimumGroup.class)
|
private BigDecimal deliveryMinimum;
|
|
public interface UpdateStoreContactPhoneGroup{}
|
|
@NotBlank(groups = UpdateStoreContactPhoneGroup.class)
|
private String contactPhone;
|
|
public interface UpdateStoreBusinessHoursGroup{}
|
|
@NotNull(groups = UpdateStoreBusinessHoursGroup.class)
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
|
private LocalTime openTime;
|
|
@NotNull(groups = UpdateStoreBusinessHoursGroup.class)
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
|
private LocalTime closeTime;
|
|
public interface UpdateStoreAddressGroup{}
|
|
@NotBlank(groups = UpdateStoreAddressGroup.class)
|
private String address;
|
|
public interface UpdateStoreLocationGroup{}
|
|
@NotNull(groups = UpdateStoreLocationGroup.class)
|
private Double longitude;
|
|
@NotNull(groups = UpdateStoreLocationGroup.class)
|
private Double latitude;
|
|
public interface UpdateStoreRadiusGroup{}
|
|
@NotNull(groups = UpdateStoreRadiusGroup.class)
|
private Integer radius;
|
|
@ApiModelProperty(value = "是否支持退货")
|
private Integer returns;
|
|
@ApiModelProperty(value = "是否支持自提")
|
private Integer selfPickup;
|
|
@ApiModelProperty(value = "版本号")
|
private Long version;
|
|
}
|