2026-02-24 20:44:16 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Sozsoft.Platform.Entities;
|
|
|
|
|
|
|
2026-09-01 08:28:52 +00:00
|
|
|
|
public class CustomComponent : FullAuditedEntity<Guid>
|
2026-02-24 20:44:16 +00:00
|
|
|
|
{
|
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
2026-09-08 14:00:15 +00:00
|
|
|
|
/// <summary>Rotasi olmayan bilesende (ust bilgi, alt bilgi) NULL kalir; tekil indeks dolu degerleri kapsar.</summary>
|
|
|
|
|
|
public string? RoutePath { get; set; }
|
2026-02-24 20:44:16 +00:00
|
|
|
|
public string Code { get; set; } = string.Empty;
|
|
|
|
|
|
public string? Props { get; set; }
|
|
|
|
|
|
public string? Description { get; set; }
|
|
|
|
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
|
|
public string? Dependencies { get; set; } // JSON string of component names
|
|
|
|
|
|
|
2026-08-18 09:36:40 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Component'in Data sekmesinde kullandigi API'ler; JSON dizisi olarak tutulur.
|
|
|
|
|
|
/// Her kayit endpoint'in method/url bilgisinin yani sira cozumlenebiliyorsa
|
|
|
|
|
|
/// kaynak CRUD endpoint'ini (EntityName ve <c>crud/{EntityName}.json</c> seed dosyasi) tasir.
|
|
|
|
|
|
/// Props icindeki designer dokumanindan turetilir; kaydetme sirasinda otomatik yazilir.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string? DataSources { get; set; }
|
|
|
|
|
|
|
2026-09-08 14:00:15 +00:00
|
|
|
|
public CustomComponent(string name, string? routePath, string code, string? props, string? description, bool isActive, string? dependencies, string? dataSources = null)
|
2026-02-24 20:44:16 +00:00
|
|
|
|
{
|
|
|
|
|
|
Name = name;
|
2026-07-11 20:35:32 +00:00
|
|
|
|
RoutePath = routePath;
|
2026-02-24 20:44:16 +00:00
|
|
|
|
Code = code;
|
|
|
|
|
|
Props = props;
|
|
|
|
|
|
Description = description;
|
|
|
|
|
|
IsActive = isActive;
|
|
|
|
|
|
Dependencies = dependencies;
|
2026-08-18 09:36:40 +00:00
|
|
|
|
DataSources = dataSources;
|
2026-02-24 20:44:16 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|