zhaolei
2020-11-20 921de2254ff5712a44ed8575ee8efe34252f6603
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
using Bootstrap.Admin.Query;
using Bootstrap.DataAccess;
using Prow.Web.Mvc;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
 
namespace Bootstrap.Admin.Controllers.Api
{
    /// <summary>
    /// SQL 语句执行日志 webapi
    /// </summary>
    [Route("api/[controller]")]
    [Authorize]
    [ApiController]
    public class SQLController : ControllerBase
    {
        /// <summary>
        /// 获取执行日志数据
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        [HttpGet]
        public QueryData<DBLog> Get([FromQuery]QuerySQLOption value)
        {
            return value.RetrieveData();
        }
    }
}