using DS.Module.Core; 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] FormSetReq req) { var res = _invokeService.EditFormSet(req); return res; } /// /// 详情 /// /// 权限Id /// [HttpGet] [Route("GetFormSetInfo")] public DataResult GetFormSetInfo([FromQuery] string permissionId) { var res = _invokeService.GetFormSetInfo(permissionId); return res; } }