更新优化提示,优化分类图片返回

This commit is contained in:
lhd
2024-04-23 10:07:49 +08:00
parent 37bffbd11c
commit d7efa6b244
3 changed files with 23 additions and 10 deletions

View File

@@ -13,6 +13,8 @@ package com.yami.shop.bean.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yami.shop.common.serializer.json.ImgJsonSerializer;
import lombok.Data;
import java.io.Serializable;
@@ -25,7 +27,7 @@ import java.util.List;
@Data
@TableName("tz_category")
public class Category implements Serializable {
/**
* 类目ID
*
@@ -38,7 +40,7 @@ public class Category implements Serializable {
* 店铺id
*/
private Long shopId;
/**
* 父节点
*/
@@ -57,6 +59,7 @@ public class Category implements Serializable {
/**
* 类目的显示图片
*/
@JsonSerialize(using = ImgJsonSerializer.class)
private String pic;
/**
@@ -83,13 +86,13 @@ public class Category implements Serializable {
* 更新时间
*/
private Date updateTime;
/**
* 品牌id
*/
@TableField(exist=false)
private List<Long> brandIds;
/**
* 参数id
*/
@@ -101,19 +104,19 @@ public class Category implements Serializable {
*/
@TableField(exist=false)
private List<Brand> brands;
/**
* 参数列表
*/
@TableField(exist=false)
private List<ProdProp> prodProps;
/**
* 商品列表
*/
@TableField(exist=false)
private List<Product> products;
@TableField(exist=false)
private List<Category> categories;
}
}