add users

This commit is contained in:
Aditya Siregar
2025-08-08 00:32:05 +07:00
parent fe4f17b34d
commit c18e915d1e
3 changed files with 5 additions and 3 deletions
+4
View File
@@ -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")