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:
12
Pulsar/Features/ShipLocker/ShipLockerController.cs
Normal file
12
Pulsar/Features/ShipLocker/ShipLockerController.cs
Normal 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());
|
||||
}
|
||||
}
|
21
Pulsar/Features/ShipLocker/ShipLockerService.cs
Normal file
21
Pulsar/Features/ShipLocker/ShipLockerService.cs
Normal 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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user