SACenter/SA.Domain.XFYun/XFYunEntity/XFYunResponse.cs

44 lines
1.0 KiB
C#
Raw Permalink 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.

namespace SA.Domain.XFYun.XFYunEntity
{
public class XFYunResponse<TResponse> where TResponse : XFYunResponseData
{
/// <summary>
/// 状态码0为也调用成功-1为调用失败
/// </summary>
public int Ret { get; set; }
/// <summary>
/// 请求返回消息
/// </summary>
public string? Msg { get; set; }
/// <summary>
/// 调用讯飞云API后返回的数据
/// </summary>
public TResponse Data { get; set; }
/// <summary>
/// 异常信息
/// </summary>
public string? Error { get; set; }
}
public class XFYunResponseData
{
/// <summary>
/// 讯飞云API返回的状态码
/// </summary>
public string Rc { get; set; }
/// <summary>
/// 返回结果
/// </summary>
public bool Success { get; set; }
/// <summary>
/// 返回的描述
/// </summary>
public string? Desc { get; set; }
}
}