2018-08-14 12:32:25 +08:00

38 lines
784 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShadowEditor.Server
{
/// <summary>
/// 脚本运行结果
/// </summary>
public class Result
{
/// <summary>
/// 状态码200-执行成功300-执行失败)
/// </summary>
public int Code { get; set; }
/// <summary>
/// 状态信息
/// </summary>
public string Msg { get; set; }
}
/// <summary>
/// 脚本运行结果(泛型)
/// </summary>
/// <typeparam name="T"></typeparam>
public class Result<T>
{
public int Code { get; set; }
public string Msg { get; set; }
public T Data { get; set; }
}
}