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 FormSetController : ApiController
{
private readonly IFormSetService _invokeService;
///
/// 构造函数
///
///
public FormSetController(IFormSetService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetFormSetList")]
public DataResult> GetFormSetList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditFormSet")]
public DataResult EditFormSet([FromBody] CodeFormSetReq req)
{
var res = _invokeService.EditFormSet(req);
return res;
}
///
/// 详情
///
/// Id
///
[HttpGet]
[Route("GetFormSetInfo")]
public DataResult GetFormSetInfo([FromQuery] string id)
{
var res = _invokeService.GetFormSetInfo(id);
return res;
}
}