ow
This commit is contained in:
1 parent
e668a77f51
commit
f8c8e74f7c
6 files changed
+3
-29
No files matched your search
@@ -33,10 +33,6 @@ this.serviceRequest = serviceRequest;
|
||||
{
|
||||
return Task.Run(() => serviceRequest.PostAsJsonAsync<SelectOption[]>("/YesNoPolicy/FindSelectOption?blank=" + blank.ToString())).GetAwaiter().GetResult(); }
|
||||
|
||||
public dynamic Copy()
|
||||
{
|
||||
return Task.Run(() => serviceRequest.GetAsync<dynamic>("/YesNoPolicy/Copy")).GetAwaiter().GetResult(); }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -14,7 +14,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CloudBuilder.Gui.DependencyInjection
|
||||
namespace CloudBuilder.Security.Service.DependencyInjection
|
||||
{
|
||||
[PackLevel(100)]
|
||||
public class CloudBuilderSecurityServicePack : CloudBuilderPack
|
||||
|
||||
@@ -3,7 +3,6 @@ using CloudBuilder.Core.DatabaseAccessor.Entity;
|
||||
using CloudBuilder.Core.DependencyInjection.Request;
|
||||
using CloudBuilder.Core.Policy;
|
||||
using CloudBuilder.Core.Service;
|
||||
using CloudBuilder.Gui;
|
||||
using CloudBuilder.Security.Entity;
|
||||
using CloudBuilder.Security.Policy;
|
||||
using CloudBuilder.Security.SearchCriteria;
|
||||
|
||||
@@ -80,8 +80,7 @@ namespace CloudBuilder.Security.Service
|
||||
return l.ToArray();
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpGet]
|
||||
//仅测试使用
|
||||
public dynamic Copy()
|
||||
{
|
||||
repository.ChangeSecondaryDatabase();
|
||||
|
||||
@@ -11,6 +11,6 @@ namespace CloudBuilder.Security.Service
|
||||
{
|
||||
SelectOption[] FindSelectOption(bool blank);
|
||||
|
||||
dynamic Copy();
|
||||
//dynamic Copy();
|
||||
}
|
||||
}
|
||||
-20
@@ -55,26 +55,6 @@ this.yesNoPolicyService= yesNoPolicyService;
|
||||
}
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpGet]
|
||||
public dynamic Copy()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var result = yesNoPolicyService.Copy();
|
||||
return result;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user