Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI.yamlgetUserDMChannelのuserIdがUUIDになっていない #2427

Open
pikachu0310 opened this issue May 16, 2024 · 0 comments
Open
Labels
kind/bug バグや機能不全に関するもの kind/doc ドキュメントに関するもの

Comments

@pikachu0310
Copy link
Contributor

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})

}

@pikachu0310 pikachu0310 added kind/bug バグや機能不全に関するもの kind/doc ドキュメントに関するもの labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug バグや機能不全に関するもの kind/doc ドキュメントに関するもの
Projects
None yet
Development

No branches or pull requests

1 participant