dev798
parent
5cd53b0931
commit
8afb95bbfc
|
@ -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;
|
||||||
|
}
|
|
@ -4,6 +4,7 @@ import com.muyu.common.core.domain.AjaxResult;
|
||||||
import com.muyu.product.domain.DTO.ProductTypeAttr;
|
import com.muyu.product.domain.DTO.ProductTypeAttr;
|
||||||
import com.muyu.product.domain.Resp.ProductTypeResp;
|
import com.muyu.product.domain.Resp.ProductTypeResp;
|
||||||
import com.muyu.product.service.TypeService;
|
import com.muyu.product.service.TypeService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
@ -18,6 +19,7 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/type")
|
@RequestMapping("/type")
|
||||||
|
@Api("类型管理")
|
||||||
public class TypeController {
|
public class TypeController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.muyu.product.mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: wangxinyuan
|
||||||
|
* @Date: 2024/4/2 19:51
|
||||||
|
*/
|
||||||
|
public interface BrandMapper {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
package com.muyu.product.service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: wangxinyuan
|
||||||
|
* @Date: 2024/4/2 19:51
|
||||||
|
*/
|
||||||
|
public interface BrandService {
|
||||||
|
}
|
|
@ -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 {
|
||||||
|
}
|
|
@ -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>
|
Loading…
Reference in New Issue