瀏覽代碼

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

qinxuyang 2 月之前
父節點
當前提交
ae7be7a83b
共有 1 個文件被更改,包括 37 次插入0 次删除
  1. 37 0
      alien-entity/src/main/java/shop/alien/entity/store/dto/StoreBookingTableBatchDTO.java

+ 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;
+    }
+}