+ * 三级分类表 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class BaseCategoryTrademark implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 编号 + */ + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 三级级分类id + */ + private Long category3Id; + + /** + * 品牌id + */ + private Long trademarkId; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + private LocalDateTime updateTime; + + private Integer isDeleted; + + +} diff --git a/guigu-ssyx-parent/model/src/main/java/com/atguigu/ssyx/model/product/SkuDetail.java b/guigu-ssyx-parent/model/src/main/java/com/atguigu/ssyx/model/product/SkuDetail.java new file mode 100644 index 0000000..c6e2cd7 --- /dev/null +++ b/guigu-ssyx-parent/model/src/main/java/com/atguigu/ssyx/model/product/SkuDetail.java @@ -0,0 +1,57 @@ +package com.atguigu.ssyx.model.product; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + *+ * spu属性值 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class SkuDetail implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * id + */ + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 商品id + */ + private Long skuId; + + /** + * 详情内容 + */ + private String detailHtml; + + /** + * 创建时间 + */ + private LocalDateTime createTime; + + /** + * 更新时间 + */ + private LocalDateTime updateTime; + + /** + * 删除标记(0:不可用 1:可用) + */ + private Integer isDeleted; + + +} diff --git a/guigu-ssyx-parent/service/pom.xml b/guigu-ssyx-parent/service/pom.xml index 36e72ea..d5ac2e9 100644 --- a/guigu-ssyx-parent/service/pom.xml +++ b/guigu-ssyx-parent/service/pom.xml @@ -14,6 +14,7 @@+ * 商品属性 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/attr") +public class AttrController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/AttrGroupController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/AttrGroupController.java new file mode 100644 index 0000000..fb67092 --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/AttrGroupController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 属性分组 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/attr-group") +public class AttrGroupController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/BaseCategoryTrademarkController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/BaseCategoryTrademarkController.java new file mode 100644 index 0000000..8772588 --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/BaseCategoryTrademarkController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 三级分类表 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/base-category-trademark") +public class BaseCategoryTrademarkController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CategoryController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CategoryController.java new file mode 100644 index 0000000..3a5b191 --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CategoryController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 商品三级分类 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/category") +public class CategoryController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CommentController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CommentController.java new file mode 100644 index 0000000..7710995 --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CommentController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 商品评价 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/comment") +public class CommentController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CommentReplayController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CommentReplayController.java new file mode 100644 index 0000000..414a0b5 --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/CommentReplayController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 产品评价回复表 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/comment-replay") +public class CommentReplayController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/MqRepeatRecordController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/MqRepeatRecordController.java new file mode 100644 index 0000000..a754393 --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/MqRepeatRecordController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * mq去重表 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/mq-repeat-record") +public class MqRepeatRecordController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/RegionWareController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/RegionWareController.java new file mode 100644 index 0000000..447d25f --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/RegionWareController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 城市仓库关联表 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/region-ware") +public class RegionWareController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuAttrValueController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuAttrValueController.java new file mode 100644 index 0000000..edd6252 --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuAttrValueController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * spu属性值 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/sku-attr-value") +public class SkuAttrValueController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuDetailController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuDetailController.java new file mode 100644 index 0000000..488ad77 --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuDetailController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * spu属性值 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/sku-detail") +public class SkuDetailController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuImageController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuImageController.java new file mode 100644 index 0000000..7118307 --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuImageController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 商品图片 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/sku-image") +public class SkuImageController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuInfoController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuInfoController.java new file mode 100644 index 0000000..c546587 --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuInfoController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * sku信息 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/sku-info") +public class SkuInfoController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuPosterController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuPosterController.java new file mode 100644 index 0000000..2e2a31c --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuPosterController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 商品海报表 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/sku-poster") +public class SkuPosterController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuStockHistoryController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuStockHistoryController.java new file mode 100644 index 0000000..46ba08e --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/SkuStockHistoryController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * sku的库存历史记录 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/sku-stock-history") +public class SkuStockHistoryController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/WareController.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/WareController.java new file mode 100644 index 0000000..3faf9d8 --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/controller/WareController.java @@ -0,0 +1,20 @@ +package com.atguigu.ssyx.product.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 仓库表 前端控制器 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@RestController +@RequestMapping("/product/ware") +public class WareController { + +} + diff --git a/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/AttrGroupMapper.java b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/AttrGroupMapper.java new file mode 100644 index 0000000..33c50b9 --- /dev/null +++ b/guigu-ssyx-parent/service/service-product/src/main/java/com/atguigu/ssyx/product/mapper/AttrGroupMapper.java @@ -0,0 +1,16 @@ +package com.atguigu.ssyx.product.mapper; + +import com.atguigu.ssyx.model.product.AttrGroup; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + *+ * 属性分组 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface AttrGroupMapper extends BaseMapper+ * 商品属性 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface AttrMapper extends BaseMapper+ * 三级分类表 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface BaseCategoryTrademarkMapper extends BaseMapper+ * 商品三级分类 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface CategoryMapper extends BaseMapper+ * 商品评价 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface CommentMapper extends BaseMapper+ * 产品评价回复表 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface CommentReplayMapper extends BaseMapper+ * mq去重表 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface MqRepeatRecordMapper extends BaseMapper+ * 城市仓库关联表 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface RegionWareMapper extends BaseMapper+ * spu属性值 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface SkuAttrValueMapper extends BaseMapper+ * spu属性值 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface SkuDetailMapper extends BaseMapper+ * 商品图片 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface SkuImageMapper extends BaseMapper+ * sku信息 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface SkuInfoMapper extends BaseMapper+ * 商品海报表 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface SkuPosterMapper extends BaseMapper+ * sku的库存历史记录 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface SkuStockHistoryMapper extends BaseMapper+ * 仓库表 Mapper 接口 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface WareMapper extends BaseMapper+ * 属性分组 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface AttrGroupService extends IService+ * 商品属性 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface AttrService extends IService+ * 三级分类表 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface BaseCategoryTrademarkService extends IService+ * 商品三级分类 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface CategoryService extends IService+ * 产品评价回复表 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface CommentReplayService extends IService+ * 商品评价 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface CommentService extends IService+ * mq去重表 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface MqRepeatRecordService extends IService+ * 城市仓库关联表 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface RegionWareService extends IService+ * spu属性值 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface SkuAttrValueService extends IService+ * spu属性值 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface SkuDetailService extends IService+ * 商品图片 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface SkuImageService extends IService+ * sku信息 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface SkuInfoService extends IService+ * 商品海报表 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface SkuPosterService extends IService+ * sku的库存历史记录 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface SkuStockHistoryService extends IService+ * 仓库表 服务类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +public interface WareService extends IService+ * 属性分组 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class AttrGroupServiceImpl extends ServiceImpl+ * 商品属性 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class AttrServiceImpl extends ServiceImpl+ * 三级分类表 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class BaseCategoryTrademarkServiceImpl extends ServiceImpl+ * 商品三级分类 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class CategoryServiceImpl extends ServiceImpl+ * 产品评价回复表 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class CommentReplayServiceImpl extends ServiceImpl+ * 商品评价 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class CommentServiceImpl extends ServiceImpl+ * mq去重表 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class MqRepeatRecordServiceImpl extends ServiceImpl+ * 城市仓库关联表 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class RegionWareServiceImpl extends ServiceImpl+ * spu属性值 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class SkuAttrValueServiceImpl extends ServiceImpl+ * spu属性值 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class SkuDetailServiceImpl extends ServiceImpl+ * 商品图片 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class SkuImageServiceImpl extends ServiceImpl+ * sku信息 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class SkuInfoServiceImpl extends ServiceImpl+ * 商品海报表 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class SkuPosterServiceImpl extends ServiceImpl+ * sku的库存历史记录 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class SkuStockHistoryServiceImpl extends ServiceImpl+ * 仓库表 服务实现类 + *
+ * + * @author atguigu + * @since 2023-09-15 + */ +@Service +public class WareServiceImpl extends ServiceImpl