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