package com.oying.modules.pc.store.domain.dto;
|
|
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;
|
|
public interface UpdateStoreLogoImageGroup{}
|
|
@NotBlank(groups = UpdateStoreLogoImageGroup.class)
|
private String logoImageUploadId;
|
|
public interface UpdateStoreCoverImageGroup{}
|
|
@NotBlank(groups = UpdateStoreCoverImageGroup.class)
|
private String coverImageUploadId;
|
|
public interface UpdateStoreDescriptionGroup{}
|
|
@NotBlank(groups = UpdateStoreDescriptionGroup.class)
|
private String description;
|
|
public interface UpdateStoreDeliveryFeeGroup{}
|
|
@NotBlank(groups = UpdateStoreDeliveryFeeGroup.class)
|
private BigDecimal deliveryFee;
|
|
public interface UpdateStoreDeliveryMinimumGroup{}
|
|
@NotBlank(groups = UpdateStoreDeliveryMinimumGroup.class)
|
private BigDecimal deliveryMinimum;
|
|
public interface UpdateStoreContactPhoneGroup{}
|
|
@NotBlank(groups = UpdateStoreContactPhoneGroup.class)
|
private String contactPhone;
|
|
public interface UpdateStoreBusinessHoursGroup{}
|
|
@NotBlank(groups = UpdateStoreBusinessHoursGroup.class)
|
private LocalTime openTime;
|
|
@NotBlank(groups = UpdateStoreBusinessHoursGroup.class)
|
private LocalTime closeTime;
|
|
public interface UpdateStoreAddressGroup{}
|
|
@NotBlank(groups = UpdateStoreAddressGroup.class)
|
private String address;
|
|
public interface UpdateStoreLocationGroup{}
|
|
@NotBlank(groups = UpdateStoreLocationGroup.class)
|
private Double longitude;
|
|
@NotBlank(groups = UpdateStoreLocationGroup.class)
|
private Double latitude;
|
|
public interface UpdateStoreRadiusGroup{}
|
|
@NotBlank(groups = UpdateStoreRadiusGroup.class)
|
private Integer radius;
|
|
}
|