From a4122d504f8fc5f0626eaa0cbc270b47742812d9 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期一, 26 八月 2024 17:13:36 +0800 Subject: [PATCH] 1 --- WIDESEAWCS_Server/WIDESEAWCS_Core/BaseController/ApiBaseController.cs | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseController/ApiBaseController.cs b/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseController/ApiBaseController.cs index 79da06d..a62b443 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseController/ApiBaseController.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_Core/BaseController/ApiBaseController.cs @@ -1,4 +1,5 @@ 锘縰sing Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.DataProtection.KeyManagement; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; @@ -96,6 +97,12 @@ return Json(InvokeService("Import", new object[] { fileInput })); } + [HttpPost, Route("ExportSeedData"), AllowAnonymous] + public ActionResult ExportSeedData() + { + return Json(InvokeService("ExportSeedData", new object[] { })); + } + private object InvokeService(string methodName, object[] parameters) { Type t = Service.GetType(); -- Gitblit v1.9.3