mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
更新优化提示,优化分类图片返回
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user