temp
This commit is contained in:
parent
4f3b7733e0
commit
734508c1d8
@ -31,7 +31,11 @@ public class InterfaceCategoryService(IBasicRepository<InterfaceCategoryEntity>
|
||||
List<T> datas) where T : HasCategoryId
|
||||
{
|
||||
var res = new List<CategoryTreeNode<T>>();
|
||||
foreach (var category in categories.Where(x => x.PId == pId))
|
||||
var elements = categories.Where(x => x.PId == pId).ToList();
|
||||
if (elements.IsEmpty()) return res;
|
||||
categories = categories.Except(elements).ToList();
|
||||
|
||||
foreach (var category in elements)
|
||||
{
|
||||
res.Add(new CategoryTreeNode<T>
|
||||
{
|
||||
|
||||
@ -39,13 +39,13 @@ public class ServiceProviderInterfaceService : ApplicationService
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 服务商接口分页列表
|
||||
/// 服务商接口树形列表
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("Interface/ServiceProviderInterfacePaginatedList")]
|
||||
[HttpPost("Interface/GetServiceProviderInterfaceTreeListAsync")]
|
||||
public async Task<List<CategoryTreeNode<ServiceProviderInterfaceTreeListOutputValueObject>>>
|
||||
ServiceProviderInterfacePaginatedListAsync(ServiceProviderInterfaceTreeListInputObjectValue input)
|
||||
GetServiceProviderInterfaceTreeListAsync(ServiceProviderInterfaceTreeListInputObjectValue input)
|
||||
{
|
||||
var res = await InterfaceRepository.GetServiceProviderInterfaceListAsync(input);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user