using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Fee.Dtos; using DS.WMS.Core.Fee.Interface; 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; } /// /// 根据模板ID获取模板明细 /// /// 模板ID /// [HttpGet] [Route("GetListByTemplateId")] public DataResult> GetListByTemplateId([FromQuery] long tid) { var res = _invokeService.GetListByTemplateId(tid); 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; } /// /// 删除 /// /// /// [HttpGet] [Route("DelFeeTemplateDetail")] public DataResult DelFeeTemplateDetail([FromQuery] string id) { var res = _invokeService.DelFeeTemplateDetail(id); return res; } /// /// 批量删除 /// /// /// [HttpPost] [Route("BatchDelFeeTemplateDetail")] public DataResult BatchDelFeeTemplateDetail([FromBody] IdModel req) { var res = _invokeService.BatchDelFeeTemplateDetail(req); return res; } } }