CloudGamingAdmin/admin-server/CloudGaming.Core.AgileConfig/AgileConfigClient/ApiAppVM.cs
2024-11-15 02:58:48 +08:00

62 lines
1.5 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 System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CloudGaming.Core.AgileConfig.AgileConfigClient
{
/// <summary>
/// 应用的视图模型,包含应用的基本信息
/// </summary>
public class ApiAppVM
{
/// <summary>
/// 应用的唯一标识符
/// </summary>
public string Id { get; set; }
/// <summary>
/// 应用的名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 应用是否启用true 表示启用false 表示禁用
/// </summary>
public bool Enabled { get; set; }
/// <summary>
/// 应用的密钥,用于身份验证
/// </summary>
public string Secret { get; set; }
/// <summary>
/// 是否继承其他应用的配置
/// </summary>
public bool Inheritanced { get; set; }
/// <summary>
/// 继承的其他应用列表
/// </summary>
public List<string> InheritancedApps { get; set; }
}
public class ApiConfigVM
{
public string Id { get; set; }
public string AppId { get; set; }
public string Group { get; set; }
public string Key { get; set; }
public string Value { get; set; }
}
public class ApiNodeVM
{
public string Address { get; set; }
public string Remark { get; set; }
public int Status { get; set; }
}
}