修改了商品类别接口

This commit is contained in:
chen-xin-zhi 2024-11-05 23:11:27 +08:00
parent 358245a2bb
commit a1bb1d7cee
5 changed files with 7 additions and 7 deletions

View File

@ -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<List<Category>> listCategory() {
List<Category> list = categoryService.list();
return ResultUtils.success(list);

View File

@ -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<Page<Coupon>> listCouponVOByPage(@RequestBody CouponQueryRequest couponQueryRequest) {
if (couponQueryRequest == null) {

View File

@ -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<Page<Good>> listGoodByPage(@RequestBody GoodQueryRequest goodQueryRequest) {
long current = goodQueryRequest.getCurrent();

View File

@ -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<Boolean> addOrder(@RequestBody OrderAddRequest orderAddRequest) {
if (orderAddRequest == null) {
throw new BusinessException(ErrorCode.PARAMS_ERROR);

View File

@ -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<Page<User>> 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<Page<UserVO>> listUserVOByPage(@RequestBody UserQueryRequest userQueryRequest) {
if (userQueryRequest == null) {