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;
///
/// 客户费率
///
public class WmsFeeRateController : ApiController
{
private readonly IWmsFeeRateService _invokeService;
///
/// 构造函数
///
///
public WmsFeeRateController(IWmsFeeRateService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetWmsFeeRateList")]
public DataResult> GetWmsFeeRateList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 获取信息
///
///
///
[HttpGet]
[Route("GetWmsFeeRateInfo")]
public DataResult GetWmsFeeRateInfo([FromQuery] string id)
{
var res = _invokeService.GetWmsFeeRateInfo(id);
return res;
}
///
///
///
///
///
[HttpGet]
[Route("GetWmsFeeRateDetailList")]
public DataResult GetWmsFeeRateDetailList([FromQuery] string id)
{
var res = _invokeService.GetWmsFeeRateDetailList(id);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditWmsFeeRateInfo")]
public DataResult EditWmsFeeRateInfo([FromBody] WmsFeeRateInput model)
{
var res = _invokeService.EditWmsFeeRateInfo(model);
return res;
}
}