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.
75 lines
1.9 KiB
C#
75 lines
1.9 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 WmsFeeRateController : ApiController
|
|
{
|
|
private readonly IWmsFeeRateService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public WmsFeeRateController(IWmsFeeRateService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetWmsFeeRateList")]
|
|
public DataResult<List<WmsFeeRateListPageModel>> GetWmsFeeRateList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetListByPage(request);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取信息
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsFeeRateInfo")]
|
|
public DataResult<WmsFeeRateInfoViewModel> GetWmsFeeRateInfo([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.GetWmsFeeRateInfo(id);
|
|
return res;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetWmsFeeRateDetailList")]
|
|
public DataResult GetWmsFeeRateDetailList([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.GetWmsFeeRateDetailList(id);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 编辑
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("EditWmsFeeRateInfo")]
|
|
public DataResult EditWmsFeeRateInfo([FromBody] WmsFeeRateInput model)
|
|
{
|
|
var res = _invokeService.EditWmsFeeRateInfo(model);
|
|
return res;
|
|
}
|
|
} |