Documentation ¶
Index ¶
- func DeleteEmployee(Mongoenv, publickey, dbname, colname string, r *http.Request) string
- func DeleteEmployeeData(mongoconn *mongo.Database, colname, EmpId string) (deletedid interface{}, err error)
- func DeleteUser(Mongoconn *mongo.Database, colname, username string) (deleted interface{}, err error)
- func DeleteUserforAdmin(Mongoenv, publickey, dbname, colname string, r *http.Request) string
- func GetAllEmployee(PublicKey, Mongoenv, dbname, colname string, r *http.Request) string
- func GetDataUserForAdmin(PublicKey, MongoEnv, dbname, colname string, r *http.Request) string
- func GetOneEmployee(PublicKey, MongoEnv, dbname, colname string, r *http.Request) string
- func InsertDataEmployee(MongoConn *mongo.Database, colname string, emp Employee) (InsertedID interface{})
- func InsertEmployee(MongoEnv, dbname, colname, publickey string, r *http.Request) string
- func IsAdmin(Tokenstr, PublicKey string) bool
- func IsHR(TokenStr, Publickey string) bool
- func Login(Privatekey, MongoEnv, dbname, Colname string, r *http.Request) string
- func Register(Mongoenv, dbname string, r *http.Request) string
- func ResetPassword(MongoEnv, publickey, dbname, colname string, r *http.Request) string
- func SubmitReport(MongoEnv, dbname, colname, publickey string, r *http.Request) string
- func UpdateDataEmployees(MongoEnv, dbname, publickey string, r *http.Request) string
- func UpdateEmployee(Mongoconn *mongo.Database, ctx context.Context, emp Employee) (UpdateId interface{}, err error)
- func UpdatePassword(mongoconn *mongo.Database, user pasproj.User) (Updatedid interface{})
- type Cred
- type Division
- type Employee
- type Report
- type ReqUsers
- type RequestEmployee
- type ResponseBack
- type ResponseEmployee
- type ResponseEmployeeBanyak
- type Salary
- type Updated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEmployee ¶
Delete Data
func DeleteEmployeeData ¶
func DeleteUser ¶
func DeleteUserforAdmin ¶
Delete User
func GetAllEmployee ¶
GetAll
func GetDataUserForAdmin ¶
Get Data User
func GetOneEmployee ¶
Get One
func InsertDataEmployee ¶
func InsertEmployee ¶
Insert data
func ResetPassword ¶
Reset Password
func SubmitReport ¶ added in v0.0.2
func UpdateDataEmployees ¶
Update data
func UpdateEmployee ¶
Types ¶
type Employee ¶
type Employee struct { EmployeeId string `json:"employeeid" bson:"employeeid,omitempty"` Name string `json:"name" bson:"name,omitempty"` Email string `json:"email" bson:"email,omitempty"` Phone string `json:"phone" bson:"phone,omitempty"` Division Division `json:"division" bson:"division,omitempty"` Account pasproj.User `json:"account" bson:"account,omitempty"` Salary Salary `json:"salary" bson:"salary"` }
func GetAllEmployeeData ¶
type RequestEmployee ¶
type RequestEmployee struct {
EmployeeId string `json:"employeeid"`
}
type ResponseBack ¶
type ResponseEmployee ¶
type ResponseEmployeeBanyak ¶
Click to show internal directories.
Click to hide internal directories.