Implement employee creation
<UserStory>EMP001 Create Employee</UserStory> <Changes> - Updated employee creation flow to support different employee types and designations - Set a default initial password for new employees - Added basic authorization check utility - Cleaned up employee model constructors for better consistency Minor code cleanup and refactoring </Changes> <Review> Smitha Mohan </Review>
This commit is contained in:
@@ -3,16 +3,14 @@
|
||||
|
||||
class ITExecutive : public Employee
|
||||
{
|
||||
public:
|
||||
ITExecutive() = default;
|
||||
ITExecutive(
|
||||
const std::string& password,
|
||||
const std::string& name,
|
||||
const std::string& phone,
|
||||
const std::string& email,
|
||||
const std::string& teamId,
|
||||
std::shared_ptr<Payroll> payroll
|
||||
) :Employee(password, name, phone, email, teamId, Enums::EmployeeType::GENERAL, payroll) {
|
||||
};
|
||||
) :Employee(name, phone, email, Enums::EmployeeType::GENERAL, payroll) {};
|
||||
~ITExecutive() = default;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user