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:
2026-04-27 10:45:39 +03:30
parent 34793295c9
commit dee96b6e91
208 changed files with 8058 additions and 2349 deletions
+16 -3
View File
@@ -2,6 +2,11 @@ import { PosInfo } from '@/common/decorators/posInfo.decorator'
import { TokenAccount } from '@/common/decorators/tokenInfo.decorator'
import { Controller, Get, Res } from '@nestjs/common'
import { ApiTags } from '@nestjs/swagger'
import type {
PosServiceGetAccessibleResponseDto,
PosServiceGetInfoResponseDto,
PosServiceGetMeResponseDto,
} from './dto/pos-response.dto'
import { PosService } from './pos.service'
@ApiTags('Pos')
@@ -10,7 +15,10 @@ export class PosController {
constructor(private service: PosService) {}
@Get()
async getInfo(@PosInfo('pos_id') pos_id: string, @Res({ passthrough: true }) res) {
async getInfo(
@PosInfo('pos_id') pos_id: string,
@Res({ passthrough: true }) res,
): Promise<PosServiceGetInfoResponseDto> {
const result = await this.service.getInfo(pos_id)
if (result) {
@@ -27,12 +35,17 @@ export class PosController {
}
@Get('/accessible')
async getAccessiblePos(@TokenAccount('account_id') account_id) {
async getAccessiblePos(
@TokenAccount('account_id') account_id,
): Promise<PosServiceGetAccessibleResponseDto> {
return await this.service.getAccessible(account_id)
}
@Get('/me')
async getMe(@TokenAccount('account_id') account_id, @PosInfo('pos_id') pos_id: string) {
async getMe(
@TokenAccount('account_id') account_id,
@PosInfo('pos_id') pos_id: string,
): Promise<PosServiceGetMeResponseDto> {
return await this.service.getMe(account_id, pos_id)
}
}