27 lines
539 B
C#
27 lines
539 B
C#
using System.Text.Json.Serialization;
|
|
using Yi.Framework.AiHub.Application.Contracts.Dtos.OpenAi;
|
|
|
|
namespace Yi.Framework.AiHub.Domain.AiGateWay;
|
|
|
|
public record ThorBaseResponse
|
|
{
|
|
/// <summary>
|
|
/// 对象类型
|
|
/// </summary>
|
|
[JsonPropertyName("object")]
|
|
public string? ObjectTypeName { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool Successful => Error == null;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[JsonPropertyName("error")]
|
|
public ThorError? Error { get; set; }
|
|
}
|
|
|
|
|