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.
39 lines
910 B
Plaintext
39 lines
910 B
Plaintext
11 months ago
|
using System;
|
||
|
using System.Web;
|
||
|
|
||
|
namespace CCFlow.DataUser.API
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 操作结果封装
|
||
|
/// </summary>
|
||
|
|
||
|
public class OperateResult
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 状态
|
||
|
/// </summary>
|
||
|
public int State { get; set; }
|
||
|
/// <summary>
|
||
|
/// 消息
|
||
|
/// </summary>
|
||
|
public string Message { get; set; }
|
||
|
/// <summary>
|
||
|
/// 操作结果
|
||
|
/// </summary>
|
||
|
public object Data { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 初始化
|
||
|
/// </summary>
|
||
|
/// <param name="state">状态</param>
|
||
|
/// <param name="message">消息</param>
|
||
|
/// <param name="data">操作结果</param>
|
||
|
public OperateResult(int state, string message, object data = null)
|
||
|
{
|
||
|
this.State = state;
|
||
|
this.Message = message;
|
||
|
this.Data = data;
|
||
|
}
|
||
|
}
|
||
|
}
|