using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.Sys.Dtos; using DS.WMS.Core.Sys.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers; /// /// 表单字段复制设置 模块 /// public class FormCopyController : ApiController { private readonly IFormCopyService _invokeService; /// /// 构造函数 /// /// public FormCopyController(IFormCopyService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetFormCopyList")] public DataResult> GetFormCopyList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditFormCopy")] public DataResult EditFormCopy([FromBody] CodeFormCopyReq req) { var res = _invokeService.EditFormCopy(req); return res; } /// /// 详情 /// /// Id /// [HttpGet] [Route("GetFormCopyInfo")] public DataResult GetFormCopyInfo([FromQuery] string id) { var res = _invokeService.GetFormCopyInfo(id); return res; } /// /// 批量删除 /// /// ids /// [HttpPost] [Route("BatchDelFormCopy")] public DataResult BatchDelFormCopy([FromBody] IdModel req) { var res = _invokeService.BatchDelFormCopy(req); return res; } }