完善通用接口输入参数
This commit is contained in:
@@ -3,8 +3,10 @@
|
||||
// https://git.tuotong-tech.com/tnb/tnb.server //
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
using JNPF;
|
||||
using JNPF.DependencyInjection;
|
||||
using JNPF.DynamicApiController;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Tnb.Vengine.DataAccess;
|
||||
using Tnb.Vengine.Domain;
|
||||
|
||||
@@ -30,7 +32,7 @@ public class BaseAppService : IDynamicApiController, ITransient
|
||||
{
|
||||
if (!_models.ContainsKey(id))
|
||||
{
|
||||
_models[id] = await _dataAccess.GetVmodelAsync(id, false);
|
||||
_models[id] = await _dataAccess.GetVmodelAsync(id);
|
||||
}
|
||||
return _models[id];
|
||||
}
|
||||
@@ -42,7 +44,7 @@ public class BaseAppService : IDynamicApiController, ITransient
|
||||
var key = areaCode + "/" + vmCode;
|
||||
if (!_models.ContainsKey(key))
|
||||
{
|
||||
_models[key] = await _dataAccess.GetVmodelAsync(areaCode, vmCode, false);
|
||||
_models[key] = await _dataAccess.GetVmodelAsync(areaCode, vmCode);
|
||||
}
|
||||
return _models[key];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user