usertest
ZR20090193-陈敬勇 6 months ago
parent 87dfb164b8
commit caa1be57d6

@ -10,13 +10,13 @@ namespace DS.WMS.AdminApi.Controllers;
/// </summary>
public class ConfigController : ApiController
{
private readonly ICodeConfigService _invokeService;
private readonly IConfigService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public ConfigController(ICodeConfigService invokeService)
public ConfigController(IConfigService invokeService)
{
_invokeService = invokeService;
}
@ -28,7 +28,7 @@ public class ConfigController : ApiController
/// <returns></returns>
[HttpPost]
[Route("GetConfigList")]
public DataResult<List<CodeConfigRes>> GetConfigList([FromBody] PageRequest request)
public DataResult<List<ConfigRes>> GetConfigList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
@ -54,7 +54,7 @@ public class ConfigController : ApiController
/// <returns></returns>
[HttpGet]
[Route("GetConfigInfo")]
public DataResult<CodeConfigRes> GetConfigInfo([FromQuery] string id)
public DataResult<ConfigRes> GetConfigInfo([FromQuery] string id)
{
var res = _invokeService.GetConfigInfo(id);
return res;

@ -6,7 +6,7 @@
<Project>
<PropertyGroup>
<_PublishTargetUrl>D:\Code\PublishCopy\ds8-mainapi</_PublishTargetUrl>
<History>True|2024-05-30T09:22:52.2563382Z;True|2024-05-30T17:05:35.7504154+08:00;True|2024-05-29T17:17:39.6966826+08:00;</History>
<History>True|2024-05-31T07:25:20.8503086Z;True|2024-05-30T17:22:52.2563382+08:00;True|2024-05-30T17:05:35.7504154+08:00;True|2024-05-29T17:17:39.6966826+08:00;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>

@ -40,7 +40,7 @@ public class SaasTest
// .ToArray();
Type[] types = Assembly
.LoadFrom("DS.WMS.Core.dll")//如果 .dll报错可以换成 xxx.exe 有些生成的是exe
.GetTypes().Where(it => it.FullName.Contains("DS.WMS.Core.Op.Entity."))//命名空间过滤,当然你也可以写其他条件过滤
.GetTypes().Where(it => it.FullName.Contains("DS.WMS.Core.Map.Entity.")|| it.FullName.Contains("DS.WMS.Core.Code.Entity."))//命名空间过滤,当然你也可以写其他条件过滤
.ToArray();
var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
// var temp = tenantDb.CodeFirst.GetDifferenceTables(types);

Loading…
Cancel
Save