fyf pirms 2 gadiem
vecāks
revīzija
7ae02d5e1d
1 mainītis faili ar 7 papildinājumiem un 7 dzēšanām
  1. +7
    -7
      DataVAPI.Model/JsonMsg.cs

+ 7
- 7
DataVAPI.Model/JsonMsg.cs Parādīt failu

@@ -29,12 +29,12 @@ namespace DataVAPI.Model
/// <summary>
/// 内容
/// </summary>
public T obj { get; set; }
public IOTData<T> obj { get; set; }

/// <summary>
/// 返回数据
/// </summary>
public IOTData<T> oTData { get; set; }
///// <summary>
///// 返回数据
///// </summary>
//public IOTData<T> oTData { get; set; }

/// <summary>
/// 图标
@@ -50,7 +50,7 @@ namespace DataVAPI.Model
Console.WriteLine(str);
Console.ForegroundColor = currentForeColor;
;
return new JsonMsg<T>() { code = 1, ms = mso, msg = "成功", obj = obj, icon = 1, oTData = new IOTData<T> { data = obj } };
return new JsonMsg<T>() { code = 1, ms = mso, msg = "成功", obj = new IOTData<T> { data = obj }, icon = 1};
}

public static JsonMsg<T> Error(T obj, string msg = "接口名称", string mso = "调用接口成功失败")
@@ -60,7 +60,7 @@ namespace DataVAPI.Model
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(str);
Console.ForegroundColor = currentForeColor;
return new JsonMsg<T>() { code = 0, ms = mso, msg = "失败", obj = obj, icon = 1, oTData = new IOTData<T> { data = obj } };
return new JsonMsg<T>() { code = 0, ms = mso, msg = "失败",icon = 1, obj = new IOTData<T> { data = obj } };
}
}



Notiek ielāde…
Atcelt
Saglabāt