Skip to content

Add product tag plugin - #87

Draft
RayMMond wants to merge 1 commit into
EasyAbp:devfrom
RayMMond:ProductTagPlugin
Draft

Add product tag plugin#87
RayMMond wants to merge 1 commit into
EasyAbp:devfrom
RayMMond:ProductTagPlugin

Conversation

@RayMMond

Copy link
Copy Markdown
Member

Add product tag plugin, replace #67

{
public class GetTagListDto : PagedAndSortedResultRequestDto, IMultiStore
{
[Required]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The [Required] can be removed since the type Guid is not nullable.


public Guid? ParentId { get; set; }

public string Code { get; set; }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there are many stores, what if the total number of Tag in all stores is more than 99999?

{
await CheckGetListPolicyAsync();

await AuthorizationService.CheckStoreOwnerAsync(input.StoreId, GetListPolicyName);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refer to the reviews in #81


query = query.Where(x => x.StoreId == input.StoreId);

return input.ShowHidden ? query : query.Where(x => !x.IsHidden);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a manage permission for checking if a user can see the hidden items?

{
}

public async Task<List<Tag>> GetListByAsync(Guid storeId, bool includeDetails = false, CancellationToken cancellationToken = default)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By what? 🤣

<PackageReference Include="Volo.Abp.Ddd.Application" Version="3.0.5" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Products\src\EasyAbp.EShop.Products.Application.Contracts\EasyAbp.EShop.Products.Application.Contracts.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Products\src\EasyAbp.EShop.Products.Domain\EasyAbp.EShop.Products.Domain.csproj" />
<ProjectReference Include="..\..\..\..\modules\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.Application\EasyAbp.EShop.Stores.Application.csproj" />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not depend on the Stores.Application module.

Comment on lines +38 to +41
<ItemGroup>
<None Remove="Pages\EShop\Products\Tags\Tag\index.css" />
<None Remove="Pages\EShop\Products\Tags\Tag\index.js" />
</ItemGroup>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be removed

@gdlcf88
gdlcf88 marked this pull request as draft August 8, 2024 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants