diff --git a/src/main/java/com/cultural/heritage/controller/good/CategoryController.java b/src/main/java/com/cultural/heritage/controller/good/CategoryController.java index 5e4401b..e2523f6 100644 --- a/src/main/java/com/cultural/heritage/controller/good/CategoryController.java +++ b/src/main/java/com/cultural/heritage/controller/good/CategoryController.java @@ -36,6 +36,7 @@ import java.util.Map; @Tag(name = "商品类别管理模块") public class CategoryController { + @Resource private CategoryService categoryService; @@ -113,7 +114,7 @@ public class CategoryController { * @return 商品类别列表 */ @PostMapping("/list") - @Operation(summary = "小程序端用户查询商品类别", description = "参数:无,权限:所有人,方法名:listCategory") + @Operation(summary = "(小程序端和Web端)用户查询商品类别", description = "参数:无,权限:所有人,方法名:listCategory") public BaseResponse> listCategory() { List list = categoryService.list(); return ResultUtils.success(list); diff --git a/src/main/java/com/cultural/heritage/controller/good/CouponController.java b/src/main/java/com/cultural/heritage/controller/good/CouponController.java index 2d185da..0bcf016 100644 --- a/src/main/java/com/cultural/heritage/controller/good/CouponController.java +++ b/src/main/java/com/cultural/heritage/controller/good/CouponController.java @@ -117,14 +117,13 @@ public class CouponController { } - /** * 查询优惠券列表 * @param couponQueryRequest 优惠券查询请求体 * @return 优惠券列表 */ @PostMapping("/list/page") - @Operation(summary = "Web端管理员分页查询优惠券", description = "参数:优惠券查询请求体,权限:管理员(admin, boss),方法名:listCouponVOByPage") + @Operation(summary = "Web端管理员分页查询优惠券", description = "参数:优惠券查询请求体, 排序字段 sortField: conditionAmount requirePoints totalNum residueNum limitNum,权限:管理员(admin, boss),方法名:listCouponVOByPage") @AuthCheck(mustRole = UserConstant.ADMIN_ROLE) public BaseResponse> listCouponVOByPage(@RequestBody CouponQueryRequest couponQueryRequest) { if (couponQueryRequest == null) { diff --git a/src/main/java/com/cultural/heritage/controller/good/GoodController.java b/src/main/java/com/cultural/heritage/controller/good/GoodController.java index 54c91c7..5fe2018 100644 --- a/src/main/java/com/cultural/heritage/controller/good/GoodController.java +++ b/src/main/java/com/cultural/heritage/controller/good/GoodController.java @@ -114,7 +114,7 @@ public class GoodController { * @return 商品信息列表 */ @PostMapping("/list/page") - @Operation(summary = "Web端管理员分页查询商品", description = "参数:商品查询请求体,权限:管理员(admin, boss),方法名:listGoodByPage") + @Operation(summary = "Web端管理员分页查询商品", description = "参数:商品查询请求体,排序字段 sortField: price inventory,权限:管理员(admin, boss),方法名:listGoodByPage") @AuthCheck(mustRole = UserConstant.ADMIN_ROLE) public BaseResponse> listGoodByPage(@RequestBody GoodQueryRequest goodQueryRequest) { long current = goodQueryRequest.getCurrent(); diff --git a/src/main/java/com/cultural/heritage/controller/order/OrderController.java b/src/main/java/com/cultural/heritage/controller/order/OrderController.java index ec42b93..09b8dfe 100644 --- a/src/main/java/com/cultural/heritage/controller/order/OrderController.java +++ b/src/main/java/com/cultural/heritage/controller/order/OrderController.java @@ -96,7 +96,7 @@ public class OrderController { */ @PostMapping("/add") @Transactional(rollbackFor = Exception.class) - @Operation(summary = "小程序端创建用户订单", description = "参数:订单创建请求体,权限:所有人,方法名:addOrder") + @Operation(summary = "小程序端创建用户订单", description = "参数:订单创建请求体,排序字段 sortField: totalAmount,权限:所有人,方法名:addOrder") public BaseResponse addOrder(@RequestBody OrderAddRequest orderAddRequest) { if (orderAddRequest == null) { throw new BusinessException(ErrorCode.PARAMS_ERROR); diff --git a/src/main/java/com/cultural/heritage/controller/user/UserController.java b/src/main/java/com/cultural/heritage/controller/user/UserController.java index 061614f..e52fb11 100644 --- a/src/main/java/com/cultural/heritage/controller/user/UserController.java +++ b/src/main/java/com/cultural/heritage/controller/user/UserController.java @@ -251,7 +251,7 @@ public class UserController { * @return 用户信息列表 */ @PostMapping("/list/page") - @Operation(summary = "Web端管理员分页获取用户信息", description = "参数:用户查询请求体, 权限:管理员(admin, boss), 方法名:listUserByPage") + @Operation(summary = "Web端管理员分页获取用户信息", description = "参数:用户查询请求体, 排序字段 sortField: points,权限:管理员(admin, boss), 方法名:listUserByPage") @AuthCheck(mustRole = UserConstant.ADMIN_ROLE) public BaseResponse> listUserByPage(@RequestBody UserQueryRequest userQueryRequest) { long current = userQueryRequest.getCurrent(); @@ -270,7 +270,7 @@ public class UserController { * @return 脱敏用户信息列表 */ @PostMapping("/list/page/vo") - @Operation(summary = "Web端管理员分页获取脱敏用户信息", description = "参数:用户查询请求体, 权限:管理员(admin, boss), 方法名:listUserVOByPage") + @Operation(summary = "Web端管理员分页获取脱敏用户信息", description = "参数:用户查询请求体, 排序字段 sortField: points, 权限:管理员(admin, boss), 方法名:listUserVOByPage") @AuthCheck(mustRole = UserConstant.ADMIN_ROLE) public BaseResponse> listUserVOByPage(@RequestBody UserQueryRequest userQueryRequest) { if (userQueryRequest == null) {