|
|
@@ -131,7 +131,7 @@ namespace HKLib.Interfaces |
|
|
|
}).Build().RunStringFirstAsync(); |
|
|
|
if (data.IsNullOrEmpty()) return new List<OrgDto>(); |
|
|
|
var model = data.ToModel<JObject>()["data"]["data"].ToJson().ToModel<List<OrgOutDto>>(); |
|
|
|
return model.Where(t => !t.Name.IsNullOrEmpty()).Where(t => !t.Name.Contains("管理员")).Select(t => new OrgDto |
|
|
|
return model.Where(t => !t.Name.IsNullOrEmpty()).Select(t => new OrgDto |
|
|
|
{ |
|
|
|
Name = t.Name, |
|
|
|
SId = t.Id |
|
|
@@ -194,7 +194,7 @@ namespace HKLib.Interfaces |
|
|
|
if (string.IsNullOrEmpty(data)) |
|
|
|
return new List<UserListDto>(); |
|
|
|
var res = data.ToModel<JObject>()["data"]["data"].ToJson().ToModel<List<UserListDto>>(); |
|
|
|
return res.Where(t=>!string.IsNullOrEmpty(t.Name)).Where(t=>!t.Name.Contains("管理员")).OrderByDescending(t=>t.Num).ToList(); |
|
|
|
return res.Where(t=>!string.IsNullOrEmpty(t.Name)).OrderByDescending(t=>t.Num).ToList(); |
|
|
|
} |
|
|
|
|
|
|
|
public static List<UserListDto> GetUserListSync(string keyword) |
|
|
|