1、修新增获取所有用户接口为post方法

main
shenzhidan 2026-03-06 17:49:09 +08:00
parent c1dfbd49a0
commit b4980a91b1
1 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,8 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -20,9 +21,9 @@ public class UserController {
private final UserServiceI userService; private final UserServiceI userService;
@ApiOperation("查询所有用户") @ApiOperation("查询所有用户")
@GetMapping("/listAll") @PostMapping("/listAll")
@PreAuthorize("@pms.hasAnyPermission('gfd-tzzyrugl', 'gfd-tzsbczrygl', 'gfd-qyzyfzrgl','gfd-qyaqscglrygl', 'qyd-tzzyrugl', 'qyd-tzsbczrygl', 'qyd-zyfzrgl','qyd-aqscglrygl', 'xgfd-zyfzrgl', 'xgfd-tzzzsbczrygl', 'xgfd-aqscglrygl','xgfd-tzzyrugl')") @PreAuthorize("@pms.hasAnyPermission('gfd-tzzyrugl', 'gfd-tzsbczrygl', 'gfd-qyzyfzrgl','gfd-qyaqscglrygl', 'qyd-tzzyrugl', 'qyd-tzsbczrygl', 'qyd-zyfzrgl','qyd-aqscglrygl', 'xgfd-zyfzrgl', 'xgfd-tzzzsbczrygl', 'xgfd-aqscglrygl','xgfd-tzzyrugl')")
public MultiResponse<UserCO> listAll(UserQryCmd userQryCmd) { public MultiResponse<UserCO> listAll(@RequestBody UserQryCmd userQryCmd) {
return userService.listAll(userQryCmd); return userService.listAll(userQryCmd);
} }
} }