swagger文档注释修改

This commit is contained in:
zhh 2018-04-20 13:42:27 +08:00
parent 3f2652545f
commit 744e52abf4
5 changed files with 9 additions and 0 deletions

View File

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

View File

@ -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;
* 商品属性分类Controller * 商品属性分类Controller
*/ */
@Controller @Controller
@Api(tags = "PmsProductAttributeCategoryController",description = "商品属性分类管理")
@RequestMapping("/productAttribute/category") @RequestMapping("/productAttribute/category")
public class PmsProductAttributeCategoryController { public class PmsProductAttributeCategoryController {
@Autowired @Autowired

View File

@ -1,6 +1,7 @@
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;
* 商品属性管理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);

View File

@ -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;
* 商品分类模块Controller * 商品分类模块Controller
*/ */
@Controller @Controller
@Api(tags = "PmsProductCategoryController",description = "商品分类管理")
@RequestMapping("/productCategory") @RequestMapping("/productCategory")
public class PmsProductCategoryController { public class PmsProductCategoryController {
@Autowired @Autowired

View File

@ -1,5 +1,6 @@
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;
* 商品管理Controller * 商品管理Controller
*/ */
@Controller @Controller
@Api(tags = "PmsProductController",description = "商品管理")
@RequestMapping("/product") @RequestMapping("/product")
public class PmsProductController { public class PmsProductController {
} }