添加用户足迹,修改查询接口

This commit is contained in:
xuwenbo
2020-08-31 09:58:48 +08:00
parent 3c27658b9c
commit 8a13035675
6 changed files with 33 additions and 17 deletions

View File

@ -111,13 +111,15 @@ public class UserController {
@GetMapping("/collect/user")
@ApiImplicitParams({
@ApiImplicitParam(name = "page", value = "页码,默认为1", paramType = "query", dataType = "int"),
@ApiImplicitParam(name = "limit", value = "页大小,默认为10", paramType = "query", dataType = "int")
@ApiImplicitParam(name = "limit", value = "页大小,默认为10", paramType = "query", dataType = "int"),
@ApiImplicitParam(name = "type", value = "foot为足迹,collect为收藏", paramType = "query", dataType = "String")
})
@ApiOperation(value = "获取收藏产品",notes = "获取收藏产品")
@ApiOperation(value = "获取收藏产品,或足迹",notes = "获取收藏产品,或足迹")
public ApiResult<List<YxStoreProductRelationQueryVo>> collectUser(@RequestParam(value = "page",defaultValue = "1") int page,
@RequestParam(value = "limit",defaultValue = "10") int limit){
@RequestParam(value = "limit",defaultValue = "10") int limit,
@RequestParam(value = "type") String type){
Long uid = LocalUser.getUser().getUid();
return ApiResult.ok(relationService.userCollectProduct(page,limit,uid));
return ApiResult.ok(relationService.userCollectProduct(page,limit,uid,type));
}
/**