baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
@@ -0,0 +1,33 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Opsoft.NetCore.O3App.Domain.UnitOfWork.BaseData.IServices;
|
||||
using Opsoft.NetCore.O3App.Domain.UnitOfWork.BaseData.Model;
|
||||
using Opsoft.NetCore.O3App.Shared;
|
||||
using Opsoft.NetCore.O3App.WebApi.Models;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Opsoft.NetCore.O3App.WebApi.Controllers.BaseData
|
||||
{
|
||||
[Authorize]
|
||||
public class AssetinventoryController : BaseApiController<AssetinventoryController>
|
||||
{
|
||||
private readonly IAssetinventoryServices _service;
|
||||
public AssetinventoryController(IMapper mapper, ILogger<AssetinventoryController> logger, IAssetinventoryServices Service)
|
||||
: base(mapper, logger)
|
||||
{
|
||||
_service = Service;
|
||||
}
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<List<IAS_ASSETSINVENTORY>>> GetAllAssetinventoryUnRead(int pageNum, int pageCount)
|
||||
{
|
||||
|
||||
var data = new { pageNum = pageNum, pageCount = pageCount };
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await _service.GetAllAssetinventoryUnRead(data.ToJson());
|
||||
}, data);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user