fix
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
package com.cool.store.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: WangShuo
|
||||||
|
* @Date: 2025/04/10/11:30
|
||||||
|
* @Version 1.0
|
||||||
|
* @注释:
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class GetUserDTO {
|
||||||
|
private String keyword;
|
||||||
|
private Integer pageNum =1;
|
||||||
|
private Integer pageSize = 10;
|
||||||
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cool.store.controller.webc;
|
package com.cool.store.controller.webc;
|
||||||
|
|
||||||
|
import com.cool.store.dto.GetUserDTO;
|
||||||
import com.cool.store.dto.UserDTO;
|
import com.cool.store.dto.UserDTO;
|
||||||
import com.cool.store.request.LinesRequest;
|
import com.cool.store.request.LinesRequest;
|
||||||
import com.cool.store.request.UpdatePartnerNameRequest;
|
import com.cool.store.request.UpdatePartnerNameRequest;
|
||||||
@@ -75,11 +76,9 @@ public class LineController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("查询所有人支持模糊查询")
|
@ApiOperation("查询所有人支持模糊查询")
|
||||||
@GetMapping("/getAllUser")
|
@PostMapping("/getAllUser")
|
||||||
public ResponseResult<PageInfo<UserDTO>> getAllUser(@RequestParam("keyword")String keyword ,
|
public ResponseResult<PageInfo<UserDTO>> getAllUser(@RequestBody GetUserDTO dto) {
|
||||||
@RequestParam("pageNum")Integer pageNum,
|
return ResponseResult.success(userAuthMappingService.getAllUser(dto.getKeyword(),dto.getPageNum(),dto.getPageSize()));
|
||||||
@RequestParam("pageSize")Integer pageSize ) {
|
|
||||||
return ResponseResult.success(userAuthMappingService.getAllUser(keyword,pageNum,pageSize));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user