Documentation ¶
Index ¶
- func CreateAdmin(username, password string) error
- func CreateEmployee(name, username, password string, superiorID *int) error
- func CreateProject(name, code string) error
- func DeleteEmployee(id string) error
- func DeleteProject(id string) error
- func GetCurrentMonthTotalHours() (float64, error)
- func GetEmployeeCount() (int, error)
- func GetProjectCount() (int, error)
- func InitDefaultAdmin(username, password string) error
- func IsProjectCodeExist(code string) (bool, error)
- func IsProjectNameExist(name string) (bool, error)
- func IsUsernameExist(username string) (bool, error)
- func ResetEmployeePassword(id string, newPassword string) error
- func SubmitTimesheet(employeeID, projectID int, hours float64, month time.Time, description string) error
- func UpdateAdminPassword(adminID int, newPassword string) error
- func UpdateEmployee(id string, name, username string, superiorID *int) error
- func UpdateEmployeePassword(employeeID int, newPassword string) error
- func UpdateProject(id, name, code string) error
- func UpdateTimesheet(id string, employeeID, projectID int, hours float64, month time.Time, ...) error
- type Admin
- type Employee
- type MonthlyProjectHours
- type Project
- type Timesheet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAdmin ¶
func CreateEmployee ¶
func CreateProject ¶
func DeleteEmployee ¶
func DeleteProject ¶
func GetEmployeeCount ¶
func GetProjectCount ¶
func InitDefaultAdmin ¶
func IsProjectCodeExist ¶
func IsProjectNameExist ¶
func ResetEmployeePassword ¶
func SubmitTimesheet ¶
func UpdateAdminPassword ¶
func UpdateEmployeePassword ¶
func UpdateProject ¶
Types ¶
type Admin ¶
func GetAdminByUsername ¶
type Employee ¶
type Employee struct { ID int Name string Username string Password string SuperiorID sql.NullInt64 SuperiorName sql.NullString }
func GetAllEmployees ¶
func GetEmployeeByID ¶
func GetEmployeeByUsername ¶
type MonthlyProjectHours ¶
func GetEmployeeMonthlyHours ¶
Click to show internal directories.
Click to hide internal directories.