add users
This commit is contained in:
@@ -148,6 +148,9 @@ func (h *UserHandler) GetUser(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (h *UserHandler) ListUsers(c *gin.Context) {
|
||||
ctx := c.Request.Context()
|
||||
contextInfo := appcontext.FromGinContext(ctx)
|
||||
|
||||
req := &contract.ListUsersRequest{
|
||||
Page: 1,
|
||||
Limit: 10,
|
||||
@@ -188,6 +191,7 @@ func (h *UserHandler) ListUsers(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
req.OrganizationID = &contextInfo.OrganizationID
|
||||
usersResponse, err := h.userService.ListUsers(c.Request.Context(), req)
|
||||
if err != nil {
|
||||
logger.FromContext(c).WithError(err).Error("UserHandler::ListUsers -> Failed to list users from service")
|
||||
|
||||
Reference in New Issue
Block a user