Files
lserp_cs_6.0/插件库/Lskj.Model/BaseResponse.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

50 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lskj.Model
{
public class BaseResponse
{
/// <summary>
/// 是否成功
/// </summary>
public bool success { get; set; }
/// <summary>
/// 文字信息
/// </summary>
[Newtonsoft.Json.JsonProperty(NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string msg { get; set; }
/// <summary>
/// 数据总数
/// </summary>
[Newtonsoft.Json.JsonProperty(DefaultValueHandling = Newtonsoft.Json.DefaultValueHandling.Ignore)]
[System.ComponentModel.DefaultValue(0)]
public int tot { get; set; }
/// <summary>
/// 返回的主数据
/// </summary>
[Newtonsoft.Json.JsonProperty(NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public object data { get; set; }
/// <summary>
/// 如有其它数据
/// </summary>
[Newtonsoft.Json.JsonProperty(NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public object other { get; set; }
/// <summary>
/// json编码后的字符串
/// </summary>
[Newtonsoft.Json.JsonIgnore]
public string EncodedResult { get; set; }
/// <summary>
/// json编码后的字符串
/// </summary>
[Newtonsoft.Json.JsonIgnore]
public bool WriteResponse = true;
}
}