|
@@ -1,3 +1,4 @@
|
|
|
+using Microsoft.AspNetCore.Http;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
@@ -9,6 +10,7 @@ using TEAMModelOS.SDK.Extension.DataResult.JsonRpcRequest;
|
|
|
using TEAMModelOS.SDK.Extension.DataResult.JsonRpcResponse;
|
|
|
using TEAMModelOS.SDK.Helper.Common.CollectionHelper;
|
|
|
using TEAMModelOS.SDK.Helper.Common.ValidateHelper;
|
|
|
+using TEAMModelOS.SDK.Helper.Network.HttpHelper;
|
|
|
using TEAMModelOS.Service.Common.Interfaces;
|
|
|
|
|
|
namespace TEAMModelOS.Controllers.Common
|
|
@@ -37,9 +39,18 @@ namespace TEAMModelOS.Controllers.Common
|
|
|
{
|
|
|
builder.Data(schools);
|
|
|
}
|
|
|
- else builder.Data(null);
|
|
|
+ else builder.Data(new object[] { });
|
|
|
return builder.build();
|
|
|
-
|
|
|
}
|
|
|
+ // GET api/<controller>/5
|
|
|
+ [HttpPost("AuthorizedAISchool")]
|
|
|
+ public async Task<BaseJosnRPCResponse> AuthorizedAISchool(JosnRPCRequest<Dictionary<string,object>> request)
|
|
|
+ {
|
|
|
+ JsonRPCResponseBuilder builder = JsonRPCResponseBuilder.custom();
|
|
|
+ Dictionary<string, object> schools = await _schoolInfoService.AuthorizedAISchoolAsync(request.@params);
|
|
|
+ builder.Data(schools);
|
|
|
+ return builder.build();
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|