修改了商品类别接口
This commit is contained in:
parent
358245a2bb
commit
a1bb1d7cee
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user