|
|
@ -1,6 +1,10 @@
|
|
|
|
using System;
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
using System.Text;
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
|
|
#region << 版 本 注 释 >>
|
|
|
|
#region << 版 本 注 释 >>
|
|
|
|
/*--------------------------------------------------------------------
|
|
|
|
/*--------------------------------------------------------------------
|
|
|
@ -32,9 +36,25 @@ namespace SlnMesnac.RfidUpload.Model.apiParam
|
|
|
|
|
|
|
|
|
|
|
|
public string msg { get; set; }
|
|
|
|
public string msg { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public List<Object> @object { get; set; }
|
|
|
|
// public List<Object> @object { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsSuccess => code == "200";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<T> ToObjectList<T>()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
JObject job = JObject.Parse(body);
|
|
|
|
|
|
|
|
string str = job["retBody"]?["object"]?.ToString();
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(str))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
List<T> institutionList = JsonConvert.DeserializeObject<List<T>>(str);
|
|
|
|
|
|
|
|
return institutionList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new List<T>();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string body { get; set; }
|
|
|
|
public string body { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string code { get; set; }
|
|
|
|
public string code { get; set; }
|
|
|
|
public string csbCode { get; set; }
|
|
|
|
public string csbCode { get; set; }
|
|
|
|