Uat_Study
hang 2022-06-06 15:45:05 +08:00
parent a914e6815e
commit 93d363f76c
1 changed files with 15 additions and 6 deletions

View File

@ -9,13 +9,13 @@ namespace IRaCIS.Application.Services
private readonly IRepository<Dictionary> _dicRepository;
private readonly IRepository<Trial> _trialRepository;
private readonly IDistributedCache _cache;
//private readonly IDistributedCache _cache;
public TestService(IRepository<Dictionary> dicRepository, IRepository<Trial> trialRepository, IDistributedCache cache)
public TestService(IRepository<Dictionary> dicRepository, IRepository<Trial> trialRepository/*, IDistributedCache cache*/)
{
_dicRepository = dicRepository;
_trialRepository = trialRepository;
_cache = cache;
//_cache = cache;
}
public string Get()
@ -24,7 +24,7 @@ namespace IRaCIS.Application.Services
}
[HttpPost]
public string Get(testModel testModel)
public string Get(TestModel testModel)
{
//_cache.SetString("test" , "cacheStr");
@ -73,13 +73,22 @@ namespace IRaCIS.Application.Services
return _userInfo.LocalIp;
}
public string PostData(List<TestModel> testModelList)
{
return string.Join(",", testModelList);
}
}
public class testModel
public class TestModel
{
//[Required]
//public string Id { get; set; }
public string Id { get; set; }
public string Name { get; set; }
}
}