You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.5 KiB
C#

using DS.Module.Core;
using DS.WMS.Core.FeeModule.Dtos;
using DS.WMS.Core.FeeModule.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.WebApi.Controllers;
/// <summary>
/// 客户整租服务
/// </summary>
public class WmsRentController : ApiController
{
private readonly IWmsRentService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public WmsRentController(IWmsRentService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetWmsRentList")]
public DataResult<List<WmsRentListPageModel>> GetWmsRentList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("EditWmsRent")]
public DataResult EditWmsRent([FromBody] WmsRentInput model)
{
var res = _invokeService.EditWmsRent(model);
return res;
}
/// <summary>
/// 获取信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetWmsRentInfo")]
public DataResult<WmsRentViewModel> GetWmsRentInfo([FromQuery]string id)
{
var res = _invokeService.GetWmsRentInfo(id);
return res;
}
}