对接
This commit is contained in:
@@ -15,14 +15,14 @@ func (h *LiveChat) History(c *gin.Context) {
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
in, ok := bindQuery[dto.LiveChatHistoryRequest](c)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
items, err := h.service.History(c.Request.Context(), roomID, in.Limit)
|
||||
// Chat is intentionally scoped to the current live connection. Do not
|
||||
// replay rows persisted by an earlier viewer/session through HTTP. Still
|
||||
// validate the room so callers receive a useful not-found response.
|
||||
items, err := h.service.History(c.Request.Context(), roomID, 1)
|
||||
if err != nil {
|
||||
businessFail(c, err)
|
||||
return
|
||||
}
|
||||
OKWithData(c, gin.H{"list": items})
|
||||
_ = items
|
||||
OKWithData(c, gin.H{"list": []*dto.LiveChatMessageResponse{}})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user