Commit 744e52ab authored by zhh's avatar zhh
Browse files

swagger文档注释修改

parent 3f265254
...@@ -20,6 +20,7 @@ import java.util.List; ...@@ -20,6 +20,7 @@ import java.util.List;
* 品牌功能Controller * 品牌功能Controller
*/ */
@Controller @Controller
@Api(tags = "PmsBrandController",description = "商品品牌管理")
@RequestMapping("/brand") @RequestMapping("/brand")
public class PmsBrandController { public class PmsBrandController {
@Autowired @Autowired
......
...@@ -3,6 +3,7 @@ package com.macro.mall.controller; ...@@ -3,6 +3,7 @@ package com.macro.mall.controller;
import com.macro.mall.dto.CommonResult; import com.macro.mall.dto.CommonResult;
import com.macro.mall.model.PmsProductAttributeCategory; import com.macro.mall.model.PmsProductAttributeCategory;
import com.macro.mall.service.PmsProductAttributeCategoryService; import com.macro.mall.service.PmsProductAttributeCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
...@@ -16,6 +17,7 @@ import java.util.List; ...@@ -16,6 +17,7 @@ import java.util.List;
* 商品属性分类Controller * 商品属性分类Controller
*/ */
@Controller @Controller
@Api(tags = "PmsProductAttributeCategoryController",description = "商品属性分类管理")
@RequestMapping("/productAttribute/category") @RequestMapping("/productAttribute/category")
public class PmsProductAttributeCategoryController { public class PmsProductAttributeCategoryController {
@Autowired @Autowired
......
package com.macro.mall.controller; package com.macro.mall.controller;
import com.macro.mall.service.PmsProductAttributeService; import com.macro.mall.service.PmsProductAttributeService;
import io.swagger.annotations.Api;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -11,6 +12,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -11,6 +12,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
* 商品属性管理Controller * 商品属性管理Controller
*/ */
@Controller @Controller
@Api(tags = "PmsProductAttributeController",description = "商品属性管理")
@RequestMapping("/productAttribute") @RequestMapping("/productAttribute")
public class PmsProductAttributeController { public class PmsProductAttributeController {
private static final Logger LOGGER = LoggerFactory.getLogger(PmsProductAttributeController.class); private static final Logger LOGGER = LoggerFactory.getLogger(PmsProductAttributeController.class);
......
...@@ -4,6 +4,7 @@ import com.macro.mall.dto.CommonResult; ...@@ -4,6 +4,7 @@ import com.macro.mall.dto.CommonResult;
import com.macro.mall.dto.PmsProductCategoryParam; import com.macro.mall.dto.PmsProductCategoryParam;
import com.macro.mall.model.PmsProductCategory; import com.macro.mall.model.PmsProductCategory;
import com.macro.mall.service.PmsProductCategoryService; import com.macro.mall.service.PmsProductCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
...@@ -19,6 +20,7 @@ import java.util.List; ...@@ -19,6 +20,7 @@ import java.util.List;
* 商品分类模块Controller * 商品分类模块Controller
*/ */
@Controller @Controller
@Api(tags = "PmsProductCategoryController",description = "商品分类管理")
@RequestMapping("/productCategory") @RequestMapping("/productCategory")
public class PmsProductCategoryController { public class PmsProductCategoryController {
@Autowired @Autowired
......
package com.macro.mall.controller; package com.macro.mall.controller;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
...@@ -7,6 +8,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -7,6 +8,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
* 商品管理Controller * 商品管理Controller
*/ */
@Controller @Controller
@Api(tags = "PmsProductController",description = "商品管理")
@RequestMapping("/product") @RequestMapping("/product")
public class PmsProductController { public class PmsProductController {
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment