update models and create consumer domain accounts permissions

This commit is contained in:
2026-04-11 14:47:05 +03:30
parent 89726c8904
commit 9cef733370
87 changed files with 2967 additions and 3352 deletions
@@ -1,3 +1,4 @@
import { PublicWithToken } from '@/common/decorators/withToken.decorator'
import { Controller, Get, Param } from '@nestjs/common'
import { ApiTags } from '@nestjs/swagger'
import { CatalogsService } from './catalog.service'
@@ -8,26 +9,31 @@ export class CatalogsController {
constructor(private readonly catalogService: CatalogsService) {}
@Get('guilds')
@PublicWithToken()
async getGuilds() {
return this.catalogService.getGuilds()
}
@Get('providers')
@PublicWithToken()
async getProviders() {
return this.catalogService.getProviders()
}
@Get('devices')
@PublicWithToken()
async getDevices() {
return this.catalogService.getDevices()
}
@Get('device_brands')
@PublicWithToken()
async getDeviceBrands() {
return this.catalogService.getDeviceBrands()
}
@Get('guilds/:guildId/good_categories')
@PublicWithToken()
async getGuildGoodCategories(@Param('guildId') guild_id: string) {
return this.catalogService.getGuildGoodCategories(guild_id)
}