using DS.Module.Core; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.Sys.Dtos; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.AdminApi.Controllers; /// /// 业务来源明细信息服务 /// public class CodeSourceDetailController : ApiController { private readonly ICodeSourceDetailService _invokeService; /// /// 构造函数 /// /// public CodeSourceDetailController(ICodeSourceDetailService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetCodeSourceDetailList")] public DataResult> GetCodeSourceDetailList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCodeSourceDetail")] public DataResult EditCodeSourceDetail([FromBody] CodeSourceDetailReq model) { var res = _invokeService.EditCodeSourceDetail(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCodeSourceDetailInfo")] public DataResult GetCodeSourceDetailInfo([FromQuery] string id) { var res = _invokeService.GetCodeSourceDetailInfo(id); return res; } }