在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Dscf.Global.CommonAduit { [Serializable] public class ResultMessage { #region 构造函数 public ResultMessage() { } public ResultMessage(bool returnType) { this.ReturnType = returnType; this.ReturnMsg = returnType ? "操作成功" : "操作失败"; } public ResultMessage(bool returnType, string returnMsg) { this.ReturnType = returnType; this.ReturnMsg = returnMsg; } public ResultMessage(bool returnType, string returnMsg, object returnData) { this.ReturnType = returnType; this.ReturnMsg = returnMsg; this.ReturnData = returnData; } public ResultMessage(bool returnType, string returnMsg, int returnCount) { this.ReturnType = returnType; this.ReturnMsg = returnMsg; this.ReturnCount = returnCount; } public ResultMessage(bool returnType, string returnMsg, int returnCount, object returnData) { this.ReturnType = returnType; this.ReturnMsg = returnMsg; this.ReturnCount = returnCount; this.ReturnData = returnData; } #endregion /// <summary> /// 返回是否成功的类型 /// </summary> public bool ReturnType { get; set; } /// <summary> /// 返回的消息 /// </summary> public string ReturnMsg { get; set; } /// <summary> /// 返回的数据 /// </summary> public object ReturnData { get; set; } /// <summary> /// 返回的数据记录总数 /// </summary> public int ReturnCount { get; set; } /// <summary> /// 序列化消息 /// </summary> /// <returns></returns> public override string ToString() { return new SerializerHelper().SerializeToJson(this); } } } |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论