add apies
This commit is contained in:
@@ -1,37 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JetBrains.Annotations;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace Caspian.WorkflowFramework.Models
|
||||
namespace Caspian.WorkflowFramework.Models;
|
||||
[PublicAPI]
|
||||
public class WorkflowResponse<T> : WorkflowResponseBase where T : class, new()
|
||||
{
|
||||
[PublicAPI]
|
||||
public class WorkflowResponse<T> : WorkflowResponseBase where T : class, new()
|
||||
public WorkflowResponse()
|
||||
{
|
||||
public WorkflowResponse()
|
||||
{
|
||||
Data = new T();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// پاسخ
|
||||
/// </summary>
|
||||
public T? Data { get; set; }
|
||||
Data = new T();
|
||||
}
|
||||
|
||||
[PublicAPI]
|
||||
public class WorkflowResponseBase
|
||||
{
|
||||
/// <summary>
|
||||
/// وضعیت پاسخ
|
||||
/// </summary>
|
||||
public int? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// پیام پاسخ
|
||||
/// </summary>
|
||||
public string? Message { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// پاسخ
|
||||
/// </summary>
|
||||
public T? Data { get; set; }
|
||||
}
|
||||
|
||||
[PublicAPI]
|
||||
public class WorkflowResponseBase
|
||||
{
|
||||
/// <summary>
|
||||
/// وضعیت پاسخ
|
||||
/// </summary>
|
||||
public int? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// پیام پاسخ
|
||||
/// </summary>
|
||||
public string? Message { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user