permisstion ทะเบียนประวัติ(ที่ระบบอื่นๆ)
This commit is contained in:
parent
ff8917195f
commit
4bee31e74e
18 changed files with 496 additions and 5 deletions
|
|
@ -1073,6 +1073,21 @@ export class ProfileEmployeeTempController extends Controller {
|
|||
return new HttpSuccess(profile);
|
||||
}
|
||||
|
||||
@Get("admin/{id}")
|
||||
async detailProfileAdmin(@Path() id: string) {
|
||||
const profile = await this.profileRepo.findOne({
|
||||
relations: {
|
||||
posLevel: true,
|
||||
posType: true,
|
||||
},
|
||||
where: { id },
|
||||
});
|
||||
|
||||
if (!profile) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
|
||||
|
||||
return new HttpSuccess(profile);
|
||||
}
|
||||
|
||||
/**
|
||||
* API รายการทะเบียนประวัติ
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue