32 lines
816 B
C#
32 lines
816 B
C#
namespace SA.Domain.XFYun.XFYunEntity
|
|
{
|
|
public class XFYunApiConfig
|
|
{
|
|
public static XFYunApiConfig? GetApiConfig(string key)
|
|
{
|
|
var configs = InitConfiguration.GetSection("XFYunApiConfigs").Get<List<XFYunApiConfig>>();
|
|
return configs.FirstOrDefault(x => x.Key == key);
|
|
}
|
|
/// <summary>
|
|
/// key
|
|
/// </summary>
|
|
public string? Key { get; set; }
|
|
|
|
/// <summary>
|
|
/// 请求地址
|
|
/// </summary>
|
|
public string? Url { get; set; }
|
|
|
|
/// <summary>
|
|
/// 描述
|
|
/// </summary>
|
|
public string? Description { get; set; }
|
|
|
|
public string? ServiceType { get; set; }
|
|
|
|
public string? ParamType { get; set; }
|
|
|
|
public string? ParamPosition { get; set; }
|
|
}
|
|
}
|