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.
99 lines
2.5 KiB
C#
99 lines
2.5 KiB
C#
using DS.Module.Core;
|
|
using DS.Module.Core.Data;
|
|
using DS.WMS.Core.System.Dtos;
|
|
using DS.WMS.Core.System.Interface;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DS.WMS.AdminApi.Controllers;
|
|
|
|
/// <summary>
|
|
/// 系统版本信息 模块
|
|
/// </summary>
|
|
public class VersionController : ApiController
|
|
{
|
|
private readonly IVersionService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public VersionController(IVersionService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetVersionList")]
|
|
public DataResult<List<VersionRes>> GetVersionList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetListByPage(request);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 编辑
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("EditVersion")]
|
|
public DataResult EditVersion([FromBody] VersionReq req)
|
|
{
|
|
var res = _invokeService.EditVersion(req);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 详情
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetVersionInfo")]
|
|
public DataResult<VersionRes> GetVersionInfo([FromQuery] string id)
|
|
{
|
|
var res = _invokeService.GetVersionInfo(id);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 执行版本更新
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("ExecuteVersionUpdate")]
|
|
public async Task<DataResult> ExecuteVersionUpdate([FromBody] IdModel model)
|
|
{
|
|
return await _invokeService.ExecuteVersionUpdate(model);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取版本已更新的租户列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetTenantVersionUpdateList")]
|
|
public DataResult<List<TenantVersionRes>> GetTenantVersionUpdateList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetTenantVersionUpdateList(request);
|
|
return res;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 更新租户表差异
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("UpdateSaasTableInfo")]
|
|
public DataResult UpdateSaasTableInfo()
|
|
{
|
|
return _invokeService.UpdateSaasTableInfo();
|
|
}
|
|
} |