From ea2b63e57642640b99a60dbb6a489e3a635c428c Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Fri, 10 Jul 2020 21:06:23 +0800 Subject: [PATCH] Fix CategoryDto --- common.props | 2 +- .../EShop/Products/Categories/Dtos/CategoryDto.cs | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/common.props b/common.props index 9c69debc..9449ee99 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,7 @@ latest - 0.5.0 + 0.5.1 $(NoWarn);CS1591 true EasyAbp Team diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application.Contracts/EasyAbp/EShop/Products/Categories/Dtos/CategoryDto.cs b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application.Contracts/EasyAbp/EShop/Products/Categories/Dtos/CategoryDto.cs index f69850f6..7f765da4 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application.Contracts/EasyAbp/EShop/Products/Categories/Dtos/CategoryDto.cs +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application.Contracts/EasyAbp/EShop/Products/Categories/Dtos/CategoryDto.cs @@ -1,13 +1,22 @@ using System; +using System.Collections.Generic; +using JetBrains.Annotations; using Volo.Abp.Application.Dtos; namespace EasyAbp.EShop.Products.Categories.Dtos { public class CategoryDto : FullAuditedEntityDto { - public Guid? ParentCategoryId { get; set; } - public string DisplayName { get; set; } + + [NotNull] + public string Code { get; set; } + + public int Level { get; set; } + + public Guid? ParentId { get; set; } + + public ICollection Children { get; set; } public string Description { get; set; }