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