erp-platform/api/src/Kurs.Platform.Domain/Entities/Service.cs

31 lines
768 B
C#
Raw Normal View History

2025-08-20 07:31:56 +00:00
using System;
using Volo.Abp.Domain.Entities.Auditing;
2025-08-20 12:04:48 +00:00
using Volo.Abp.MultiTenancy;
2025-08-20 07:31:56 +00:00
namespace Kurs.Platform.Entities;
2025-08-20 12:04:48 +00:00
public class Service : FullAuditedAggregateRoot<Guid>, IMultiTenant
2025-08-20 07:31:56 +00:00
{
2025-08-20 12:04:48 +00:00
public Guid? TenantId { get; set; }
2025-08-20 07:31:56 +00:00
public string? Icon { get; set; }
public string Title { get; set; }
public string? Description { get; set; }
public string Type { get; set; }
// JSON olarak saklanacak
public string[] Features { get; set; } = [];
2025-08-20 07:31:56 +00:00
protected Service() { }
2025-08-20 07:31:56 +00:00
public Service(Guid id, string icon, string title, string description, string type, string[] features)
2025-08-20 07:31:56 +00:00
: base(id)
{
Icon = icon;
2025-08-20 07:31:56 +00:00
Title = title;
Description = description;
2025-08-20 07:31:56 +00:00
Type = type;
Features = features;
2025-08-20 07:31:56 +00:00
}
}