监督角色功能控制

This commit is contained in:
yss
2023-04-23 14:58:41 +08:00
parent b28d4651ee
commit c84683221a

View File

@ -21,8 +21,8 @@ public class UserSwitchController {
* @param role * @param role
* @return * @return
*/ */
@PostMapping({"/findUser/{key}/{role}"}) @PostMapping({"/findUser"})
public BaseResponse<Boolean> findUser(@PathVariable String key,@PathVariable String role){ public BaseResponse<Boolean> findUser(@RequestParam String key,@RequestParam String role){
return BaseResponse.success(userSwitchService.findUser(key,role)); return BaseResponse.success(userSwitchService.findUser(key,role));
} }
} }