itfx/src/InterfaceForward.Domain.Shared/Dtos/InterfaceDto.cs
2024-12-06 15:30:41 +08:00

86 lines
1.8 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 InterfaceForward.Domain.Shared.Enum;
namespace InterfaceForward.Domain.Shared.Dtos;
public class InterfaceDto
{
/// <summary>
/// 接口Id
/// </summary>
public int Id { get; set; }
///<summary>
/// 接口名
///</summary>
public string Name { get; set; } = null!;
/// <summary>
/// 服务商id
/// </summary>
public int ServiceProviderId { get; set; }
///<summary>
/// 接口代码
///</summary>
public string Code { get; set; } = null!;
///<summary>
/// 请求地址
///</summary>
public string RequestAddress { get; set; } = null!;
///<summary>
/// 请求协议
///</summary>
public RequestProtocol RequestProtocol { get; set; }
///<summary>
/// 请求方式
///</summary>
public string RequestMethod { get; set; } = null!;
///<summary>
/// 内容类型
///</summary>
public ContentType ContentType { get; set; }
///<summary>
/// 返回内容类型
///</summary>
public ResponseContentType ResponseContentType { get; set; }
///<summary>
/// 是否支持批量处理
///</summary>
public bool IsBatch { get; set; }
/// <summary>
/// 批量处理上限
/// </summary>
public int Limit { get; set; }
/// <summary>
/// qps
/// </summary>
public int Qps { get; set; }
///<summary>
/// 流程代码
///</summary>
public string? FlowCode { get; set; }
/// <summary>
/// 是否禁用授权
/// </summary>
public bool IsDisableAuth { get; set; }
///<summary>
/// 请求超时s
///</summary>
public int? Timeout { get; set; }
/// <summary>
/// 映射后参数类型默认Object
/// </summary>
public ParameterType MappedParamType { get; set; }
}