You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.4 KiB
C#
90 lines
2.4 KiB
C#
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.Sys.Dtos;
|
|
using DS.WMS.Core.Sys.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>
|
|
[HttpPost]
|
|
[Route("BatchDelColumnSet")]
|
|
public DataResult BatchDelColumnSet([FromBody] IdModel req)
|
|
{
|
|
var res = _invokeService.BatchDelColumnSet(req);
|
|
return res;
|
|
}
|
|
} |