mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 07:11:52 +08:00
refactor: 会员商品收藏
This commit is contained in:
parent
daa7d14b09
commit
5facac7330
@ -16,6 +16,4 @@ public class ProductFavoriteBaseVO {
|
||||
@NotNull(message = "用户编号不能为空")
|
||||
private Long userId;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,21 +0,0 @@
|
||||
package cn.iocoder.yudao.module.product.controller.admin.favorite.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;
|
||||
|
||||
@Schema(description = "管理后台 - 商品收藏的批量 Request VO")
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
public class ProductFavoriteBatchReqVO extends ProductFavoriteBaseVO{
|
||||
|
||||
@Schema(description = "商品 SPU 编号数组", requiredMode = REQUIRED, example = "29502")
|
||||
@NotNull(message = "商品 SPU 编号数组不能为空")
|
||||
private List<Long> spuIds;
|
||||
|
||||
}
|
@ -5,11 +5,6 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 商品收藏分页 Request VO")
|
||||
@Data
|
||||
@ -19,17 +14,4 @@ public class ProductFavoritePageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "用户编号", example = "5036")
|
||||
private Long userId;
|
||||
|
||||
@Schema(description = "商品 SPU 编号", example = "32734")
|
||||
private Long spuId;
|
||||
|
||||
@Schema(description = "收藏时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "商品名称", example = "5036")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "关键字", example = "5036")
|
||||
private String keyword;
|
||||
}
|
||||
|
@ -15,8 +15,4 @@ public class ProductFavoriteRespVO extends ProductSpuRespVO {
|
||||
|
||||
@Schema(description = "spuId", requiredMode = Schema.RequiredMode.REQUIRED, example = "111")
|
||||
private Long spuId;
|
||||
|
||||
@Schema(description = "收藏状态", example = "1")
|
||||
private Integer favoriteStatus;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user