namespace Common;
public class DirFileConfig
{
///
/// 相对路径
///
public required string DirPath { get; set; }
///
/// 排除的文件,它是根目录的相对路径
///
public List? Excludes { get; set; }
///
/// 除此外全部忽略,最高优先级,若有值,ExcludeFiles 将被忽略,它是根目录的相对路径
///
public List? CherryPicks { get; set; }
public Dir? DirInfo { get; set; }
}
public class Config
{
///
/// 发布的项目名称
///
public required string Name { get; set; }
public Guid Id { get; set; } = Guid.NewGuid();
///
/// 远程Url
///
public required string RemoteUrl { get; set; }
///
/// 链接到远程的密码
///
public required string RemotePwd { get; set; }
///
/// 是否发布数据库
///
public required bool IsDeployDb { get; set; }
///
/// 源数据库连接字符串(ip地址相对LocalServer)
///
public required string SrcDbConnection { get; set; }
///
/// 目标数据库连接字符串(ip地址相对RemoteServer)
///
public required string DstDbConnection { get; set; }
///
/// 同步的表
///
public required List? SyncDataTables { get; set; }
///
/// 是否发布项目
///
public required bool IsDeployProject { get; set; }
///
/// 项目的绝对路径 空字符串表示不发布,不为空LocalRootPath将是发布路径。
///
public required string LocalProjectAbsolutePath { get; set; }
///
/// 本地父文件路径
///
public required string LocalRootPath { get; set; }
///
/// 远程父路径
///
public required string RemoteRootPath { get; set; }
///
/// 同步的文件夹配置
///
public required List DirFileConfigs { get; set; }
}