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