-
Notifications
You must be signed in to change notification settings - Fork 59
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
base: dev
Are you sure you want to change the base?
Conversation
{ | ||
public class GetTagListDto : PagedAndSortedResultRequestDto, IMultiStore | ||
{ | ||
[Required] |
There was a problem hiding this comment.
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; } |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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" /> |
There was a problem hiding this comment.
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.
<ItemGroup> | ||
<None Remove="Pages\EShop\Products\Tags\Tag\index.css" /> | ||
<None Remove="Pages\EShop\Products\Tags\Tag\index.js" /> | ||
</ItemGroup> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be removed
Add product tag plugin, replace #67