feat: live module and jenkins pipeline to harbor deploy

This commit is contained in:
Yvan
2026-09-21 16:45:44 +08:00
parent 451c8e2abc
commit 829d75c657
145 changed files with 8984 additions and 269 deletions
+28
View File
@@ -0,0 +1,28 @@
package handler
import (
"github.com/gin-gonic/gin"
"kra/internal/service/dto"
service "kra/internal/service/livechat"
)
type LiveChat struct{ service *service.Service }
func NewLiveChat(service *service.Service) *LiveChat { return &LiveChat{service: service} }
func (h *LiveChat) History(c *gin.Context) {
roomID, ok := businessID(c)
if !ok {
return
}
in, ok := bindQuery[dto.LiveChatHistoryRequest](c)
if !ok {
return
}
items, err := h.service.History(c.Request.Context(), roomID, in.Limit)
if err != nil {
businessFail(c, err)
return
}
OKWithData(c, gin.H{"list": items})
}