mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
26 lines
488 B
C#
26 lines
488 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Yi.Framework.AiHub.Domain.Shared.Dtos.OpenAi;
|
|
|
|
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; }
|
|
}
|
|
|
|
|