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;
|
||||
|
||||
import com.cool.store.dto.GetUserDTO;
|
||||
import com.cool.store.dto.UserDTO;
|
||||
import com.cool.store.request.LinesRequest;
|
||||
import com.cool.store.request.UpdatePartnerNameRequest;
|
||||
@@ -75,11 +76,9 @@ public class LineController {
|
||||
}
|
||||
|
||||
@ApiOperation("查询所有人支持模糊查询")
|
||||
@GetMapping("/getAllUser")
|
||||
public ResponseResult<PageInfo<UserDTO>> getAllUser(@RequestParam("keyword")String keyword ,
|
||||
@RequestParam("pageNum")Integer pageNum,
|
||||
@RequestParam("pageSize")Integer pageSize ) {
|
||||
return ResponseResult.success(userAuthMappingService.getAllUser(keyword,pageNum,pageSize));
|
||||
@PostMapping("/getAllUser")
|
||||
public ResponseResult<PageInfo<UserDTO>> getAllUser(@RequestBody GetUserDTO dto) {
|
||||
return ResponseResult.success(userAuthMappingService.getAllUser(dto.getKeyword(),dto.getPageNum(),dto.getPageSize()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user