1
0
forked from Yara724/api

lookup of person role added + inquiry by unique identifier + put driver id in payload

This commit is contained in:
Soheil Hajizadeh
2026-07-07 17:29:48 +03:30
parent 1c6678d8e4
commit 1e6c36cbd4
5 changed files with 141 additions and 1 deletions

View File

@@ -186,6 +186,30 @@ export class LookupsController {
return await this.lookupsService.getVehicleKinds();
}
@Get("person-role")
@ApiOperation({
summary: "Fanavaran person role lookup",
description:
"Returns person role codes from common/code-list/person-role.",
})
@ApiOkResponse({
description: "Returns Fanavaran person role lookup data",
schema: {
type: "array",
items: {
type: "object",
properties: {
Caption: { type: "string" },
Id: { type: "number" },
IsActive: { type: "number" },
},
},
},
})
async getPersonRole() {
return await this.lookupsService.getPersonRole();
}
@Get("inquiry-by-vin")
@ApiOperation({
summary: "Fanavaran vehicle inquiry by VIN",