xiaoyang0346 2 days ago
parent
commit
5fe8f08c00

+ 5 - 1
s_to_proto/docs/openapi.json

@@ -2628,6 +2628,9 @@
       "chat_server_MsgChatNew_s_MsgChatNew_s": {
         "type": "object",
         "properties": {},
+        "additionalProperties": {
+          "$ref": "#/components/schemas/chat_PtlChatSend_ChatInfo"
+        },
         "description": "msg推送信息"
       },
       "common_MsgItems_MsgItems": {
@@ -2887,8 +2890,9 @@
           0,
           2,
           3,
+          4,
           50,
-          4
+          51
         ]
       },
       "hc_PtlHcInfo_HcUnlock": {

+ 3 - 3
s_to_proto/docs/tsapi.md

@@ -877,7 +877,7 @@ interface ReqHcEmit {
 ```ts
 interface ResHcEmit {
     [key: string]: {
-        type: 0 | 2 | 3 | 50 | 4,
+        type: 0 | 2 | 3 | 4 | 50 | 51,
         unlock: 0 | 1,
         correlationId: number
     }
@@ -913,7 +913,7 @@ interface ResHcInfo {
     lastTime: number,
     list: {
         [key: string]: {
-            type: 0 | 2 | 3 | 50 | 4,
+            type: 0 | 2 | 3 | 4 | 50 | 51,
             unlock: 0 | 1,
             correlationId: number
         }
@@ -948,7 +948,7 @@ interface ReqHcMerge {
 interface ResHcMerge {
     list: {
         [key: string]: {
-            type: 0 | 2 | 3 | 50 | 4,
+            type: 0 | 2 | 3 | 4 | 50 | 51,
             unlock: 0 | 1,
             correlationId: number
         }

+ 2 - 1
s_to_proto/shared/hc/PtlHcInfo.ts

@@ -32,8 +32,9 @@ export enum HcType {
     wu = 0, //无物品
     material = 2, //材料
     emitter = 3, //发射器
-    monster = 50, //怪物
     equip = 4, //装备
+    monster = 50, //怪物
+    user = 51, //角色
 }
 //解锁状态
 export enum HcUnlock {

+ 15 - 4
s_to_proto/shared/serviceProto.ts

@@ -239,7 +239,7 @@ export interface ServiceType {
 }
 
 export const serviceProto: ServiceProto<ServiceType> = {
-    "version": 59,
+    "version": 60,
     "services": [
         {
             "id": 39,
@@ -1339,7 +1339,14 @@ export const serviceProto: ServiceProto<ServiceType> = {
             ]
         },
         "chat/server/MsgChatNew_s/MsgChatNew_s": {
-            "type": "Interface"
+            "type": "Interface",
+            "indexSignature": {
+                "keyType": "String",
+                "type": {
+                    "type": "Reference",
+                    "target": "chat/PtlChatSend/ChatInfo"
+                }
+            }
         },
         "common/MsgItems/MsgItems": {
             "type": "Interface",
@@ -1683,12 +1690,16 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     "value": 3
                 },
                 {
+                    "id": 4,
+                    "value": 4
+                },
+                {
                     "id": 5,
                     "value": 50
                 },
                 {
-                    "id": 4,
-                    "value": 4
+                    "id": 6,
+                    "value": 51
                 }
             ]
         },