แก้ controller temp
This commit is contained in:
parent
6895e764ad
commit
576f6bcc0d
22 changed files with 22 additions and 22 deletions
|
|
@ -30,7 +30,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/ability")
|
@Route("api/v1/org/profile-temp/ability")
|
||||||
@Tags("ProfileAbilityEmployee")
|
@Tags("ProfileAbilityEmployee")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileAbilityEmployeeController extends Controller {
|
export class ProfileAbilityEmployeeTempController extends Controller {
|
||||||
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private profileAbilityRepo = AppDataSource.getRepository(ProfileAbility);
|
private profileAbilityRepo = AppDataSource.getRepository(ProfileAbility);
|
||||||
private profileAbilityHistoryRepo = AppDataSource.getRepository(ProfileAbilityHistory);
|
private profileAbilityHistoryRepo = AppDataSource.getRepository(ProfileAbilityHistory);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/address")
|
@Route("api/v1/org/profile-temp/address")
|
||||||
@Tags("ProfileAddressEmployee")
|
@Tags("ProfileAddressEmployee")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileAddressEmployeeController extends Controller {
|
export class ProfileAddressEmployeeTempController extends Controller {
|
||||||
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private profileAddressHistoryRepo = AppDataSource.getRepository(ProfileAddressHistory);
|
private profileAddressHistoryRepo = AppDataSource.getRepository(ProfileAddressHistory);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/assessments")
|
@Route("api/v1/org/profile-temp/assessments")
|
||||||
@Tags("ProfileEmployeeAssessments")
|
@Tags("ProfileEmployeeAssessments")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileAssessmentsEmployeeController extends Controller {
|
export class ProfileAssessmentsEmployeeTempController extends Controller {
|
||||||
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private profileAssessmentsRepository = AppDataSource.getRepository(ProfileAssessment);
|
private profileAssessmentsRepository = AppDataSource.getRepository(ProfileAssessment);
|
||||||
private profileAssessmentsHistoryRepository =
|
private profileAssessmentsHistoryRepository =
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/avatar")
|
@Route("api/v1/org/profile-temp/avatar")
|
||||||
@Tags("ProfileAvatar")
|
@Tags("ProfileAvatar")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileAvatarEmployeeController extends Controller {
|
export class ProfileAvatarEmployeeTempController extends Controller {
|
||||||
private profileRepository = AppDataSource.getRepository(ProfileEmployee);
|
private profileRepository = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private avatarRepository = AppDataSource.getRepository(ProfileAvatar);
|
private avatarRepository = AppDataSource.getRepository(ProfileAvatar);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/certificate")
|
@Route("api/v1/org/profile-temp/certificate")
|
||||||
@Tags("ProfileEmployeeCertificate")
|
@Tags("ProfileEmployeeCertificate")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileCertificateEmployeeController extends Controller {
|
export class ProfileCertificateEmployeeTempController extends Controller {
|
||||||
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private certificateRepo = AppDataSource.getRepository(ProfileCertificate);
|
private certificateRepo = AppDataSource.getRepository(ProfileCertificate);
|
||||||
private certificateHistoryRepo = AppDataSource.getRepository(ProfileCertificateHistory);
|
private certificateHistoryRepo = AppDataSource.getRepository(ProfileCertificateHistory);
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/changeName")
|
@Route("api/v1/org/profile-temp/changeName")
|
||||||
@Tags("ProfileChangeNameEmployee")
|
@Tags("ProfileChangeNameEmployee")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileChangeNameEmployeeController extends Controller {
|
export class ProfileChangeNameEmployeeTempController extends Controller {
|
||||||
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private changeNameRepository = AppDataSource.getRepository(ProfileChangeName);
|
private changeNameRepository = AppDataSource.getRepository(ProfileChangeName);
|
||||||
private changeNameHistoryRepository = AppDataSource.getRepository(ProfileChangeNameHistory);
|
private changeNameHistoryRepository = AppDataSource.getRepository(ProfileChangeNameHistory);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/family/children")
|
@Route("api/v1/org/profile-temp/family/children")
|
||||||
@Tags("ProfileChildren")
|
@Tags("ProfileChildren")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileChildrenEmployeeController extends Controller {
|
export class ProfileChildrenEmployeeTempController extends Controller {
|
||||||
private profileRepository = AppDataSource.getRepository(ProfileEmployee);
|
private profileRepository = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private childrenRepository = AppDataSource.getRepository(ProfileChildren);
|
private childrenRepository = AppDataSource.getRepository(ProfileChildren);
|
||||||
private childrenHistoryRepository = AppDataSource.getRepository(ProfileChildrenHistory);
|
private childrenHistoryRepository = AppDataSource.getRepository(ProfileChildrenHistory);
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/discipline")
|
@Route("api/v1/org/profile-temp/discipline")
|
||||||
@Tags("ProfileDisciplineEmployee")
|
@Tags("ProfileDisciplineEmployee")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileDisciplineEmployeeController extends Controller {
|
export class ProfileDisciplineEmployeeTempController extends Controller {
|
||||||
private profileRepository = AppDataSource.getRepository(ProfileEmployee);
|
private profileRepository = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private disciplineRepository = AppDataSource.getRepository(ProfileDiscipline);
|
private disciplineRepository = AppDataSource.getRepository(ProfileDiscipline);
|
||||||
private disciplineHistoryRepository = AppDataSource.getRepository(ProfileDisciplineHistory);
|
private disciplineHistoryRepository = AppDataSource.getRepository(ProfileDisciplineHistory);
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/duty")
|
@Route("api/v1/org/profile-temp/duty")
|
||||||
@Tags("ProfileEmployeeDuty")
|
@Tags("ProfileEmployeeDuty")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileDutyEmployeeController extends Controller {
|
export class ProfileDutyEmployeeTempController extends Controller {
|
||||||
private profileRepository = AppDataSource.getRepository(ProfileEmployee);
|
private profileRepository = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private dutyRepository = AppDataSource.getRepository(ProfileDuty);
|
private dutyRepository = AppDataSource.getRepository(ProfileDuty);
|
||||||
private dutyHistoryRepository = AppDataSource.getRepository(ProfileDutyHistory);
|
private dutyHistoryRepository = AppDataSource.getRepository(ProfileDutyHistory);
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/educations")
|
@Route("api/v1/org/profile-temp/educations")
|
||||||
@Tags("ProfileEducationsEmployee")
|
@Tags("ProfileEducationsEmployee")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileEducationsEmployeeController extends Controller {
|
export class ProfileEducationsEmployeeTempController extends Controller {
|
||||||
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private profileEducationRepo = AppDataSource.getRepository(ProfileEducation);
|
private profileEducationRepo = AppDataSource.getRepository(ProfileEducation);
|
||||||
private profileEducationHistoryRepo = AppDataSource.getRepository(ProfileEducationHistory);
|
private profileEducationHistoryRepo = AppDataSource.getRepository(ProfileEducationHistory);
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ import permission from "../interfaces/permission";
|
||||||
"เกิดข้อผิดพลาด ไม่สามารถแสดงรายการได้ กรุณาลองใหม่ในภายหลัง",
|
"เกิดข้อผิดพลาด ไม่สามารถแสดงรายการได้ กรุณาลองใหม่ในภายหลัง",
|
||||||
)
|
)
|
||||||
@SuccessResponse(HttpStatus.OK, "สำเร็จ")
|
@SuccessResponse(HttpStatus.OK, "สำเร็จ")
|
||||||
export class ProfileEmployeeController extends Controller {
|
export class ProfileEmployeeTempController extends Controller {
|
||||||
private orgRevisionRepo = AppDataSource.getRepository(OrgRevision);
|
private orgRevisionRepo = AppDataSource.getRepository(OrgRevision);
|
||||||
private posMasterRepo = AppDataSource.getRepository(EmployeePosMaster);
|
private posMasterRepo = AppDataSource.getRepository(EmployeePosMaster);
|
||||||
private profileRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/family/couple")
|
@Route("api/v1/org/profile-temp/family/couple")
|
||||||
@Tags("ProfileEmployeeFamilyCouple")
|
@Tags("ProfileEmployeeFamilyCouple")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileFamilyCoupleEmployeeController extends Controller {
|
export class ProfileFamilyCoupleEmployeeTempController extends Controller {
|
||||||
private profileRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private ProfileFamilyCouple = AppDataSource.getRepository(ProfileFamilyCouple);
|
private ProfileFamilyCouple = AppDataSource.getRepository(ProfileFamilyCouple);
|
||||||
private ProfileFamilyCoupleHistory = AppDataSource.getRepository(ProfileFamilyCoupleHistory);
|
private ProfileFamilyCoupleHistory = AppDataSource.getRepository(ProfileFamilyCoupleHistory);
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/family/father")
|
@Route("api/v1/org/profile-temp/family/father")
|
||||||
@Tags("ProfileEmployeeFamilyFather")
|
@Tags("ProfileEmployeeFamilyFather")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileFamilyFatherEmployeeController extends Controller {
|
export class ProfileFamilyFatherEmployeeTempController extends Controller {
|
||||||
private profileRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private ProfileFamilyFather = AppDataSource.getRepository(ProfileFamilyFather);
|
private ProfileFamilyFather = AppDataSource.getRepository(ProfileFamilyFather);
|
||||||
private ProfileFamilyFatherHistory = AppDataSource.getRepository(ProfileFamilyFatherHistory);
|
private ProfileFamilyFatherHistory = AppDataSource.getRepository(ProfileFamilyFatherHistory);
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/family/mother")
|
@Route("api/v1/org/profile-temp/family/mother")
|
||||||
@Tags("ProfileEmployeeFamilyMother")
|
@Tags("ProfileEmployeeFamilyMother")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileFamilyMotherEmployeeController extends Controller {
|
export class ProfileFamilyMotherEmployeeTempController extends Controller {
|
||||||
private profileRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private ProfileFamilyMother = AppDataSource.getRepository(ProfileFamilyMother);
|
private ProfileFamilyMother = AppDataSource.getRepository(ProfileFamilyMother);
|
||||||
private ProfileFamilyMotherHistory = AppDataSource.getRepository(ProfileFamilyMotherHistory);
|
private ProfileFamilyMotherHistory = AppDataSource.getRepository(ProfileFamilyMotherHistory);
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/government")
|
@Route("api/v1/org/profile-temp/government")
|
||||||
@Tags("ProfileEmployeeGovernment")
|
@Tags("ProfileEmployeeGovernment")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileGovernmentEmployeeController extends Controller {
|
export class ProfileGovernmentEmployeeTempController extends Controller {
|
||||||
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private govRepo = AppDataSource.getRepository(ProfileGovernment);
|
private govRepo = AppDataSource.getRepository(ProfileGovernment);
|
||||||
private positionRepo = AppDataSource.getRepository(EmployeePosition);
|
private positionRepo = AppDataSource.getRepository(EmployeePosition);
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/honor")
|
@Route("api/v1/org/profile-temp/honor")
|
||||||
@Tags("ProfileEmployeeHonor")
|
@Tags("ProfileEmployeeHonor")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileHonorEmployeeController extends Controller {
|
export class ProfileHonorEmployeeTempController extends Controller {
|
||||||
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private honorRepo = AppDataSource.getRepository(ProfileHonor);
|
private honorRepo = AppDataSource.getRepository(ProfileHonor);
|
||||||
private honorHistoryRepo = AppDataSource.getRepository(ProfileHonorHistory);
|
private honorHistoryRepo = AppDataSource.getRepository(ProfileHonorHistory);
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/insignia")
|
@Route("api/v1/org/profile-temp/insignia")
|
||||||
@Tags("ProfileEmployeeInsignia")
|
@Tags("ProfileEmployeeInsignia")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileInsigniaEmployeeController extends Controller {
|
export class ProfileInsigniaEmployeeTempController extends Controller {
|
||||||
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private insigniaRepo = AppDataSource.getRepository(ProfileInsignia);
|
private insigniaRepo = AppDataSource.getRepository(ProfileInsignia);
|
||||||
private insigniaHistoryRepo = AppDataSource.getRepository(ProfileInsigniaHistory);
|
private insigniaHistoryRepo = AppDataSource.getRepository(ProfileInsigniaHistory);
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/leave")
|
@Route("api/v1/org/profile-temp/leave")
|
||||||
@Tags("ProfileLeave")
|
@Tags("ProfileLeave")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileLeaveEmployeeController extends Controller {
|
export class ProfileLeaveEmployeeTempController extends Controller {
|
||||||
private profileRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private leaveRepo = AppDataSource.getRepository(ProfileLeave);
|
private leaveRepo = AppDataSource.getRepository(ProfileLeave);
|
||||||
private leaveHistoryRepo = AppDataSource.getRepository(ProfileLeaveHistory);
|
private leaveHistoryRepo = AppDataSource.getRepository(ProfileLeaveHistory);
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/nopaid")
|
@Route("api/v1/org/profile-temp/nopaid")
|
||||||
@Tags("ProfileNopaid")
|
@Tags("ProfileNopaid")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileNopaidEmployeeController extends Controller {
|
export class ProfileNopaidEmployeeTempController extends Controller {
|
||||||
private profileRepository = AppDataSource.getRepository(ProfileEmployee);
|
private profileRepository = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private nopaidRepository = AppDataSource.getRepository(ProfileNopaid);
|
private nopaidRepository = AppDataSource.getRepository(ProfileNopaid);
|
||||||
private nopaidHistoryRepository = AppDataSource.getRepository(ProfileNopaidHistory);
|
private nopaidHistoryRepository = AppDataSource.getRepository(ProfileNopaidHistory);
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/other")
|
@Route("api/v1/org/profile-temp/other")
|
||||||
@Tags("ProfileOther")
|
@Tags("ProfileOther")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileOtherEmployeeController extends Controller {
|
export class ProfileOtherEmployeeTempController extends Controller {
|
||||||
private profileRepository = AppDataSource.getRepository(ProfileEmployee);
|
private profileRepository = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private otherRepository = AppDataSource.getRepository(ProfileOther);
|
private otherRepository = AppDataSource.getRepository(ProfileOther);
|
||||||
private otherHistoryRepository = AppDataSource.getRepository(ProfileOtherHistory);
|
private otherHistoryRepository = AppDataSource.getRepository(ProfileOtherHistory);
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/salary")
|
@Route("api/v1/org/profile-temp/salary")
|
||||||
@Tags("ProfileSalary")
|
@Tags("ProfileSalary")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileSalaryEmployeeController extends Controller {
|
export class ProfileSalaryEmployeeTempController extends Controller {
|
||||||
private profileRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private salaryRepo = AppDataSource.getRepository(ProfileSalary);
|
private salaryRepo = AppDataSource.getRepository(ProfileSalary);
|
||||||
private salaryHistoryRepo = AppDataSource.getRepository(ProfileSalaryHistory);
|
private salaryHistoryRepo = AppDataSource.getRepository(ProfileSalaryHistory);
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ import permission from "../interfaces/permission";
|
||||||
@Route("api/v1/org/profile-temp/training")
|
@Route("api/v1/org/profile-temp/training")
|
||||||
@Tags("ProfileEmployeeTraining")
|
@Tags("ProfileEmployeeTraining")
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
export class ProfileTrainingEmployeeController extends Controller {
|
export class ProfileTrainingEmployeeTempController extends Controller {
|
||||||
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
private profileEmployeeRepo = AppDataSource.getRepository(ProfileEmployee);
|
||||||
private trainingRepo = AppDataSource.getRepository(ProfileTraining);
|
private trainingRepo = AppDataSource.getRepository(ProfileTraining);
|
||||||
private trainingHistoryRepo = AppDataSource.getRepository(ProfileTrainingHistory);
|
private trainingHistoryRepo = AppDataSource.getRepository(ProfileTrainingHistory);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue