using DS.Module.Core; using DS.WMS.Core.Fee.Dtos; using DS.WMS.Core.Fee.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.FeeApi.Controllers { /// /// 费用模板服务 /// public class FeeTemplateController : ApiController { private readonly IFeeTemplateService _invokeService; /// /// 构造函数 /// /// public FeeTemplateController(IFeeTemplateService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetFeeTemplateList")] public DataResult> GetFeeTemplateList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditFeeTemplate")] public DataResult EditFeeTemplate([FromBody] FeeTemplateReq model) { var res = _invokeService.EditFeeTemplate(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetFeeTemplateInfo")] public DataResult GetFeeTemplateInfo([FromQuery] string id) { var res = _invokeService.GetFeeTemplateInfo(id); return res; } } }