From b394df082b875856884d6d02cce2a43c49ad6704 Mon Sep 17 00:00:00 2001 From: xin <1099200748@qq.com> Date: Fri, 30 May 2025 16:44:46 +0800 Subject: [PATCH] Merge branch 'feature/pc-base' into xin --- oying-system/src/main/java/com/oying/modules/pc/store/domain/dto/StoreFieldUpdateRequest.java | 92 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 92 insertions(+), 0 deletions(-) diff --git a/oying-system/src/main/java/com/oying/modules/pc/store/domain/dto/StoreFieldUpdateRequest.java b/oying-system/src/main/java/com/oying/modules/pc/store/domain/dto/StoreFieldUpdateRequest.java new file mode 100644 index 0000000..a273357 --- /dev/null +++ b/oying-system/src/main/java/com/oying/modules/pc/store/domain/dto/StoreFieldUpdateRequest.java @@ -0,0 +1,92 @@ +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; + +} -- Gitblit v1.9.3