import data

This commit is contained in:
Kittapath 2024-07-26 14:44:33 +07:00
parent bfce5ba1ce
commit 2686407133
6 changed files with 718 additions and 312 deletions

View file

@ -33,7 +33,7 @@ export class ProfileEditEmployeeController extends Controller {
private profileEditRepository = AppDataSource.getRepository(ProfileEdit);
@Get("user")
public async detailProfileEditUser(
public async detailProfileEditUserEmp(
@Request() request: { user: Record<string, any> },
@Query("page") page: number = 1,
@Query("pageSize") pageSize: number = 10,
@ -94,7 +94,7 @@ export class ProfileEditEmployeeController extends Controller {
}
@Get("admin")
public async detailProfileEditAdmin(
public async detailProfileEditAdminEmp(
@Request() request: { user: Record<string, any> },
@Query("page") page: number = 1,
@Query("pageSize") pageSize: number = 10,
@ -159,7 +159,7 @@ export class ProfileEditEmployeeController extends Controller {
}
@Get("{profileEmployeeId}")
public async detailProfileEdit(@Path() profileEmployeeId: string) {
public async detailProfileEditEmp(@Path() profileEmployeeId: string) {
const getProfileEdit = await this.profileEditRepository.findOne({
where: { profileEmployeeId: profileEmployeeId },
relations: ["profileEmployee"],