表单新增接口 及相关修改
parent
7c7cf76c1b
commit
c6a6549414
@ -0,0 +1,42 @@
|
||||
using System.Reflection;
|
||||
using DS.Module.Core;
|
||||
using DS.Module.Core.Extensions;
|
||||
using DS.Module.SqlSugar;
|
||||
using DS.WMS.Core.Code.Interface;
|
||||
using DS.WMS.Core.System.Entity;
|
||||
using DS.WMS.Core.System.Interface;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using SqlSugar;
|
||||
using SqlSugar.IOC;
|
||||
using Xunit;
|
||||
|
||||
namespace Ds.WMS.Test;
|
||||
|
||||
public class OpTest
|
||||
{
|
||||
private readonly IServiceProvider _serviceProvider;
|
||||
private readonly SqlSugarScope db;
|
||||
private readonly ISaasDbService saasService;
|
||||
private readonly IFormSetService _formSetService;
|
||||
public OpTest(IServiceProvider serviceProvider)
|
||||
{
|
||||
_serviceProvider = serviceProvider;
|
||||
db = (SqlSugarScope)_serviceProvider.GetRequiredService<ISqlSugarClient>();
|
||||
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
|
||||
_formSetService = _serviceProvider.GetRequiredService<IFormSetService>();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async void SaasTest1()
|
||||
{
|
||||
//var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
||||
|
||||
var data = await _formSetService.GetFormSetCreateInfoAsync("1750335377144680448");
|
||||
|
||||
|
||||
Assert.True(true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue