fix 人员同步,下发任务创建
This commit is contained in:
@@ -3,11 +3,15 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Nullable>disable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Kurisu.RemoteCall" Version="0.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Response\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
14
Src/Dlhis.Basic.Api/Dtos/PermissionUsersInfoDto.cs
Normal file
14
Src/Dlhis.Basic.Api/Dtos/PermissionUsersInfoDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Dlhis.Basic.Api.Dtos;
|
||||
|
||||
public class PermissionUsersInfoDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 拥有权限的用户
|
||||
/// </summary>
|
||||
public List<string> UserNos { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户对应的 [ 厂区--设备Code ]
|
||||
/// </summary>
|
||||
public Dictionary<string, List<UserTenantDeviceCodeDto>> PermissionInfos { get; set; }
|
||||
}
|
||||
14
Src/Dlhis.Basic.Api/Dtos/UserTenantDeviceCodeDto.cs
Normal file
14
Src/Dlhis.Basic.Api/Dtos/UserTenantDeviceCodeDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Dlhis.Basic.Api.Dtos;
|
||||
|
||||
public class UserTenantDeviceCodeDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 租户
|
||||
/// </summary>
|
||||
public string Tenant { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备权限
|
||||
/// </summary>
|
||||
public List<Guid> Codes { get; set; }
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Kurisu.Core.Result;
|
||||
using Dlhis.Basic.Api.Dtos;
|
||||
using Kurisu.Core.Result;
|
||||
using Kurisu.RemoteCall.Attributes;
|
||||
|
||||
namespace Dlhis.Basic.Api;
|
||||
@@ -9,4 +10,20 @@ public interface IDevicePermissionApi
|
||||
[Auth]
|
||||
[Get("/api/devicepermissions/canteen/uniqueNos")]
|
||||
Task<DefaultApiResult<List<string>>> GetCanteenDeviceUniqueNosByUserNoAsync(string userNo);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取所有人的权限信息
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Get("/api/devicepermissions/all-permission")]
|
||||
Task<DefaultApiResult<PermissionUsersInfoDto>> GetPermissionUsersInfoAsync();
|
||||
|
||||
/// <summary>
|
||||
/// 重新生成权限
|
||||
/// </summary>
|
||||
/// <param name="beforeDto"></param>
|
||||
/// <returns></returns>
|
||||
[Post("/api/devicepermissions/re-permission")]
|
||||
Task<DefaultApiResult<int>> RePermissionUsersInfoAsync(PermissionUsersInfoDto beforeDto);
|
||||
}
|
||||
Reference in New Issue
Block a user