public async Task <IActionResult> CreateApiResource([FromBody] CreateApiResouce apiResource) { if (!ModelState.IsValid) { return(BadRequest(ModelStateErrors)); } var result = await _apiresourceService.CreateApiResource(apiResource); return(ResultResponse(result, "创建api资源成功")); }