You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.2 KiB
C#
48 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace POSV.HttpApi
|
|
{
|
|
/// <summary>
|
|
/// 开放平台返回处理错误的主对象
|
|
/// </summary>
|
|
[SerializableAttribute]
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
public class Errors
|
|
{
|
|
[JsonProperty(PropertyName = "errorToken")]
|
|
public string ErrorToken { get; set; }
|
|
|
|
[JsonProperty(PropertyName = "code")]
|
|
public string Code { get; set; }
|
|
|
|
[JsonProperty(PropertyName = "message")]
|
|
public string Message { get; set; }
|
|
|
|
[JsonProperty(PropertyName = "solution")]
|
|
public string Solution { get; set; }
|
|
|
|
[JsonProperty(PropertyName = "subErrors")]
|
|
public List<SubErrors> SubErrors { get; set; }
|
|
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 开放平台返回处理错误的子对象
|
|
/// </summary>
|
|
[SerializableAttribute]
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
public class SubErrors
|
|
{
|
|
[JsonProperty(PropertyName = "code")]
|
|
public string Code { get; set; }
|
|
|
|
[JsonProperty(PropertyName = "message")]
|
|
public string Message { get; set; }
|
|
}
|
|
}
|