2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-07-01 16:33:43 -04:00

Rework JournalHandler Again

Reduce Code Dupe
Finished ModulesInfo
Started ShipLocker
This commit is contained in:
2024-04-21 23:40:44 +10:00
parent b8967814d5
commit b44d822eb9
6 changed files with 138 additions and 59 deletions

View File

@ -0,0 +1,12 @@
namespace Pulsar.Features.ShipLocker;
[ApiController]
[Route("api/[controller]")]
public class ShipLockerController(IShipLockerService shipLockerService) : ControllerBase
{
[HttpGet]
public async Task<IActionResult> Get()
{
return Ok(await shipLockerService.Get());
}
}

View File

@ -0,0 +1,21 @@
namespace Pulsar.Features.ShipLocker;
using Observatory.Framework.Files.Journal.Odyssey;
public interface IShipLockerService : IJournalHandler<ShipLockerMaterials>;
public class ShipLockerService(ILogger<ShipLockerService> logger)
: JournalHandlerBase<ShipLockerMaterials>(logger), IShipLockerService
{
public override string FileName => FileHandlerService.ShipLockerFileName;
public override Task<ShipLockerMaterials> Get()
{
throw new NotImplementedException();
}
public override Task HandleFile(string filePath)
{
throw new NotImplementedException();
}
}