dev798
wxy 2024-04-02 20:04:57 +08:00
parent 5cd53b0931
commit 8afb95bbfc
6 changed files with 64 additions and 0 deletions

View File

@ -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;
}

View File

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

View File

@ -0,0 +1,11 @@
package com.muyu.product.mapper;
/**
* @Author: wangxinyuan
* @Date: 2024/4/2 19:51
*/
public interface BrandMapper {
}

View File

@ -0,0 +1,8 @@
package com.muyu.product.service;
/**
* @Author: wangxinyuan
* @Date: 2024/4/2 19:51
*/
public interface BrandService {
}

View File

@ -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 {
}

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.BrandMapper">
<!-- 添加其他操作方法如插入、更新、删除等 -->
</mapper>