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 @@ + + + + + + + + +