Files
WMSlite/WmsLite.Api/Controllers/InventoryTransactionController.cs
T
zhougfandCursor fa1b286463 Add WmsLite monorepo with JWT auth, tenant context, and project READMEs.
Implement API security baseline (sys_user, JWT, audit fields, transactions,
unique constraints) and Web real login with 401 handling. Document setup
and development workflows in root, WmsLite.Api, and WmsLite.Web README files.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-24 14:17:47 +08:00

25 lines
788 B
C#

using Microsoft.AspNetCore.Mvc;
using WmsLite.Api.Common;
using WmsLite.Api.Dtos.Inventory;
using WmsLite.Api.Infrastructure.Auth;
using WmsLite.Api.Services.Interfaces;
namespace WmsLite.Api.Controllers;
[ApiController]
[Route("api/[controller]")]
public class InventoryTransactionController : WmsLiteControllerBase
{
private readonly IInventoryTransactionService _service;
public InventoryTransactionController(IInventoryTransactionService service, ICurrentUserContext currentUser)
: base(currentUser)
{
_service = service;
}
[HttpPost("paged-list")]
public async Task<ActionResult<BusinessResult>> GetPagedList([FromBody] InventoryTransactionPagedQuery request)
=> Ok(BusinessResult.Ok(await _service.GetPagedListAsync(request)));
}