From 5fd317424dbb8b1399e5f28352792b19a0b14919 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Sun, 14 Jun 2026 16:31:31 +0800
Subject: [PATCH] refactor(mall): 移除商品分类查询中的冗余过滤逻辑

---
 src/main/java/cc/mrbird/febs/mall/dto/AddCollectionDto.java |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/dto/AddCollectionDto.java b/src/main/java/cc/mrbird/febs/mall/dto/AddCollectionDto.java
index 1316118..5ec7e90 100644
--- a/src/main/java/cc/mrbird/febs/mall/dto/AddCollectionDto.java
+++ b/src/main/java/cc/mrbird/febs/mall/dto/AddCollectionDto.java
@@ -5,10 +5,14 @@
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
+
 @Data
 @ApiModel(value = "AddCollectionDto", description = "添加收藏接受参数类")
 public class AddCollectionDto {
 
+    @NotNull(message = "The product cannot be empty")
     @ApiModelProperty(value = "商品ID")
     private Long goodsId;
 }

--
Gitblit v1.9.1