xiaoyang0346 1 week ago
parent
commit
dba840203f

+ 18 - 0
s_to_proto/shared/eps/PtlEpsInfo.ts

@@ -0,0 +1,18 @@
+
+
+// 定义请求参数
+export interface ReqEpsInfo {
+
+}
+
+// 定义返回字段
+export interface ResEpsInfo {
+    [id: string]: number; //属性信息
+}
+
+export const conf = {
+    connet: "ws"
+}
+
+
+

+ 44 - 0
s_to_proto/shared/hc/PtlHcInfo.ts

@@ -0,0 +1,44 @@
+
+
+// 定义请求参数
+export interface ReqHcInfo {
+
+}
+
+// 定义返回字段
+export interface ResHcInfo {
+    chapterId:number  //章节ID
+    tili:number  //体力
+    lastTime:number //最后一次结算体力时间
+    list:HcInfoList //格子列表
+}
+
+
+export interface HcInfoList {
+    [gzid: string]: HcInfoGeziInfo;
+}
+
+export interface HcInfoGeziInfo {
+    type:HcType   //具体物品类型
+    unlock:HcUnlock  //解锁状态
+    correlationId:number  //物品ID
+}
+//具体物品类型
+export enum HcType {
+    wu = 0, //无物品
+    emitter = 1, //发射器
+    monster = 2, //怪物
+    equip = 3, //装备
+}
+//解锁状态
+export enum HcUnlock {
+    off = 0, //关
+    on = 1, //开
+}
+
+export const conf = {
+    connet: "ws"
+}
+
+
+

+ 1 - 1
s_to_proto/shared/hc/PtlHcMerge.ts

@@ -1,4 +1,4 @@
-import { HcInfoGeziInfo } from "./server/MsgHcInfo_s";
+import { HcInfoGeziInfo } from "./PtlHcInfo";
 
 
 // 定义请求参数

+ 18 - 0
s_to_proto/shared/item/PtlItemInfo.ts

@@ -0,0 +1,18 @@
+
+
+// 定义请求参数
+export interface ReqItemInfo {
+
+}
+
+// 定义返回字段
+export interface ResItemInfo {
+    [itemid:string]:number
+}
+
+export const conf = {
+    connet: "ws"
+}
+
+
+

+ 266 - 271
s_to_proto/shared/serviceProto.ts

@@ -21,22 +21,17 @@ import { RequpdateSetting, ResupdateSetting } from './admin/PtlupdateSetting';
 import { Reqxaizai, Resxaizai } from './admin/Ptlxaizai';
 import { MsgItems } from './common/MsgItems';
 import { MsgMessage } from './common/MsgMessage';
-import { MsgEpsInfo_c } from './eps/client/MsgEpsInfo_c';
+import { ReqEpsInfo, ResEpsInfo } from './eps/PtlEpsInfo';
 import { MsgEpsChange_s } from './eps/server/MsgEpsChange_s';
-import { MsgEpsInfo_s } from './eps/server/MsgEpsInfo_s';
-import { MsgHcInfo_c } from './hc/client/MsgHcInfo_c';
+import { ReqHcInfo, ResHcInfo } from './hc/PtlHcInfo';
 import { ReqHcMerge, ResHcMerge } from './hc/PtlHcMerge';
-import { MsgHcInfo_s } from './hc/server/MsgHcInfo_s';
-import { MsgItemInfo_c } from './item/client/MsgItemInfo_c';
+import { ReqItemInfo, ResItemInfo } from './item/PtlItemInfo';
 import { MsgItemChange_s } from './item/server/MsgItemChange_s';
-import { MsgItemInfo_s } from './item/server/MsgItemInfo_s';
 import { ReqPlatLogin, ResPlatLogin } from './plat/PtlPlatLogin';
 import { ReqPlayerLogin, ResPlayerLogin } from './player/PtlPlayerLogin';
-import { MsgSetName_c } from './user/client/MsgSetName_c';
-import { MsgUserFight_c } from './user/client/MsgUserFight_c';
+import { ReqUserFight, ResUserFight } from './user/PtlUserFight';
 import { ReqUserLogin, ResUserLogin } from './user/PtlUserLogin';
-import { MsgSetName_s } from './user/server/MsgSetName_s';
-import { MsgUserFight_s } from './user/server/MsgUserFight_s';
+import { ReqUserSetName, ResUserSetName } from './user/PtlUserSetName';
 
 export interface ServiceType {
     api: {
@@ -120,10 +115,22 @@ export interface ServiceType {
             req: Reqxaizai,
             res: Resxaizai
         },
+        "eps/EpsInfo": {
+            req: ReqEpsInfo,
+            res: ResEpsInfo
+        },
+        "hc/HcInfo": {
+            req: ReqHcInfo,
+            res: ResHcInfo
+        },
         "hc/HcMerge": {
             req: ReqHcMerge,
             res: ResHcMerge
         },
+        "item/ItemInfo": {
+            req: ReqItemInfo,
+            res: ResItemInfo
+        },
         "plat/PlatLogin": {
             req: ReqPlatLogin,
             res: ResPlatLogin
@@ -132,31 +139,29 @@ export interface ServiceType {
             req: ReqPlayerLogin,
             res: ResPlayerLogin
         },
+        "user/UserFight": {
+            req: ReqUserFight,
+            res: ResUserFight
+        },
         "user/UserLogin": {
             req: ReqUserLogin,
             res: ResUserLogin
+        },
+        "user/UserSetName": {
+            req: ReqUserSetName,
+            res: ResUserSetName
         }
     },
     msg: {
         "common/Items": MsgItems,
         "common/Message": MsgMessage,
-        "eps/client/EpsInfo_c": MsgEpsInfo_c,
         "eps/server/EpsChange_s": MsgEpsChange_s,
-        "eps/server/EpsInfo_s": MsgEpsInfo_s,
-        "hc/client/HcInfo_c": MsgHcInfo_c,
-        "hc/server/HcInfo_s": MsgHcInfo_s,
-        "item/client/ItemInfo_c": MsgItemInfo_c,
-        "item/server/ItemChange_s": MsgItemChange_s,
-        "item/server/ItemInfo_s": MsgItemInfo_s,
-        "user/client/SetName_c": MsgSetName_c,
-        "user/client/UserFight_c": MsgUserFight_c,
-        "user/server/SetName_s": MsgSetName_s,
-        "user/server/UserFight_s": MsgUserFight_s
+        "item/server/ItemChange_s": MsgItemChange_s
     }
 }
 
 export const serviceProto: ServiceProto<ServiceType> = {
-    "version": 39,
+    "version": 41,
     "services": [
         {
             "id": 39,
@@ -329,9 +334,12 @@ export const serviceProto: ServiceProto<ServiceType> = {
             "type": "msg"
         },
         {
-            "id": 49,
-            "name": "eps/client/EpsInfo_c",
-            "type": "msg"
+            "id": 65,
+            "name": "eps/EpsInfo",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
+            }
         },
         {
             "id": 50,
@@ -339,14 +347,12 @@ export const serviceProto: ServiceProto<ServiceType> = {
             "type": "msg"
         },
         {
-            "id": 51,
-            "name": "eps/server/EpsInfo_s",
-            "type": "msg"
-        },
-        {
-            "id": 52,
-            "name": "hc/client/HcInfo_c",
-            "type": "msg"
+            "id": 66,
+            "name": "hc/HcInfo",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
+            }
         },
         {
             "id": 64,
@@ -357,14 +363,12 @@ export const serviceProto: ServiceProto<ServiceType> = {
             }
         },
         {
-            "id": 53,
-            "name": "hc/server/HcInfo_s",
-            "type": "msg"
-        },
-        {
-            "id": 54,
-            "name": "item/client/ItemInfo_c",
-            "type": "msg"
+            "id": 67,
+            "name": "item/ItemInfo",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
+            }
         },
         {
             "id": 55,
@@ -372,11 +376,6 @@ export const serviceProto: ServiceProto<ServiceType> = {
             "type": "msg"
         },
         {
-            "id": 56,
-            "name": "item/server/ItemInfo_s",
-            "type": "msg"
-        },
-        {
             "id": 57,
             "name": "plat/PlatLogin",
             "type": "api",
@@ -393,14 +392,12 @@ export const serviceProto: ServiceProto<ServiceType> = {
             }
         },
         {
-            "id": 59,
-            "name": "user/client/SetName_c",
-            "type": "msg"
-        },
-        {
-            "id": 60,
-            "name": "user/client/UserFight_c",
-            "type": "msg"
+            "id": 68,
+            "name": "user/UserFight",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
+            }
         },
         {
             "id": 61,
@@ -411,14 +408,12 @@ export const serviceProto: ServiceProto<ServiceType> = {
             }
         },
         {
-            "id": 62,
-            "name": "user/server/SetName_s",
-            "type": "msg"
-        },
-        {
-            "id": 63,
-            "name": "user/server/UserFight_s",
-            "type": "msg"
+            "id": 69,
+            "name": "user/UserSetName",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
+            }
         }
     ],
     "types": {
@@ -923,10 +918,10 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
-        "eps/client/MsgEpsInfo_c/MsgEpsInfo_c": {
+        "eps/PtlEpsInfo/ReqEpsInfo": {
             "type": "Interface"
         },
-        "eps/server/MsgEpsChange_s/MsgEpsChange_s": {
+        "eps/PtlEpsInfo/ResEpsInfo": {
             "type": "Interface",
             "indexSignature": {
                 "keyType": "String",
@@ -935,7 +930,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             }
         },
-        "eps/server/MsgEpsInfo_s/MsgEpsInfo_s": {
+        "eps/server/MsgEpsChange_s/MsgEpsChange_s": {
             "type": "Interface",
             "indexSignature": {
                 "keyType": "String",
@@ -944,39 +939,54 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             }
         },
-        "hc/client/MsgHcInfo_c/MsgHcInfo_c": {
+        "hc/PtlHcInfo/ReqHcInfo": {
             "type": "Interface"
         },
-        "hc/PtlHcMerge/ReqHcMerge": {
+        "hc/PtlHcInfo/ResHcInfo": {
             "type": "Interface",
             "properties": [
                 {
                     "id": 0,
-                    "name": "gzid1",
+                    "name": "chapterId",
                     "type": {
-                        "type": "String"
+                        "type": "Number"
                     }
                 },
                 {
                     "id": 1,
-                    "name": "gzid2",
+                    "name": "tili",
                     "type": {
-                        "type": "String"
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 2,
+                    "name": "lastTime",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 3,
+                    "name": "list",
+                    "type": {
+                        "type": "Reference",
+                        "target": "hc/PtlHcInfo/HcInfoList"
                     }
                 }
             ]
         },
-        "hc/PtlHcMerge/ResHcMerge": {
+        "hc/PtlHcInfo/HcInfoList": {
             "type": "Interface",
             "indexSignature": {
                 "keyType": "String",
                 "type": {
                     "type": "Reference",
-                    "target": "hc/server/MsgHcInfo_s/HcInfoGeziInfo"
+                    "target": "hc/PtlHcInfo/HcInfoGeziInfo"
                 }
             }
         },
-        "hc/server/MsgHcInfo_s/HcInfoGeziInfo": {
+        "hc/PtlHcInfo/HcInfoGeziInfo": {
             "type": "Interface",
             "properties": [
                 {
@@ -984,7 +994,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     "name": "type",
                     "type": {
                         "type": "Reference",
-                        "target": "hc/server/MsgHcInfo_s/HcType"
+                        "target": "hc/PtlHcInfo/HcType"
                     }
                 },
                 {
@@ -992,7 +1002,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     "name": "unlock",
                     "type": {
                         "type": "Reference",
-                        "target": "hc/server/MsgHcInfo_s/HcUnlock"
+                        "target": "hc/PtlHcInfo/HcUnlock"
                     }
                 },
                 {
@@ -1004,7 +1014,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
-        "hc/server/MsgHcInfo_s/HcType": {
+        "hc/PtlHcInfo/HcType": {
             "type": "Enum",
             "members": [
                 {
@@ -1025,67 +1035,52 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
-        "hc/server/MsgHcInfo_s/HcUnlock": {
+        "hc/PtlHcInfo/HcUnlock": {
             "type": "Enum",
             "members": [
                 {
-                    "id": 2,
+                    "id": 0,
                     "value": 0
                 },
                 {
-                    "id": 3,
+                    "id": 1,
                     "value": 1
                 }
             ]
         },
-        "hc/server/MsgHcInfo_s/MsgHcInfo_s": {
+        "hc/PtlHcMerge/ReqHcMerge": {
             "type": "Interface",
             "properties": [
                 {
                     "id": 0,
-                    "name": "chapterId",
+                    "name": "gzid1",
                     "type": {
-                        "type": "Number"
+                        "type": "String"
                     }
                 },
                 {
                     "id": 1,
-                    "name": "tili",
-                    "type": {
-                        "type": "Number"
-                    }
-                },
-                {
-                    "id": 2,
-                    "name": "lastTime",
-                    "type": {
-                        "type": "Number"
-                    }
-                },
-                {
-                    "id": 3,
-                    "name": "list",
+                    "name": "gzid2",
                     "type": {
-                        "type": "Reference",
-                        "target": "hc/server/MsgHcInfo_s/HcInfoList"
+                        "type": "String"
                     }
                 }
             ]
         },
-        "hc/server/MsgHcInfo_s/HcInfoList": {
+        "hc/PtlHcMerge/ResHcMerge": {
             "type": "Interface",
             "indexSignature": {
                 "keyType": "String",
                 "type": {
                     "type": "Reference",
-                    "target": "hc/server/MsgHcInfo_s/HcInfoGeziInfo"
+                    "target": "hc/PtlHcInfo/HcInfoGeziInfo"
                 }
             }
         },
-        "item/client/MsgItemInfo_c/MsgItemInfo_c": {
+        "item/PtlItemInfo/ReqItemInfo": {
             "type": "Interface"
         },
-        "item/server/MsgItemChange_s/MsgItemChange_s": {
+        "item/PtlItemInfo/ResItemInfo": {
             "type": "Interface",
             "indexSignature": {
                 "keyType": "String",
@@ -1094,7 +1089,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             }
         },
-        "item/server/MsgItemInfo_s/MsgItemInfo_s": {
+        "item/server/MsgItemChange_s/MsgItemChange_s": {
             "type": "Interface",
             "indexSignature": {
                 "keyType": "String",
@@ -1349,163 +1344,10 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
-        "user/client/MsgSetName_c/MsgSetName_c": {
-            "type": "Interface",
-            "properties": [
-                {
-                    "id": 0,
-                    "name": "name",
-                    "type": {
-                        "type": "String"
-                    }
-                }
-            ]
-        },
-        "user/client/MsgUserFight_c/MsgUserFight_c": {
+        "user/PtlUserFight/ReqUserFight": {
             "type": "Interface"
         },
-        "user/PtlUserLogin/ReqUserLogin": {
-            "type": "Interface",
-            "properties": [
-                {
-                    "id": 0,
-                    "name": "sid",
-                    "type": {
-                        "type": "String"
-                    }
-                },
-                {
-                    "id": 1,
-                    "name": "uid",
-                    "type": {
-                        "type": "String"
-                    }
-                },
-                {
-                    "id": 2,
-                    "name": "token",
-                    "type": {
-                        "type": "String"
-                    }
-                }
-            ]
-        },
-        "user/PtlUserLogin/ResUserLogin": {
-            "type": "Interface",
-            "properties": [
-                {
-                    "id": 0,
-                    "name": "uuid",
-                    "type": {
-                        "type": "String"
-                    }
-                },
-                {
-                    "id": 1,
-                    "name": "sid",
-                    "type": {
-                        "type": "String"
-                    }
-                },
-                {
-                    "id": 2,
-                    "name": "name",
-                    "type": {
-                        "type": "String"
-                    }
-                },
-                {
-                    "id": 3,
-                    "name": "head",
-                    "type": {
-                        "type": "String"
-                    }
-                },
-                {
-                    "id": 4,
-                    "name": "wxhead",
-                    "type": {
-                        "type": "String"
-                    }
-                },
-                {
-                    "id": 5,
-                    "name": "sex",
-                    "type": {
-                        "type": "Number"
-                    }
-                },
-                {
-                    "id": 6,
-                    "name": "level",
-                    "type": {
-                        "type": "Number"
-                    }
-                },
-                {
-                    "id": 7,
-                    "name": "regtime",
-                    "type": {
-                        "type": "Number"
-                    }
-                },
-                {
-                    "id": 8,
-                    "name": "loginTime",
-                    "type": {
-                        "type": "Number"
-                    }
-                },
-                {
-                    "id": 9,
-                    "name": "lastlogin",
-                    "type": {
-                        "type": "Number"
-                    }
-                },
-                {
-                    "id": 10,
-                    "name": "lang",
-                    "type": {
-                        "type": "String"
-                    }
-                },
-                {
-                    "id": 11,
-                    "name": "iscz",
-                    "type": {
-                        "type": "Number"
-                    }
-                },
-                {
-                    "id": 12,
-                    "name": "rmbcz",
-                    "type": {
-                        "type": "Number"
-                    }
-                },
-                {
-                    "id": 13,
-                    "name": "power",
-                    "type": {
-                        "type": "Number"
-                    }
-                }
-            ]
-        },
-        "user/server/MsgSetName_s/MsgSetName_s": {
-            "type": "Interface",
-            "properties": [
-                {
-                    "id": 0,
-                    "name": "name",
-                    "type": {
-                        "type": "String"
-                    }
-                }
-            ]
-        },
-        "user/server/MsgUserFight_s/MsgUserFight_s": {
+        "user/PtlUserFight/ResUserFight": {
             "type": "Interface",
             "properties": [
                 {
@@ -1513,7 +1355,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     "name": "fightStart",
                     "type": {
                         "type": "Reference",
-                        "target": "user/server/MsgUserFight_s/FightStart"
+                        "target": "user/PtlUserFight/FightStart"
                     }
                 },
                 {
@@ -1534,7 +1376,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
                                 "type": "Array",
                                 "elementType": {
                                     "type": "Reference",
-                                    "target": "user/server/MsgUserFight_s/fightLogOne"
+                                    "target": "user/PtlUserFight/fightLogOne"
                                 }
                             }
                         }
@@ -1542,7 +1384,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
-        "user/server/MsgUserFight_s/FightStart": {
+        "user/PtlUserFight/FightStart": {
             "type": "Interface",
             "properties": [
                 {
@@ -1568,14 +1410,14 @@ export const serviceProto: ServiceProto<ServiceType> = {
                             "keyType": "String",
                             "type": {
                                 "type": "Reference",
-                                "target": "user/server/MsgUserFight_s/FightTeam"
+                                "target": "user/PtlUserFight/FightTeam"
                             }
                         }
                     }
                 }
             ]
         },
-        "user/server/MsgUserFight_s/FightTeam": {
+        "user/PtlUserFight/FightTeam": {
             "type": "Interface",
             "properties": [
                 {
@@ -1600,7 +1442,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
-        "user/server/MsgUserFight_s/fightLogOne": {
+        "user/PtlUserFight/fightLogOne": {
             "type": "Interface",
             "properties": [
                 {
@@ -1608,7 +1450,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     "name": "aType",
                     "type": {
                         "type": "Reference",
-                        "target": "user/server/MsgUserFight_s/ActionType"
+                        "target": "user/PtlUserFight/ActionType"
                     }
                 },
                 {
@@ -1616,7 +1458,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     "name": "atker",
                     "type": {
                         "type": "Reference",
-                        "target": "user/server/MsgUserFight_s/fightLogOneData"
+                        "target": "user/PtlUserFight/fightLogOneData"
                     }
                 },
                 {
@@ -1626,13 +1468,13 @@ export const serviceProto: ServiceProto<ServiceType> = {
                         "type": "Array",
                         "elementType": {
                             "type": "Reference",
-                            "target": "user/server/MsgUserFight_s/fightLogOneData"
+                            "target": "user/PtlUserFight/fightLogOneData"
                         }
                     }
                 }
             ]
         },
-        "user/server/MsgUserFight_s/ActionType": {
+        "user/PtlUserFight/ActionType": {
             "type": "Enum",
             "members": [
                 {
@@ -1661,7 +1503,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
-        "user/server/MsgUserFight_s/fightLogOneData": {
+        "user/PtlUserFight/fightLogOneData": {
             "type": "Interface",
             "properties": [
                 {
@@ -1715,6 +1557,159 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     }
                 }
             ]
+        },
+        "user/PtlUserLogin/ReqUserLogin": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "sid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "uid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 2,
+                    "name": "token",
+                    "type": {
+                        "type": "String"
+                    }
+                }
+            ]
+        },
+        "user/PtlUserLogin/ResUserLogin": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "uuid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "sid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 2,
+                    "name": "name",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 3,
+                    "name": "head",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 4,
+                    "name": "wxhead",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 5,
+                    "name": "sex",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 6,
+                    "name": "level",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 7,
+                    "name": "regtime",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 8,
+                    "name": "loginTime",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 9,
+                    "name": "lastlogin",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 10,
+                    "name": "lang",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 11,
+                    "name": "iscz",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 12,
+                    "name": "rmbcz",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 13,
+                    "name": "power",
+                    "type": {
+                        "type": "Number"
+                    }
+                }
+            ]
+        },
+        "user/PtlUserSetName/ReqUserSetName": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "name",
+                    "type": {
+                        "type": "String"
+                    }
+                }
+            ]
+        },
+        "user/PtlUserSetName/ResUserSetName": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "name",
+                    "type": {
+                        "type": "String"
+                    }
+                }
+            ]
         }
     }
 };

+ 65 - 0
s_to_proto/shared/user/PtlUserFight.ts

@@ -0,0 +1,65 @@
+
+
+// 定义请求参数
+export interface ReqUserFight {
+
+}
+
+// 定义返回字段
+export interface ResUserFight {
+    fightStart:FightStart; //战斗阵容
+    win: number; //0失败 1胜利
+    log: {
+        //战斗日志列表
+        //回合ID:单回合内战斗日志
+        [huihe: string]: fightLogOne[];
+    };
+}
+/**
+ * 战斗初始阵容
+ */
+export interface FightStart {
+    from: string; //战斗类型
+    seed: number; //随机种子
+    teams: {
+        [iid: string]: FightTeam;
+    };
+}
+/**
+ * 单个阵容信息
+ */
+export interface FightTeam {
+    fid: string; //业务中身份
+    eps: {[id:string]:number}; //属性
+}
+
+//单回合内战斗日志
+export interface fightLogOne {
+    aType: ActionType; //战斗动作类型
+    atker: fightLogOneData; //出手方
+    target: fightLogOneData[]; //目标
+}
+/**
+ * 战斗动作类型
+ */
+export enum ActionType {
+    wu = "wu", //默认没有 不处理
+    round = "0", //回合开始 玩家出手前
+    buff = "1", //buff
+    atk = "2", //普通攻击
+    wxsk = "3", //技能
+    over = "999", //回合结束
+}
+export interface fightLogOneData {
+    iid: string; //阵容下标
+    hp: number; //剩余血量
+    buff: [string, number][]; //上BUFF [ [BuffID,回合数]]
+    effect: [string, number][]; //触发效果 [ [属性key,数值]]
+}
+
+export const conf = {
+    connet: "ws"
+}
+
+
+

+ 18 - 0
s_to_proto/shared/user/PtlUserSetName.ts

@@ -0,0 +1,18 @@
+
+
+// 定义请求参数
+export interface ReqUserSetName {
+    name:string
+}
+
+// 定义返回字段
+export interface ResUserSetName {
+    name:string
+}
+
+export const conf = {
+    connet: "ws"
+}
+
+
+