using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.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.GetClientListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCodeStlMode")] public DataResult EditCodeStlMode([FromBody] CodeStlModeReq model) { var res = _invokeService.EditClientCodeStlMode(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCodeStlModeInfo")] public DataResult GetCodeStlModeInfo([FromQuery] string id) { var res = _invokeService.GetClientCodeStlModeInfo(id); return res; } /// /// 获取结算方式列表-基础库 /// /// /// [HttpPost] [Route("GetBasicsCodeStlModeList")] public DataResult> GetBasicsCodeStlModeList([FromBody] PageRequest request) { var res = _invokeService.GetCodeStlModeList(request); return res; } /// /// 导入结算方式类型-基础库 /// /// /// [HttpPost] [Route("ImportCodeStlMode")] public DataResult ImportCodeStlMode([FromBody] IdModel req) { var res = _invokeService.ImportCodeStlMode(req); return res; } /// /// 获取当前租户已有的结算方式 /// /// [HttpGet] [Route("GetExistCodeStlModeList")] public DataResult> GetExistCodeStlModeList() { var res = _invokeService.GetExistCodeStlModeList(); return res; } }