chore: 并入 iotlcm-app 历史到 app/(原提交 f40bda9)

This commit is contained in:
MiFaZhan
2026-11-02 13:28:00 +08:00
1107 changed files with 147143 additions and 0 deletions
@@ -0,0 +1,39 @@
// Package websocket
// @Link https://github.com/xiujiecn/xiu-admin
// @Copyright Copyright (c) 2025 LiXiujie
// @Author Lxj <li@example.com>
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
package websocket
import "github.com/gogf/gf/v2/frame/g"
// 当前输入对象
type request struct {
Event string `json:"e"` //事件名称
Data g.Map `json:"d"` //数据
}
// WResponse 输出对象
type WResponse struct {
Event string `json:"e"` //事件名称
Data interface{} `json:"d"` //数据
}
type TagWResponse struct {
Tag string
WResponse *WResponse
}
type UserWResponse struct {
UserID uint64
WResponse *WResponse
}
type ClientWResponse struct {
ID string
WResponse *WResponse
}
type WsLoginDataReq struct {
UserID uint `json:"userId" `
}