Rework Journal Handling
Stub ModulesInfo
This commit is contained in:
parent
4274496150
commit
b8967814d5
14 changed files with 156 additions and 47 deletions
12
Pulsar/Features/ModulesInfo/ModulesInfoController.cs
Normal file
12
Pulsar/Features/ModulesInfo/ModulesInfoController.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
namespace Pulsar.Features.ModulesInfo;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
public class ModulesInfoController(IModulesInfoService modulesInfo) : ControllerBase
|
||||
{
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> Get()
|
||||
{
|
||||
return Ok(modulesInfo.Get());
|
||||
}
|
||||
}
|
||||
24
Pulsar/Features/ModulesInfo/ModulesInfoService.cs
Normal file
24
Pulsar/Features/ModulesInfo/ModulesInfoService.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
namespace Pulsar.Features.ModulesInfo;
|
||||
|
||||
using Observatory.Framework.Files;
|
||||
|
||||
public interface IModulesInfoService : IJournalHandler<ModuleInfoFile>;
|
||||
|
||||
public class ModulesInfoService : IModulesInfoService
|
||||
{
|
||||
public string FileName => FileHandlerService.ModulesInfoFileName;
|
||||
public Task HandleFile(string filePath)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public bool ValidateFile(string filePath)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Task<ModuleInfoFile> Get()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue