using DS.Module.Core;
using DS.WMS.Core.Code.Dtos;
using DS.WMS.Core.Code.Interface;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.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 permissionId)
{
var res = _invokeService.GetFormCopyInfo(permissionId);
return res;
}
}