Documentation ¶
Index ¶
- func NewUserHandler(e *echo.Echo, us user.Usecase)
- type LoginResponse
- type ResponseError
- type UserHandler
- func (a *UserHandler) Delete(c echo.Context) error
- func (a *UserHandler) DoLogin(c echo.Context) error
- func (a *UserHandler) FetchUsers(c echo.Context) error
- func (a *UserHandler) GetByEmpNumber(c echo.Context) error
- func (a *UserHandler) Store(c echo.Context) error
- func (a *UserHandler) Update(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoginResponse ¶
type LoginResponse struct { Status string `json:"status"` ErrorCode string `json:"errorCode"` Description string `json:"description"` SessionKey string `json:"sessionKey"` Role models.Role `json:"role"` Email string `json:"email"` EmpId string `json:"empId"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Position string `json:"position"` Timestamp string `json:"timestamp"` }
type ResponseError ¶
type ResponseError struct {
Message string `json:"message"`
}
ResponseError represent the reseponse error struct
type UserHandler ¶
UserHandler represent the httphandler for article
func (*UserHandler) Delete ¶
func (a *UserHandler) Delete(c echo.Context) error
Delete will delete user by given param
func (*UserHandler) FetchUsers ¶
func (a *UserHandler) FetchUsers(c echo.Context) error
FetchUsers will fetch the users based on given params
func (*UserHandler) GetByEmpNumber ¶
func (a *UserHandler) GetByEmpNumber(c echo.Context) error
GetByEmpNumber will get user by given emp number
Click to show internal directories.
Click to hide internal directories.