From e986808269d5d4e0a52f827212b98c914aece799 Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Mon, 18 Jul 2022 15:26:29 +0800 Subject: [PATCH] Improve `GetBasketItemListDto` to set the BasketName as "Default" --- .../Plugins/Baskets/BasketItems/Dtos/GetBasketItemListDto.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.Application.Contracts/EasyAbp/EShop/Plugins/Baskets/BasketItems/Dtos/GetBasketItemListDto.cs b/plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.Application.Contracts/EasyAbp/EShop/Plugins/Baskets/BasketItems/Dtos/GetBasketItemListDto.cs index a0610631..185fc31e 100644 --- a/plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.Application.Contracts/EasyAbp/EShop/Plugins/Baskets/BasketItems/Dtos/GetBasketItemListDto.cs +++ b/plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.Application.Contracts/EasyAbp/EShop/Plugins/Baskets/BasketItems/Dtos/GetBasketItemListDto.cs @@ -1,13 +1,11 @@ using System; -using System.ComponentModel.DataAnnotations; namespace EasyAbp.EShop.Plugins.Baskets.BasketItems.Dtos { [Serializable] public class GetBasketItemListDto { - [Required] - public string BasketName { get; set; } + public string BasketName { get; set; } = BasketsConsts.DefaultBasketName; /// /// Specify the basket item owner user ID. Use current user ID if this property is null.