using DS.Module.Core;
using DS.Module.DjyServiceStatus;
using DS.Module.ExcelModule;
using DS.Module.ExcelModule.Model;
using DS.Module.PrintModule;
using DS.WMS.Core.Code.Interface;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.OpApi.Controllers
{
///
/// 大简云服务项目服务 模块
///
public class DjyServiceStatusController : ApiController
{
private readonly IDjyServiceStatusService _invokeService;
///
/// 构造函数
///
///
public DjyServiceStatusController(IDjyServiceStatusService invokeService)
{
_invokeService = invokeService;
}
///
/// 保存服务项目
///
///
/// 返回回执
[HttpPost]
[Route("SaveServiceProject")]
public async Task SaveServiceProject([FromBody] EmbedServiceProjectDto req)
{
return await _invokeService.SaveServiceProject(req);
}
///
/// 取消服务项目
///
///
/// 返回回执
[HttpPost]
[Route("CancelServiceProject")]
public async Task CancelServiceProject([FromBody] EmbedServiceProjectDto req)
{
return await _invokeService.CancelServiceProject(req);
}
///
/// 获取服务项目列表
///
///
/// 返回回执
[HttpPost]
[Route("GetServiceProjectList")]
public async Task GetServiceProjectList([FromBody] EmbedQueryServiceProjectWithStatus req)
{
return await _invokeService.GetServiceProjectList(req);
}
///
/// 获取服务项目下的状态列表
///
///
/// 返回回执
[HttpPost]
[Route("GetServiceStatusList")]
public async Task GetServiceStatusList([FromBody] EmbedQueryServiceProjectWithStatus req)
{
return await _invokeService.GetServiceStatusList(req);
}
///
/// 保存服务状态
///
///
/// 返回回执
[HttpPost]
[Route("SaveServiceStatus")]
public async Task SaveServiceStatus([FromBody] EmbedServiceProjectStatusDto req)
{
return await _invokeService.SaveServiceStatus(req);
}
///
/// 取消服务状态
///
///
/// 返回回执
[HttpPost]
[Route("CancelServiceStatus")]
public async Task CancelServiceStatus([FromBody] EmbedServiceProjectStatusDto req)
{
return await _invokeService.CancelServiceStatus(req);
}
///
/// 获取可用的服务项目字典列表
///
/// 是否重新加载缓存
///
[HttpGet]
[Route("GetEnableProjectDictTreeList")]
public async Task GetEnableProjectDictTreeList([FromQuery] bool isAvoidCache = false)
{
return await _invokeService.GetEnableProjectDictTreeList(isAvoidCache);
}
}
}