using Newtonsoft.Json.Linq;
namespace Admin.NET.Core.Service;
///
/// APIJSON服务
///
[ApiDescriptionSettings(Order = 100)]
public class APIJSONService : IDynamicApiController, ITransient
{
private readonly ISqlSugarClient _db;
private readonly IdentityService _identityService;
private readonly TableMapper _tableMapper;
public APIJSONService(ISqlSugarClient db,
IdentityService identityService,
TableMapper tableMapper)
{
_db = db;
_tableMapper = tableMapper;
_identityService = identityService;
}
///
/// 统一入口
///
///
/// 参数:{"[]":{"SYS_LOG_OP":{}}}
///
public JObject Post([FromBody] JObject jobject)
{
return new SelectTable(_identityService, _tableMapper, _db).Query(jobject);
}
}