itfx/src/InterfaceForward.Repositories/Interface/ValueObjects/SystemInterfaceOutput.cs

129 lines
2.6 KiB
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.Text.Json.Serialization;
using InterfaceForward.Repositories.Parameter.VO;
namespace InterfaceForward.Repositories.Interface.ValueObjects;
/// <summary>
/// 系统接口输出模型
/// </summary>
public class SystemInterfaceOutput
{
///<summary>
/// 接口id
///</summary>
public int Id { get; set; }
///<summary>
/// 接口代码
///</summary>
public string Code { get; set; }
///<summary>
/// 接口名
///</summary>
public string Name { get; set; }
///<summary>
/// 请求地址
///</summary>
public string RequestAddress { get; set; }
///<summary>
/// 接口描述
///</summary>
public string Description { get; set; }
///<summary>
/// 是否支持批量处理
///</summary>
public bool IsBatch { get; set; }
///<summary>
/// 请求协议
///</summary>
public int RequestProtocol { get; set; }
///<summary>
/// 请求方式
///</summary>
public int RequestMethod { get; set; }
///<summary>
/// 接口分组
///</summary>
public int Category { get; set; }
///<summary>
/// 内容类型
///</summary>
public int ContentType { get; set; }
///<summary>
/// 是否返回源报文
///</summary>
public bool IsReturnMessage { get; set; }
/// <summary>
/// 入参列表
/// </summary>
public List<InterfaceParameterOutput> InParameterList { get; set; }
/// <summary>
/// 出参列表
/// </summary>
public List<InterfaceParameterOutput> OutParameterList { get; set; }
}
public class InterfaceParameterOutput
{
/// <summary>
/// Id
/// </summary>
public int Id { get; set; }
/// <summary>
/// 父级Id
/// </summary>
public int PId { get; set; }
/// <summary>
/// 别名
/// </summary>
public string Alias { get; set; }
///<summary>
/// 参数名
///</summary>
public string Name { get; set; }
///<summary>
/// 参数名(中文)
///</summary>
public string CnName { get; set; }
///<summary>
/// 参数类型
///</summary>
public int Type { get; set; }
/// <summary>
/// 是否必填
/// </summary>
public bool IsRequired { get; set; }
///<summary>
/// 参数描述
///</summary>
public string Description { get; set; }
///<summary>
/// 0:返回参数1:请求参数
///</summary>
public bool IsInPara { get; set; }
///<summary>
/// 序列
///</summary>
[JsonIgnore]
public string Sort { get; set; }
}