You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookingHeChuan/Myshipping.Core/Service/User/ISysUserRoleService.cs

19 lines
560 B
C#

2 years ago
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Myshipping.Core.Service;
2 years ago
public interface ISysUserRoleService
{
Task DeleteUserRoleListByRoleId(long roleId);
Task DeleteUserRoleListByUserId(long userId);
Task<List<long>> GetUserRoleDataScopeIdList(long userId, long orgId);
Task<List<long>> GetUserRoleIdList(long userId);
Task GrantRole(UpdateUserInput input);
10 months ago
/// <summary>
/// 判断某用户是否属于指定角色
/// </summary>
Task<bool> IsUserInRole(long userId, string roleCode);
2 years ago
}