fix ids
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
|||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/google/uuid"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
@@ -35,7 +36,7 @@ func (h *Handler) GetCurrentUser(c echo.Context) error {
|
|||||||
|
|
||||||
func (h *Handler) GetUserBatch(c echo.Context) error {
|
func (h *Handler) GetUserBatch(c echo.Context) error {
|
||||||
var users []model.User
|
var users []model.User
|
||||||
var ids []uint
|
var ids []uuid.UUID
|
||||||
|
|
||||||
rawIds := c.Param("ids")
|
rawIds := c.Param("ids")
|
||||||
decodedIds, err := url.QueryUnescape(rawIds)
|
decodedIds, err := url.QueryUnescape(rawIds)
|
||||||
|
|||||||
Reference in New Issue
Block a user