72 lines
1.7 KiB
C#
Raw Normal View History

2024-07-23 08:49:40 +08:00
using Microsoft.AspNetCore.Mvc;
using DOAN.Admin.WebApi.Filters;
using DOAN.Service.JobKanban;
using DOAN.Service.JobKanban.IService;
using Aliyun.OSS;
//创建时间2024-07-08
namespace DOAN.Admin.WebApi.Controllers.JobKanban
{
/// <summary>
/// 客户信息
/// </summary>
2024-07-23 09:16:42 +08:00
[AllowAnonymous]
2024-07-23 08:49:40 +08:00
[Route("kanban/loginOrsetting")]
public class LoginOrSetController : BaseController
{
/// <summary>
/// 客户信息接口
/// </summary>
private readonly ILoginOrSetService _LoginOrSetService;
public LoginOrSetController(ILoginOrSetService LoginOrSetService)
{
_LoginOrSetService = LoginOrSetService;
}
/// <summary>
/// 获取组
/// </summary>
/// <returns></returns>
2024-07-23 08:58:08 +08:00
[HttpGet("get_group")]
2024-07-23 08:49:40 +08:00
public IActionResult GetGroupList()
{
var response = _LoginOrSetService.GetGroupList();
return SUCCESS(response);
}
2024-07-23 09:22:43 +08:00
/// <summary>
/// 获取组
/// </summary>
/// <returns></returns>
[HttpGet("get_route")]
public IActionResult GetRouteList()
{
var response = _LoginOrSetService.GetRouteList();
return SUCCESS(response);
}
//工单
2024-07-23 09:28:17 +08:00
[HttpGet("get_workorder")]
public IActionResult GetWorkOrderList(DateTime today,string LineCode)
{
if(today == DateTime.MinValue|| string.IsNullOrEmpty(LineCode))
{
return SUCCESS(null);
}
var response = _LoginOrSetService.GetWorkOrderList(today, LineCode);
return SUCCESS(response);
}
2024-07-23 09:22:43 +08:00
2024-07-23 08:49:40 +08:00
}
}