|
|
@ -24,6 +24,7 @@ using Furion.EventBus;
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
using Myshipping.Core.Const;
|
|
|
|
using Myshipping.Core.Const;
|
|
|
|
using MathNet.Numerics.RootFinding;
|
|
|
|
using MathNet.Numerics.RootFinding;
|
|
|
|
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Myshipping.Core.Service;
|
|
|
|
namespace Myshipping.Core.Service;
|
|
|
|
|
|
|
|
|
|
|
@ -43,6 +44,7 @@ public class SysUserService : ISysUserService, IDynamicApiController, ITransient
|
|
|
|
private readonly IEventPublisher _publisher;
|
|
|
|
private readonly IEventPublisher _publisher;
|
|
|
|
private readonly ISysDataUserMenu _sysDataUserMenu;
|
|
|
|
private readonly ISysDataUserMenu _sysDataUserMenu;
|
|
|
|
private readonly ISysRoleService _sysRoleService;
|
|
|
|
private readonly ISysRoleService _sysRoleService;
|
|
|
|
|
|
|
|
private readonly ILogger<SysUserService> _logger;
|
|
|
|
|
|
|
|
|
|
|
|
public SysUserService(SqlSugarRepository<SysUser> sysUserRep,
|
|
|
|
public SysUserService(SqlSugarRepository<SysUser> sysUserRep,
|
|
|
|
ISysCacheService sysCacheService,
|
|
|
|
ISysCacheService sysCacheService,
|
|
|
@ -53,7 +55,7 @@ public class SysUserService : ISysUserService, IDynamicApiController, ITransient
|
|
|
|
ISysEmpPosService sysEmpPosService,
|
|
|
|
ISysEmpPosService sysEmpPosService,
|
|
|
|
IEventPublisher publisher,
|
|
|
|
IEventPublisher publisher,
|
|
|
|
ISysDataUserMenu sysDataUserMenu,
|
|
|
|
ISysDataUserMenu sysDataUserMenu,
|
|
|
|
ISysRoleService sysRoleService)
|
|
|
|
ISysRoleService sysRoleService, ILogger<SysUserService> logger)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_sysUserRep = sysUserRep;
|
|
|
|
_sysUserRep = sysUserRep;
|
|
|
|
_sysCacheService = sysCacheService;
|
|
|
|
_sysCacheService = sysCacheService;
|
|
|
@ -65,6 +67,7 @@ public class SysUserService : ISysUserService, IDynamicApiController, ITransient
|
|
|
|
_publisher = publisher;
|
|
|
|
_publisher = publisher;
|
|
|
|
_sysDataUserMenu = sysDataUserMenu;
|
|
|
|
_sysDataUserMenu = sysDataUserMenu;
|
|
|
|
_sysRoleService = sysRoleService;
|
|
|
|
_sysRoleService = sysRoleService;
|
|
|
|
|
|
|
|
_logger = logger;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -234,6 +237,7 @@ public class SysUserService : ISysUserService, IDynamicApiController, ITransient
|
|
|
|
[HttpPost("/sysUser/edit")]
|
|
|
|
[HttpPost("/sysUser/edit")]
|
|
|
|
public async Task UpdateUser(UpdateUserInput input)
|
|
|
|
public async Task UpdateUser(UpdateUserInput input)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
// 数据范围检查
|
|
|
|
// 数据范围检查
|
|
|
|
CheckDataScopeByUserId(input.Id);
|
|
|
|
CheckDataScopeByUserId(input.Id);
|
|
|
|
|
|
|
|
|
|
|
|