123
This commit is contained in:
parent
147eb7d8fe
commit
4a537bc7f6
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -12,7 +12,7 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
/// 客户信息
|
||||
/// </summary>
|
||||
[Verify]
|
||||
[Route("baseManagement/BaseCustom")]
|
||||
[Route("mes/baseManagement/BaseCustom")]
|
||||
public class BaseCustomController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@ -38,7 +38,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Controllers\JobKanban\" />
|
||||
<Folder Include="Properties\PublishProfiles\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@ -29,8 +29,5 @@
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="JobKanban\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
15
DOAN.Service/JobKanban/IService/ILoginOrSetService.cs
Normal file
15
DOAN.Service/JobKanban/IService/ILoginOrSetService.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
26
DOAN.Service/JobKanban/LoginOrSetService.cs
Normal file
26
DOAN.Service/JobKanban/LoginOrSetService.cs
Normal 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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user