小程序页面优化(门店)
This commit is contained in:
@@ -24,6 +24,16 @@ export class PublicStoreController {
|
||||
}
|
||||
}
|
||||
|
||||
@Controller('store-categories')
|
||||
export class PublicStoreCategoriesController {
|
||||
constructor(private readonly categories: StoreCategoryService) {}
|
||||
|
||||
@Get()
|
||||
list() {
|
||||
return this.categories.listTree({ includeDisabled: false, ensure: true });
|
||||
}
|
||||
}
|
||||
|
||||
@Controller('partner/store-categories')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
export class PartnerStoreCategoriesController {
|
||||
|
||||
@@ -10,6 +10,7 @@ import {
|
||||
PartnerReportController,
|
||||
PartnerStoreCategoriesController,
|
||||
PartnerStoreController,
|
||||
PublicStoreCategoriesController,
|
||||
PublicStoreController,
|
||||
ShopDashboardController,
|
||||
ShopStoreController,
|
||||
@@ -19,6 +20,7 @@ import {
|
||||
imports: [IamModule, AnalyticsModule, CityScopeModule, forwardRef(() => RedeemModule)],
|
||||
controllers: [
|
||||
PublicStoreController,
|
||||
PublicStoreCategoriesController,
|
||||
PartnerStoreCategoriesController,
|
||||
PartnerStoreController,
|
||||
PartnerDashboardController,
|
||||
|
||||
Reference in New Issue
Block a user