FileSqlServerSync/Server/LocalServer/Models/Config.cs

33 lines
859 B
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.

namespace LocalServer.Models;
public class DirFileConfig
{
/// <summary>
/// 本地-源根目录
/// </summary>
public required string LocalRootPath { get; set; }
/// <summary>
/// 远程-目标根目录
/// </summary>
public required string RemoteRootPath { get; set; }
/// <summary>
/// 排除的文件,它是根目录的相对路径
/// </summary>
public List<string>? ExcludeFiles { get; set; }
/// <summary>
/// 除此外全部忽略最高优先级若有值ExcludeFiles 将被忽略,它是根目录的相对路径
/// </summary>
public List<DirFileConfig>? CherryPickFiles { get; set; }
}
public class Config
{
public required string Name { get; set; }
public required string RemoteUrl { get; set; }
public List<DirFileConfig>? DirFileConfigs { get; set; }
}