add: 师傅实体和服务类型

This commit is contained in:
于鹏
2025-10-06 15:58:11 +08:00
parent a1038f1b7b
commit ff0ec31ed0
18 changed files with 321 additions and 7 deletions

View File

@ -36,7 +36,9 @@ namespace KonSoft.Admin.Entities
/// <summary>
/// 服务项目ID
/// </summary>
public Guid ServiceId { get; private set; }
public Guid ServiceCategoryId { get; private set; }
public virtual ServiceCategory ServiceCategory { get; private set; }
/// <summary>
/// 服务预约时间
@ -74,12 +76,12 @@ namespace KonSoft.Admin.Entities
protected Order() { }
public Order(Guid id, string orderSN, Guid customerId, Guid serviceId, DateTime serviceTime, decimal amount, AddressInfo address, string remark = null)
public Order(Guid id, string orderSN, Guid customerId, Guid serviceCategoryId, DateTime serviceTime, decimal amount, AddressInfo address, string remark = null)
: base(id)
{
OrderSN = orderSN;
CustomerId = customerId;
ServiceId = serviceId;
ServiceCategoryId = serviceCategoryId;
ServiceTime = serviceTime;
Amount = amount;
Address = address;