调整字段初始化和获取Model列表,备份sql
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using ZR.Admin.WebApi.Filters;
|
||||
using ZR.Model;
|
||||
using ZR.ServiceCore.Model;
|
||||
using ZR.ServiceCore.Model.Dto;
|
||||
using ZR.ServiceCore.Services.IService;
|
||||
@@ -19,21 +20,8 @@ public class SysFieldController : BaseController
|
||||
}
|
||||
|
||||
[HttpGet("getModelList")]
|
||||
public IActionResult GetModelList()
|
||||
{
|
||||
var serviceCoreModels = AppDomain.CurrentDomain
|
||||
.GetAssemblies()
|
||||
.First(it => it.FullName.Contains("ZR.ServiceCore"))
|
||||
.ExportedTypes
|
||||
.Where(p => p.FullName.StartsWith("ZR.ServiceCore.Model"))
|
||||
.Select(it => new
|
||||
{
|
||||
it.FullName,
|
||||
// Properties = it.GetProperties()
|
||||
})
|
||||
.ToList();
|
||||
return SUCCESS(serviceCoreModels);
|
||||
}
|
||||
public async Task<IActionResult> GetModelList([FromQuery] PagerInfo pagerInfo)
|
||||
=> SUCCESS(await _sysFieldService.GetModelList(pagerInfo));
|
||||
|
||||
[HttpGet("getFields")]
|
||||
public async Task<IActionResult> GetFields([FromQuery] string fullName, long roleId)
|
||||
|
||||
Reference in New Issue
Block a user