47 lines
1,016 B
C#
47 lines
1,016 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using Volo.Abp.Domain.Entities;
|
|||
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|||
|
|
|
|||
|
|
namespace Kurs.Platform.Entities;
|
|||
|
|
|
|||
|
|
public class Service : FullAuditedAggregateRoot<Guid>
|
|||
|
|
{
|
|||
|
|
// Icon component adı (ör: "FaCode")
|
|||
|
|
public string? Icon { get; set; }
|
|||
|
|
|
|||
|
|
public string Title { get; set; }
|
|||
|
|
public string? Description { get; set; }
|
|||
|
|
public string Type { get; set; }
|
|||
|
|
|
|||
|
|
public ICollection<ServiceFeature> Features { get; set; }
|
|||
|
|
|
|||
|
|
protected Service()
|
|||
|
|
{
|
|||
|
|
Features = [];
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public Service(Guid id, string title, string type)
|
|||
|
|
: base(id)
|
|||
|
|
{
|
|||
|
|
Title = title;
|
|||
|
|
Type = type;
|
|||
|
|
Features = [];
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public class ServiceFeature : Entity<Guid>
|
|||
|
|
{
|
|||
|
|
public Guid ServiceItemId { get; set; }
|
|||
|
|
public string Name { get; set; }
|
|||
|
|
|
|||
|
|
public ServiceFeature() { }
|
|||
|
|
|
|||
|
|
public ServiceFeature(Guid id, Guid serviceItemId, string name)
|
|||
|
|
: base(id)
|
|||
|
|
{
|
|||
|
|
ServiceItemId = serviceItemId;
|
|||
|
|
Name = name;
|
|||
|
|
}
|
|||
|
|
}
|