-
Notifications
You must be signed in to change notification settings - Fork 1
API controller
Here are the APIs that I have created (some of it is still empty, which means you will not receive any result(NULL)). If you guys need any more methods or suggestions, leave comments.
models (these are what I'm gonna return to front-end, because you use GUI so the return value is an Object not a JSON)
Employee { private int empid; private String Fname; private String Lname; private String job_title; private String email; private double salary; private String ssn;
int getEmpid() { return empid }
String getFname() { return Fname }
...
} User { int empid int role; (0 for admin, 1 for employee) int getEmpid() {return empid} public int getRole() {return role}
API Controller(these are the methods you guys can use):
TO LOGIN:
UserLogin.login(String username, String password) return User{}
TO VIEW EMPLOYEE INFO:
EmployeeInfo.viewEmployeeInfoById(int empid) return Employee{} EmployeeInfo.viewEmployeeInfoByName(String Name, String Name) return Employee{} EmployeeInfo.viewEmployeeInfoBySsn(String ssn) return Employee{}
TO UPDATE SALARY BY RANGE:
UpdateRangeSalary.updateRangeSalary(int min, int max, int increment)
TO UPDATE EMPLOYEE INFO: UpdateEmployeeInfo.updateInfo(Employee employee)
TO VIEW REPORT: (to be provided)