commit code

This commit is contained in:
2025-05-31 21:44:34 +08:00
parent bfca5d7d0b
commit ca373ad91f
19 changed files with 496 additions and 126 deletions

View File

@ -98,3 +98,9 @@ func (s *CategoryServer) GetSystemCategories(ctx context.Context, in *category.G
l := logic.NewGetSystemCategoriesLogic(ctx, s.svcCtx)
return l.GetSystemCategories(in)
}
// 获取某一个类别的完整类别(从根类别到当前类别的所有类别)
func (s *CategoryServer) GetFullCategories(ctx context.Context, in *category.GetCategoryRequest) (*category.GetFullCategoriesResponse, error) {
l := logic.NewGetFullCategoriesLogic(ctx, s.svcCtx)
return l.GetFullCategories(in)
}