调整字段初始化和获取Model列表,备份sql

This commit is contained in:
2023-10-16 17:00:45 +08:00
parent 52cd22c4c6
commit 10b57594ac
7 changed files with 1163 additions and 29 deletions
@@ -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)