🔥 代码结构调整

This commit is contained in:
李寻欢
2024-07-05 09:32:39 +08:00
parent 42ac0a5ae0
commit d07b3b9456
40 changed files with 77 additions and 77 deletions

View File

@@ -4,7 +4,7 @@ import (
"encoding/json"
"go-wechat/common/current"
"go-wechat/config"
"go-wechat/model"
"go-wechat/model/dto"
"go-wechat/types"
"go-wechat/utils"
"log"
@@ -15,7 +15,7 @@ import (
// @description: 解析消息
// @param msg
func parse(msg []byte) {
var m model.Message
var m dto.Message
if err := json.Unmarshal(msg, &m); err != nil {
log.Printf("消息解析失败: %v", err)
log.Printf("消息内容: %d -> %v", len(msg), string(msg))