2024-07-23 09:28:17 +08:00

72 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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>
[AllowAnonymous]
[Route("kanban/loginOrsetting")]
public class LoginOrSetController : BaseController
{
/// <summary>
/// 客户信息接口
/// </summary>
private readonly ILoginOrSetService _LoginOrSetService;
public LoginOrSetController(ILoginOrSetService LoginOrSetService)
{
_LoginOrSetService = LoginOrSetService;
}
/// <summary>
/// 获取组
/// </summary>
/// <returns></returns>
[HttpGet("get_group")]
public IActionResult GetGroupList()
{
var response = _LoginOrSetService.GetGroupList();
return SUCCESS(response);
}
/// <summary>
/// 获取组
/// </summary>
/// <returns></returns>
[HttpGet("get_route")]
public IActionResult GetRouteList()
{
var response = _LoginOrSetService.GetRouteList();
return SUCCESS(response);
}
//工单
[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);
}
}
}