using BaseService.Systems.UserMenusManagement;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Volo.Abp.Identity;
namespace Business.Test
{
///
/// 内部网关接口示例
///
public class TestAppService : ApplicationService, ITestAppService
{
private readonly IIdentityUserLookupAppService _identityUserLookupAppService;
private readonly IRoleMenusAppService _roleMenusAppService;
public TestAppService(
IIdentityUserLookupAppService identityUserLookupAppService,
IRoleMenusAppService roleMenusAppService
)
{
_identityUserLookupAppService = identityUserLookupAppService;
_roleMenusAppService = roleMenusAppService;
}
public async Task TestApi(string name)
{
var arr = name.Split('.');
return "010101";
}
///
/// 内部网关-用户数量
///
///
public async Task GetUserCount()
{
return await _identityUserLookupAppService.GetCountAsync(new UserLookupCountInputDto { Filter = null });
}
/////
///// 内部网关-菜单树形
/////
/////
//public async Task GetMenuTree()
//{
// return await _roleMenusAppService.GetMenusList();
//}
}
}