diff --git a/pkg/handler/discord/discord.go b/pkg/handler/discord/discord.go index 522f429c..3f32c581 100644 --- a/pkg/handler/discord/discord.go +++ b/pkg/handler/discord/discord.go @@ -787,11 +787,11 @@ func (h *handler) SweepOgifEvent(c *gin.Context) { // @Param discord_channel_id path string true "Channel Discord ID" // @Param startDate query string true "Start Date" // @Param endDate query string true "End Date" -// @Success 200 {object} ListResearchTopicResponse +// @Success 200 {object} ListDiscordTextMessageLog // @Failure 400 {object} ErrorResponse // @Failure 404 {object} ErrorResponse // @Failure 500 {object} ErrorResponse -// @Router /discords/{discord_channel_id}/message-logs [get] +// @Router /discords/channels/{discord_channel_id}/message-logs [get] func (h *handler) ListChannelMessageLogs(c *gin.Context) { var input = request.GetChannelMessagesInput{ DiscordChannelID: c.Param("discord_channel_id"), diff --git a/pkg/view/discord_message.go b/pkg/view/discord_message.go index 02117ead..8416f7b0 100644 --- a/pkg/view/discord_message.go +++ b/pkg/view/discord_message.go @@ -16,6 +16,10 @@ type DiscordTextMessageLog struct { Timestamp time.Time `json:"timestamp"` } +type ListDiscordTextMessageLog struct { + Data []DiscordTextMessageLog `json:"data"` +} // @name ListDiscordTextMessageLog + func ToDiscordTextMessageLog(message model.DiscordTextMessageLog) DiscordTextMessageLog { return DiscordTextMessageLog{ ID: message.ID,