Gogs 5 ماه پیش
والد
کامیت
21548b2ddd
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      bin/client_msg/msg.ts
  2. 1 0
      src/server/msg/msg.go

+ 1 - 0
bin/client_msg/msg.ts

@@ -2,4 +2,5 @@
 export enum MsgID {
 export enum MsgID {
     Hello = 0,
     Hello = 0,
     ReqLogin = 1,
     ReqLogin = 1,
+    RespLogin = 2,
 }
 }

+ 1 - 0
src/server/msg/msg.go

@@ -22,6 +22,7 @@ var msgList []MsgInfo
 func init() {
 func init() {
 	Processor.Register(&Hello{})
 	Processor.Register(&Hello{})
 	Processor.Register(&ReqLogin{})
 	Processor.Register(&ReqLogin{})
+	Processor.Register(&RespLogin{})
 	Processor.Range(func(id uint16, t reflect.Type) {
 	Processor.Range(func(id uint16, t reflect.Type) {
 		log.Debug("消息ID: %d, 消息类型: %s\n", id, t.Elem().Name())
 		log.Debug("消息ID: %d, 消息类型: %s\n", id, t.Elem().Name())
 		msgList = append(msgList, MsgInfo{
 		msgList = append(msgList, MsgInfo{