feat: add response DTOs for various services across modules
- Created response DTOs for ConfigService, AppService, AuthService, CatalogsService, AccountsService, BusinessActivityComplexesService, ComplexPosesService, SalesInvoicesService, BusinessActivitiesService, ConsumerBusinessActivityGoodsService, and others. - Implemented Create, FindAll, FindOne, and Update response types for services in consumer, partners, and POS modules. - Added request DTOs for creating and updating goods in the consumer business activities module. - Introduced filtering DTO for partner licenses. - Enhanced response mapping for partner license activations.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import type { TranslateService } from '../translate.service'
|
||||
|
||||
export type TranslateServiceGetTranslationsResponseDto = Awaited<ReturnType<TranslateService['getTranslations']>>
|
||||
@@ -1,12 +1,13 @@
|
||||
import { Controller, Get } from '@nestjs/common'
|
||||
import { TranslateService } from './translate.service'
|
||||
import type { TranslateServiceGetTranslationsResponseDto } from './dto/translate-response.dto'
|
||||
|
||||
@Controller('admin/translates')
|
||||
export class TranslateController {
|
||||
constructor(private readonly translateService: TranslateService) {}
|
||||
|
||||
@Get()
|
||||
async getTranslations() {
|
||||
async getTranslations(): Promise<TranslateServiceGetTranslationsResponseDto> {
|
||||
return this.translateService.getTranslations()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,11 +40,11 @@ export class TranslateService {
|
||||
guild_goods: 'کالا',
|
||||
guild_good_categories: 'دستهبندی کالا',
|
||||
partners: 'شریک تجاری',
|
||||
partner_accounts: 'حساب',
|
||||
accounts: 'حساب',
|
||||
partner_licenses: 'مجوز',
|
||||
providers: 'ارائهدهنده',
|
||||
provider_accounts: 'حساب',
|
||||
accounts: 'حساب کاربری',
|
||||
// accounts: 'حساب',
|
||||
// accounts: 'حساب کاربری',
|
||||
licenses: 'لایسنس',
|
||||
business_activities: 'فعالیت اقتصادی',
|
||||
},
|
||||
@@ -56,11 +56,11 @@ export class TranslateService {
|
||||
guild_goods: 'کالاها',
|
||||
guild_good_categories: 'دستهبندی کالاها',
|
||||
partners: 'شرکای تجاری',
|
||||
partner_accounts: 'حسابهای شریک تجاری',
|
||||
accounts: 'حسابهای شریک تجاری',
|
||||
partner_licenses: 'مجوزهای داده شده',
|
||||
providers: 'ارائهدهندگان',
|
||||
provider_accounts: 'حسابهای ارائهدهنده',
|
||||
accounts: 'حسابهای کاربری',
|
||||
// accounts: 'حسابهای ارائهدهنده',
|
||||
// accounts: 'حسابهای کاربری',
|
||||
licenses: 'لایسنسها',
|
||||
business_activities: 'فعالیتهای اقتصادی',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user