`OpenAPI.yaml`の`getUserDMChannel`のuserIdがUUIDになっていない
Closed this issue · 0 comments
pikachu0310 commented
https://apis.trap.jp/#/channel/getUserDMChannel
実際にはUUID
// GetUserDMChannel GET /users/:userID/dm-channel
func (h *Handlers) GetUserDMChannel(c echo.Context) error {
userID := getParamAsUUID(c, consts.ParamUserID)
myID := getRequestUserID(c)
// DMチャンネルを取得
ch, err := h.ChannelManager.GetDMChannel(myID, userID)
if err != nil {
return herror.InternalServerError(err)
}
return c.JSON(http.StatusOK, &DMChannel{ID: ch.ID, UserID: userID})
}