update
This commit is contained in:
@@ -11,6 +11,7 @@ export class PosController {
|
||||
|
||||
@Get()
|
||||
async getInfo(@PosInfo('pos_id') pos_id: string, @Res({ passthrough: true }) res) {
|
||||
console.log('getInfo', pos_id)
|
||||
const result = await this.service.getInfo(pos_id)
|
||||
|
||||
if (result) {
|
||||
@@ -30,4 +31,9 @@ export class PosController {
|
||||
async getAccessiblePos(@TokenAccount('account_id') account_id) {
|
||||
return await this.service.getAccessible(account_id)
|
||||
}
|
||||
|
||||
@Get('/me')
|
||||
async getMe(@TokenAccount('account_id') account_id, @PosInfo('pos_id') pos_id: string) {
|
||||
return await this.service.getMe(account_id, pos_id)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user