16 lines
424 B
TypeScript
16 lines
424 B
TypeScript
|
|
import { PosInfo } from '@/common/decorators/posInfo.decorator'
|
||
|
|
import { Controller, Get } from '@nestjs/common'
|
||
|
|
import { ApiTags } from '@nestjs/swagger'
|
||
|
|
import { PosService } from './pos.service'
|
||
|
|
|
||
|
|
@ApiTags('Pos')
|
||
|
|
@Controller('pos')
|
||
|
|
export class PosController {
|
||
|
|
constructor(private service: PosService) {}
|
||
|
|
|
||
|
|
@Get()
|
||
|
|
async getInfo(@PosInfo('pos_id') pos_id: string) {
|
||
|
|
return await this.service.getInfo(pos_id)
|
||
|
|
}
|
||
|
|
}
|