Quellcode durchsuchen

预约服务 桌号管理 支持批量添加 增加桌号去重效验

qinxuyang vor 2 Monaten
Ursprung
Commit
ae7be7a83b

+ 37 - 0
alien-entity/src/main/java/shop/alien/entity/store/dto/StoreBookingTableBatchDTO.java

@@ -0,0 +1,37 @@
+package shop.alien.entity.store.dto;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * 预订服务桌号批量添加DTO
+ *
+ * @author system
+ * @since 2025-01-XX
+ */
+@Data
+@ApiModel(value = "StoreBookingTableBatchDTO", description = "预订服务桌号批量添加DTO")
+public class StoreBookingTableBatchDTO {
+
+    @ApiModelProperty(value = "门店ID", required = true)
+    private Integer storeId;
+
+    @ApiModelProperty(value = "分类ID(关联store_booking_category表)", required = true)
+    private Integer categoryId;
+
+    @ApiModelProperty(value = "桌号列表", required = true)
+    private List<TableItem> tables;
+
+    @Data
+    @ApiModel(value = "TableItem", description = "桌号项")
+    public static class TableItem {
+        @ApiModelProperty(value = "桌号", required = true)
+        private String tableNumber;
+
+        @ApiModelProperty(value = "座位数", required = true)
+        private Integer seatingCapacity;
+    }
+}