feat 厂区配置
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
using Dlhis.Basic.Organization.Request;
|
||||
using Dlhis.Basic.Organization.Response;
|
||||
using Dlhis.Basic.Organization.Services;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Dlhis.Basic.Organization.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// 厂区配置
|
||||
/// </summary>
|
||||
[Authorize]
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class FactorySettingController : ControllerBase
|
||||
{
|
||||
private readonly IFactorySettingService _factorySettingService;
|
||||
|
||||
public FactorySettingController(IFactorySettingService factorySettingService)
|
||||
{
|
||||
_factorySettingService = factorySettingService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取厂区列表
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[IgnoreTenant]
|
||||
public async Task<List<FactorySettingResponse>> GetListAsync()
|
||||
{
|
||||
return await _factorySettingService.GetListAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存配置
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
[HttpPost("save")]
|
||||
[IgnoreTenant]
|
||||
public async Task SaveAsync(FactorySettingSaveRequest request)
|
||||
{
|
||||
await _factorySettingService.SaveAsync(request);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user