1、修新增获取所有用户接口为post方法
parent
c1dfbd49a0
commit
b4980a91b1
|
|
@ -8,7 +8,8 @@ import io.swagger.annotations.Api;
|
|||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
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.RestController;
|
||||
|
||||
|
|
@ -20,9 +21,9 @@ public class UserController {
|
|||
private final UserServiceI userService;
|
||||
|
||||
@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')")
|
||||
public MultiResponse<UserCO> listAll(UserQryCmd userQryCmd) {
|
||||
public MultiResponse<UserCO> listAll(@RequestBody UserQryCmd userQryCmd) {
|
||||
return userService.listAll(userQryCmd);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue