This commit is contained in:
2025-07-03 16:33:20 +08:00
parent cb79e11f9b
commit 9f267927c6

View File

@@ -333,7 +333,7 @@ func (c *WebSocketController) SendMessageHandler(ctx *gin.Context) {
ctx.JSON(http.StatusBadRequest, gin.H{"error": "不支持的request_type"})
}
// 用户绑定处理器
// BindHandler 用户绑定处理器
func (c *WebSocketController) BindHandler(ctx *gin.Context) {
start := time.Now()
@@ -367,7 +367,7 @@ func (c *WebSocketController) BindHandler(ctx *gin.Context) {
req.UserID, req.ClientID, time.Since(start))
}
// 通过用户ID发送消息处理器
// SendToUserHandler 通过用户ID发送消息处理器
func (c *WebSocketController) SendToUserHandler(ctx *gin.Context) {
start := time.Now()