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.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
///
/// 列表字段设置 模块
///
public class ColumnSetController : ApiController
{
private readonly IColumnSetService _invokeService;
///
/// 构造函数
///
///
public ColumnSetController(IColumnSetService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetColumnSetList")]
public DataResult> GetColumnSetList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditColumnSet")]
public DataResult EditColumnSet([FromBody] ColumnSetReq req)
{
var res = _invokeService.EditColumnSet(req);
return res;
}
///
/// 详情
///
/// Id
///
[HttpGet]
[Route("GetColumnSetInfo")]
public DataResult GetColumnSetInfo([FromQuery] string id)
{
var res = _invokeService.GetColumnSetInfo(id);
return res;
}
///
/// 按模块获取列表设置详情
///
/// 权限模块id
/// 列表序号
///
[HttpGet]
[Route("GetColumnSetInfoByModule")]
public DataResult GetColumnSetInfoByModule([FromQuery] string permissionId, int columnNo = 0)
{
var res = _invokeService.GetColumnSetInfoByModule(permissionId, columnNo);
return res;
}
///
/// 批量删除
///
/// req
///
[HttpGet]
[Route("BatchDelColumnSet")]
public DataResult BatchDelColumnSet([FromBody] IdModel req)
{
var res = _invokeService.BatchDelColumnSet(req);
return res;
}
}