| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- namespace Admin.NET.Plugin.AiDOP.Dto.DataPlatform;
- public sealed class MdpEntityRow
- {
- public long Id { get; set; }
- public long TenantId { get; set; }
- public long SourceId { get; set; }
- public string? SourceCode { get; set; }
- public string? SourceName { get; set; }
- public string? SourceType { get; set; }
- public string EntityCode { get; set; } = string.Empty;
- public string EntityName { get; set; } = string.Empty;
- public string EntityType { get; set; } = "TABLE";
- public string? SourceTableName { get; set; }
- public string? SourceApiPath { get; set; }
- public string? TargetTableName { get; set; }
- public string SyncMode { get; set; } = "INCR";
- public string? IncrColumn { get; set; }
- public int BatchSize { get; set; } = 5000;
- public string? JobId { get; set; }
- public int Status { get; set; } = 1;
- public string? Remark { get; set; }
- public int FieldMappingCount { get; set; }
- }
- public sealed class MdpEntityUpsertInput
- {
- public string EntityCode { get; set; } = string.Empty;
- public string EntityName { get; set; } = string.Empty;
- public string EntityType { get; set; } = "TABLE";
- public long SourceId { get; set; }
- public string? SourceCode { get; set; }
- public string? SourceTableName { get; set; }
- public string? SourceApiPath { get; set; }
- public string? TargetTableName { get; set; }
- public string SyncMode { get; set; } = "INCR";
- public string? IncrColumn { get; set; }
- public int BatchSize { get; set; } = 5000;
- public string? JobId { get; set; }
- public int Status { get; set; } = 1;
- public string? Remark { get; set; }
- }
- public sealed class MdpFieldMappingRow
- {
- public long Id { get; set; }
- public long EntityId { get; set; }
- public string SourceField { get; set; } = string.Empty;
- public string TargetField { get; set; } = string.Empty;
- public string FieldType { get; set; } = "DIRECT";
- public string? TransformScript { get; set; }
- public string? ConstValue { get; set; }
- public string? LookupTable { get; set; }
- public bool IsRequired { get; set; }
- public string? DefaultValue { get; set; }
- public int SortOrder { get; set; }
- }
- public sealed class MdpFieldMappingUpsertInput
- {
- public string SourceField { get; set; } = string.Empty;
- public string TargetField { get; set; } = string.Empty;
- public string FieldType { get; set; } = "DIRECT";
- public string? TransformScript { get; set; }
- public string? ConstValue { get; set; }
- public string? LookupTable { get; set; }
- public bool IsRequired { get; set; }
- public string? DefaultValue { get; set; }
- public int SortOrder { get; set; }
- }
|