feat 人脸检测
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Dlhis.Basic.Organization.Request;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Dlhis.Basic.Organization.Request;
|
||||
using Dlhis.Basic.Organization.Response;
|
||||
using Dlhis.Basic.Organization.Services;
|
||||
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
|
||||
@@ -43,4 +44,15 @@ public class FactorySettingController : ControllerBase
|
||||
{
|
||||
await _factorySettingService.SaveAsync(request);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据factory获取配置
|
||||
/// </summary>
|
||||
/// <param name="factory"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("single")]
|
||||
public async Task<FactorySettingResponse> GetFactorySettingAsync([Required(ErrorMessage = "厂区不可为空")] string factory)
|
||||
{
|
||||
return await _factorySettingService.GetFactorySettingAsync(factory);
|
||||
}
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
using Dlhis.Basic.Device.Filters;
|
||||
using Dlhis.Basic.Organization.Request;
|
||||
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 GainfoOutsourceSettingController : ControllerBase
|
||||
{
|
||||
private readonly IGainfoOutsourceSettingService _gainfoOutSourceService;
|
||||
|
||||
public GainfoOutsourceSettingController(IGainfoOutsourceSettingService gainfoOutSourceService)
|
||||
{
|
||||
_gainfoOutSourceService = gainfoOutSourceService;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 保存配置
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
[HttpPost("save")]
|
||||
[AssignPermissionLimit]
|
||||
[Transactional]
|
||||
[CrossTenant]
|
||||
public async Task SaveAsync(GainfoOutsourceSettingSaveRequest request)
|
||||
{
|
||||
await _gainfoOutSourceService.SaveAsync(request);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取当前厂区配置
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("current")]
|
||||
public async Task<object> GetSettingAsync()
|
||||
{
|
||||
return await _gainfoOutSourceService.GetSettingAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user