This commit is contained in:
qianhao.xu 2024-07-23 08:49:40 +08:00
parent 147eb7d8fe
commit 4a537bc7f6
6 changed files with 87 additions and 5 deletions

View File

@ -0,0 +1,45 @@
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>
[Verify]
[Route("kanban/loginOrsetting")]
public class LoginOrSetController : BaseController
{
/// <summary>
/// 客户信息接口
/// </summary>
private readonly ILoginOrSetService _LoginOrSetService;
public LoginOrSetController(ILoginOrSetService LoginOrSetService)
{
_LoginOrSetService = LoginOrSetService;
}
/// <summary>
/// 获取组
/// </summary>
/// <returns></returns>
public IActionResult GetGroupList()
{
var response = _LoginOrSetService.GetGroupList();
return SUCCESS(response);
}
}
}

View File

@ -12,7 +12,7 @@ namespace DOAN.Admin.WebApi.Controllers
/// 客户信息
/// </summary>
[Verify]
[Route("baseManagement/BaseCustom")]
[Route("mes/baseManagement/BaseCustom")]
public class BaseCustomController : BaseController
{
/// <summary>

View File

@ -38,7 +38,6 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Controllers\JobKanban\" />
<Folder Include="Properties\PublishProfiles\" />
</ItemGroup>

View File

@ -29,8 +29,5 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Compile>
</ItemGroup>
<ItemGroup>
<Folder Include="JobKanban\" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,15 @@
using DOAN.Model.MES.base_;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DOAN.Service.JobKanban.IService
{
public interface ILoginOrSetService
{
List<BaseGroup> GetGroupList();
}
}

View File

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DOAN.Model.MES.andon;
using DOAN.Model.MES.base_;
using DOAN.Service.JobKanban.IService;
using DOAN.Service.MES.andon.IService;
using Infrastructure.Attribute;
namespace DOAN.Service.JobKanban
{
[AppService(ServiceType = typeof(ILoginOrSetService), ServiceLifetime = LifeTime.Transient)]
public class LoginOrSetService : BaseService<BaseGroup>, ILoginOrSetService
{
public List<BaseGroup> GetGroupList()
{
return Context.Queryable<BaseGroup>().Where(it=>it.Status==1).ToList();
}
}
}