public async Task <IActionResult> AddApiSecret(CreateApiSecretDto apiSecret) { if (!ModelState.IsValid) { return(BadRequest(ModelStateErrors)); } var result = await _apiresourceService.AddSecret(apiSecret); return(ResultResponse(result, "添加ApiSecret成功")); }