-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathQueryExplainController.cs
More file actions
36 lines (33 loc) · 1.13 KB
/
QueryExplainController.cs
File metadata and controls
36 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ExpressBase.Common.Data;
using ExpressBase.Objects.ServiceStack_Artifacts;
using ExpressBase.Web.BaseControllers;
using Microsoft.AspNetCore.Mvc;
using ServiceStack;
using ServiceStack.Redis;
// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace ExpressBase.Web.Controllers
{
public class Query
{
public List<string> explain = new List<string>();
}
public class QueryExplainController : EbBaseIntCommonController
{
public QueryExplainController(IServiceClient sclient, IRedisClient redis) : base(sclient, redis) { }
public IActionResult Index()
{
return View();
}
[HttpPost]
public GetExplainResponse GetExplain(string query, List<Param> _params)
{
List<string> dataitem = new List<string>();
GetExplainResponse res = ServiceClient.Get<GetExplainResponse>(new GetExplainRequest { Query = query, Params = _params });
return res;
}
}
}