|
@@ -26,6 +26,7 @@ using XF.Domain.Authentications;
|
|
|
using XF.Domain.Cache;
|
|
|
using XF.Domain.Exceptions;
|
|
|
using XF.Domain.Locks;
|
|
|
+using XF.Utility.UnifyResponse;
|
|
|
|
|
|
namespace Hotline.Api.Controllers;
|
|
|
|
|
@@ -104,10 +105,11 @@ public class TestController : BaseController
|
|
|
{
|
|
|
//var rsp = await _wexClient.QueryTelsAsync(new QueryTelRequest { }, HttpContext.RequestAborted);
|
|
|
|
|
|
- return DateTime.Now.ToString("F");
|
|
|
+ //return DateTime.Now.ToString("F");
|
|
|
|
|
|
- //var rsp = await _daprClient.InvokeMethodAsync<string>(HttpMethod.Get, "identity", "api/v1/Test/time", HttpContext.RequestAborted);
|
|
|
- //return rsp;
|
|
|
+ var rsp = await _daprClient.InvokeMethodAsync<ApiResponse<string>>(HttpMethod.Get, "identity", "api/v1/Test/time", HttpContext.RequestAborted);
|
|
|
+ //var rsp1 = await _daprClient.InvokeMethodAsync<int, ApiResponse<string>>(HttpMethod.Post, "identity", "api/v1/Test/time1", 222, HttpContext.RequestAborted);
|
|
|
+ return rsp.Result;
|
|
|
}
|
|
|
|
|
|
[HttpGet("pgsql")]
|