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