You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
929 B
34 lines
929 B
5 days ago
|
using Newtonsoft.Json.Linq;
|
||
|
|
||
|
namespace Admin.NET.Core.Service;
|
||
|
|
||
|
/// <summary>
|
||
|
/// APIJSON服务
|
||
|
/// </summary>
|
||
|
[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;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 统一入口
|
||
|
/// </summary>
|
||
|
/// <param name="jobject"></param>
|
||
|
/// <remarks>参数:{"[]":{"SYS_LOG_OP":{}}}</remarks>
|
||
|
/// <returns></returns>
|
||
|
public JObject Post([FromBody] JObject jobject)
|
||
|
{
|
||
|
return new SelectTable(_identityService, _tableMapper, _db).Query(jobject);
|
||
|
}
|
||
|
}
|