using DS.Module.Core; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.Fee.Dtos; using DS.WMS.Core.Fee.Interface; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.FeeApi.Controllers { /// /// 币别信息服务 /// public class FeeCurrencyController : ApiController { private readonly IFeeCurrencyService _invokeService; /// /// 构造函数 /// /// public FeeCurrencyController(IFeeCurrencyService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetFeeCurrencyList")] public DataResult> GetFeeCurrencyList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditFeeCurrency")] public DataResult EditFeeCurrency([FromBody] FeeCurrencyReq model) { var res = _invokeService.EditFeeCurrency(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetFeeCurrencyInfo")] public DataResult GetFeeCurrencyInfo([FromQuery] string id) { var res = _invokeService.GetFeeCurrencyInfo(id); return res; } } }