Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add product tag plugin #87

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft

Conversation

RayMMond
Copy link
Member

Add product tag plugin, replace #67

{
public class GetTagListDto : PagedAndSortedResultRequestDto, IMultiStore
{
[Required]
Copy link
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
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
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
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
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
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
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