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 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 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 ¶ added in v0.1.1
func DeleteEmployeeData ¶ added in v0.1.1
func DeleteUser ¶ added in v0.0.15
func DeleteUserforAdmin ¶ added in v0.0.15
func GetAllEmployee ¶ added in v0.1.0
func GetDataUserForAdmin ¶ added in v0.0.3
func GetOneEmployee ¶ added in v0.0.6
func InsertDataEmployee ¶ added in v0.0.6
func InsertEmployee ¶ added in v0.0.6
func ResetPassword ¶ added in v0.0.16
func UpdateDataEmployees ¶ added in v0.0.6
func UpdateEmployee ¶ added in v0.0.6
Types ¶
type Employee ¶ added in v0.0.6
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 ¶ added in v0.1.0
type RequestEmployee ¶ added in v0.1.1
type RequestEmployee struct {
EmployeeId string `json:"employeeid"`
}
type ResponseBack ¶
type ResponseEmployee ¶ added in v0.0.6
type ResponseEmployeeBanyak ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.