You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.6 KiB

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using BaseService.BaseData.Permissions.Dto;
using BaseService.BaseData.UserBranchRoleManagement.Dto;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
namespace BaseService.BaseData.UserBranchRoleManagement
{
/// <summary>
/// 用户--分支--角色
/// </summary>
public interface IUserBranchAppService : IApplicationService
{
Task<PagedResultDto<UserBranchDto>> GetPagedListAsync(GetUserBranchInput input);
Task<UserBranchDto> GetAsync(Guid id);
//Task<UserBranchDto> CreateAsync(CreateOrUpdateUserBranchDto input);
Task CreateUpdateAsync(CreateOrUpdateUserBranchDto input);
Task<UserBranchDto> UpdateAsync(Guid id, CreateOrUpdateUserBranchDto input);
Task DeleteAsync(List<Guid> ids);
Task<List<UserBranchDto>> GetUserBranchsAsync(Guid userId);
Task<List<UserBranchDto>> GetCurrentUserBranchesAsync();
Task<ApplicationAuthes> GetAuthConfigAsync(Guid branchId);
Task<List<UserBranchRole>> GetUserRolesAsync(Guid userId,Guid branchId);
Task DeleteUnitAsync(Guid userId, Guid branchId);
//Task<List<UserBranchRole>> GetBranchRolesAsync(Guid branchId);
List<UserBranchRole> GetBranchRolesAsync(Guid branchId);
//Task<List<UserBranchRole>> GetUserRolesAsync(Guid userId);
List<UserBranchRole> GetUserRolesAsync(Guid userId);
Task<UserBranchDto> GetCurrentUserBranchAsync(Guid userId);
Task DeleteUnitAsync(Guid userId);
}
}