From 8afb95bbfc857f009f97d229d6bc12ab57ad042d Mon Sep 17 00:00:00 2001 From: wxy Date: Tue, 2 Apr 2024 20:04:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../product/controller/BrandController.java | 20 +++++++++++++++++++ .../product/controller/TypeController.java | 2 ++ .../com/muyu/product/mapper/BrandMapper.java | 11 ++++++++++ .../muyu/product/service/BrandService.java | 8 ++++++++ .../service/impl/BrandServiceImpl.java | 12 +++++++++++ .../resources/mapper/product/BrandMapper.xml | 11 ++++++++++ 6 files changed, 64 insertions(+) create mode 100644 muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/BrandController.java create mode 100644 muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/BrandMapper.java create mode 100644 muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/BrandService.java create mode 100644 muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/BrandServiceImpl.java create mode 100644 muyu-modules/muyu-product/muyu-product-server/src/main/resources/mapper/product/BrandMapper.xml diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/BrandController.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/BrandController.java new file mode 100644 index 0000000..8a31770 --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/BrandController.java @@ -0,0 +1,20 @@ +package com.muyu.product.controller; + +import com.muyu.product.service.BrandService; +import io.swagger.annotations.Api; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @Author: wangxinyuan + * @Date: 2024/4/2 19:49 + */ +@RestController +@RequestMapping("/brand") +@Api("品牌管理") +public class BrandController { + + @Autowired + private BrandService brandService; +} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/TypeController.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/TypeController.java index 1f21343..63e0c76 100644 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/TypeController.java +++ b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/TypeController.java @@ -4,6 +4,7 @@ import com.muyu.common.core.domain.AjaxResult; import com.muyu.product.domain.DTO.ProductTypeAttr; import com.muyu.product.domain.Resp.ProductTypeResp; import com.muyu.product.service.TypeService; +import io.swagger.annotations.Api; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; @@ -18,6 +19,7 @@ import java.util.List; */ @RestController @RequestMapping("/type") +@Api("类型管理") public class TypeController { @Autowired diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/BrandMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/BrandMapper.java new file mode 100644 index 0000000..7047bca --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/BrandMapper.java @@ -0,0 +1,11 @@ +package com.muyu.product.mapper; + +/** + * @Author: wangxinyuan + * @Date: 2024/4/2 19:51 + */ +public interface BrandMapper { + + + +} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/BrandService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/BrandService.java new file mode 100644 index 0000000..d86241a --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/BrandService.java @@ -0,0 +1,8 @@ +package com.muyu.product.service; + +/** + * @Author: wangxinyuan + * @Date: 2024/4/2 19:51 + */ +public interface BrandService { +} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/BrandServiceImpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/BrandServiceImpl.java new file mode 100644 index 0000000..389872a --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/BrandServiceImpl.java @@ -0,0 +1,12 @@ +package com.muyu.product.service.impl; + +import com.muyu.product.service.BrandService; +import org.springframework.stereotype.Service; + +/** + * @Author: wangxinyuan + * @Date: 2024/4/2 19:51 + */ +@Service +public class BrandServiceImpl implements BrandService { +} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/resources/mapper/product/BrandMapper.xml b/muyu-modules/muyu-product/muyu-product-server/src/main/resources/mapper/product/BrandMapper.xml new file mode 100644 index 0000000..7ccb729 --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-server/src/main/resources/mapper/product/BrandMapper.xml @@ -0,0 +1,11 @@ + + + + + + + + +