using System;
using Sozsoft.Platform.Enums;
namespace Sozsoft.Platform.Intranet;
///
/// Dashboard'da yayinlanacak widget tanimi. Hangi widget'in nerede, hangi sirada ve hangi
/// yetkiyle gorunecegi bu kayittan gelir; koddaki kayit yalnizca render fonksiyonunu tasir.
///
public class IntranetWidgetDto
{
public Guid Id { get; set; }
/// Builtin widget'ta koddaki kayit anahtari, Custom widget'ta tekil kod.
public string Code { get; set; }
public string Name { get; set; }
public string LabelKey { get; set; }
public IntranetWidgetSourceType SourceType { get; set; }
/// Custom widget'in CustomComponent adi.
public string ComponentName { get; set; }
public string PermissionName { get; set; }
public IntranetWidgetColumn Column { get; set; }
public int Order { get; set; }
/// Custom widget'a gecilecek prop'lar; JSON nesnesi.
public string Props { get; set; }
}