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 FeeCodeController : ApiController { private readonly IFeeCodeService _invokeService; /// /// 构造函数 /// /// public FeeCodeController(IFeeCodeService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetFeeCodeList")] public DataResult> GetFeeCodeList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditFeeCode")] public DataResult EditFeeCode([FromBody] FeeCodeReq model) { var res = _invokeService.EditFeeCode(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetFeeCodeInfo")] public DataResult GetFeeCodeInfo([FromQuery] string id) { var res = _invokeService.GetFeeCodeInfo(id); return res; } } }