|
@@ -78,14 +78,14 @@ namespace HKLib.Interfaces |
|
|
|
|
|
|
|
|
public static List<OrgDto> GetOrg() |
|
|
public static List<OrgDto> GetOrg() |
|
|
{ |
|
|
{ |
|
|
var data = IHttpMultiClient.HttpMulti |
|
|
|
|
|
|
|
|
|
|
|
.AddNode(t => |
|
|
|
|
|
|
|
|
var data = IHttpMultiClient.HttpMulti.AddNode(t => |
|
|
{ |
|
|
{ |
|
|
t.NodePath = $"{Configer.SaasRoute}api/one-card/member-tag-list"; |
|
|
t.NodePath = $"{Configer.SaasRoute}api/one-card/member-tag-list"; |
|
|
t.ReqType = MultiType.GET; |
|
|
t.ReqType = MultiType.GET; |
|
|
}).Build().RunStringFirst().ToModel<JObject>()["data"]["data"].ToJson().ToModel<List<OrgOutDto>>(); |
|
|
|
|
|
return data.Where(t => !t.Name.IsNullOrEmpty()).Select(t => new OrgDto |
|
|
|
|
|
|
|
|
}).Build().RunStringFirst(); |
|
|
|
|
|
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()).Select(t => new OrgDto |
|
|
{ |
|
|
{ |
|
|
Name = t.Name, |
|
|
Name = t.Name, |
|
|
SId = t.Id |
|
|
SId = t.Id |
|
|