xiaoyang0346 há 1 semana atrás
pai
commit
ced6a9fa10

+ 20 - 0
s_to_proto/shared/admin/PtldeleteQuFu.ts

@@ -0,0 +1,20 @@
+
+
+import { BaseRequest, BaseResponse } from '../base';
+
+// 定义请求参数
+export interface ReqdeleteQuFu extends BaseRequest {
+    sid: string;
+}
+
+// 定义返回字段
+export interface ResdeleteQuFu extends BaseResponse {
+    order10Back:any
+}
+
+export const conf = {
+    connet: "http"
+}
+
+
+

+ 21 - 0
s_to_proto/shared/admin/PtlgetNeed.ts

@@ -0,0 +1,21 @@
+
+
+import { BaseRequest, BaseResponse } from '../base';
+
+// 定义请求参数
+export interface ReqgetNeed extends BaseRequest {
+    stime:number
+    timeInterval:number
+}
+
+// 定义返回字段
+export interface ResgetNeed extends BaseResponse {
+    order10Back:any
+}
+
+export const conf = {
+    connet: "http"
+}
+
+
+

+ 20 - 0
s_to_proto/shared/admin/PtlgetQuFu.ts

@@ -0,0 +1,20 @@
+
+
+import { BaseRequest, BaseResponse } from '../base';
+
+// 定义请求参数
+export interface ReqgetQuFu extends BaseRequest {
+    // 例如: name: string;
+}
+
+// 定义返回字段
+export interface ResgetQuFu extends BaseResponse {
+    order10Back:any
+}
+
+export const conf = {
+    connet: "http"
+}
+
+
+

+ 21 - 0
s_to_proto/shared/admin/PtlupdateQuFu.ts

@@ -0,0 +1,21 @@
+
+
+import { BaseRequest, BaseResponse } from '../base';
+
+// 定义请求参数
+export interface RequpdateQuFu extends BaseRequest {
+    sid: string;
+    param: { [key: string]: any };
+}
+
+// 定义返回字段
+export interface ResupdateQuFu extends BaseResponse {
+    order10Back:any
+}
+
+export const conf = {
+    connet: "http"
+}
+
+
+

+ 1 - 1
s_to_proto/shared/base.ts

@@ -3,7 +3,7 @@ export interface BaseRequest {
 }
 
 export interface BaseResponse {
-    
+
 }
 
 export interface BaseMessage {

+ 51 - 0
s_to_proto/shared/player/PtlLogin.ts

@@ -0,0 +1,51 @@
+
+import { BaseRequest, BaseResponse } from '../base';
+
+// 定义请求参数
+export interface ReqLogin extends BaseRequest {
+    pid:string //分包ID
+	openId:string //登陆唯一标识
+	lang:string //语言
+	plat:string //登陆平台
+	device:string //登陆设备
+	parms:string[] //其他参数
+}
+
+// 定义返回字段
+export interface ResLogin extends BaseResponse {
+	uid: string; //uid
+    sid: string; //最后一次登陆区服
+    list: { [sid: string]: ResLoginList}; //每个区最多一个角色
+    token: string; //账号登陆验证码
+	//区服列表
+	qufuList:{
+		[sid:string]:qufuInfo
+	}
+	wsUrl:string //ws地址
+}
+
+export interface ResLoginList {
+	uuid: string; //角色ID
+	name: string;
+	level: number; //等级
+	lastlogin: number; //最后一次登录时间
+}
+
+//区服信息
+export interface qufuInfo {
+    sid: string; //区服ID
+    name: string; //名字
+    sName: string; //所属区服大区
+    openAt: number; //开服时间
+    status: string; //状态 1新服 2拥挤 3爆满 4维护
+    heid: string; //合服ID
+    suofu: number; //锁服
+    skin: string; //皮肤
+}
+
+export const conf = {
+    connet: "http"
+}
+
+
+

+ 561 - 14
s_to_proto/shared/serviceProto.ts

@@ -1,12 +1,37 @@
 import { ServiceProto } from 'tsrpc-proto';
-import { ReqInfo, ResInfo } from './player/PtlInfo';
+import { ReqdeleteQuFu, ResdeleteQuFu } from './admin/PtldeleteQuFu';
+import { ReqgetNeed, ResgetNeed } from './admin/PtlgetNeed';
+import { ReqgetQuFu, ResgetQuFu } from './admin/PtlgetQuFu';
+import { RequpdateQuFu, ResupdateQuFu } from './admin/PtlupdateQuFu';
+import { ReqLogin, ResLogin } from './player/PtlLogin';
+import { ReqLogin as ReqLogin_1, ResLogin as ResLogin_1 } from './user/PtlLogin';
 import { ReqLookFuser, ResLookFuser } from './user/PtlLookFuser';
 
 export interface ServiceType {
     api: {
-        "player/Info": {
-            req: ReqInfo,
-            res: ResInfo
+        "admin/deleteQuFu": {
+            req: ReqdeleteQuFu,
+            res: ResdeleteQuFu
+        },
+        "admin/getNeed": {
+            req: ReqgetNeed,
+            res: ResgetNeed
+        },
+        "admin/getQuFu": {
+            req: ReqgetQuFu,
+            res: ResgetQuFu
+        },
+        "admin/updateQuFu": {
+            req: RequpdateQuFu,
+            res: ResupdateQuFu
+        },
+        "player/Login": {
+            req: ReqLogin,
+            res: ResLogin
+        },
+        "user/Login": {
+            req: ReqLogin_1,
+            res: ResLogin_1
         },
         "user/LookFuser": {
             req: ReqLookFuser,
@@ -19,14 +44,54 @@ export interface ServiceType {
 }
 
 export const serviceProto: ServiceProto<ServiceType> = {
-    "version": 4,
+    "version": 7,
     "services": [
         {
-            "id": 0,
-            "name": "player/Info",
+            "id": 5,
+            "name": "admin/deleteQuFu",
+            "type": "api",
+            "conf": {
+                "connet": "http"
+            }
+        },
+        {
+            "id": 6,
+            "name": "admin/getNeed",
+            "type": "api",
+            "conf": {
+                "connet": "http"
+            }
+        },
+        {
+            "id": 7,
+            "name": "admin/getQuFu",
             "type": "api",
             "conf": {
-                "needLogin": true
+                "connet": "http"
+            }
+        },
+        {
+            "id": 8,
+            "name": "admin/updateQuFu",
+            "type": "api",
+            "conf": {
+                "connet": "http"
+            }
+        },
+        {
+            "id": 3,
+            "name": "player/Login",
+            "type": "api",
+            "conf": {
+                "connet": "http"
+            }
+        },
+        {
+            "id": 4,
+            "name": "user/Login",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
             }
         },
         {
@@ -34,12 +99,12 @@ export const serviceProto: ServiceProto<ServiceType> = {
             "name": "user/LookFuser",
             "type": "api",
             "conf": {
-                "needLogin": true
+                "connet": "ws"
             }
         }
     ],
     "types": {
-        "player/PtlInfo/ReqInfo": {
+        "admin/PtldeleteQuFu/ReqdeleteQuFu": {
             "type": "Interface",
             "extends": [
                 {
@@ -53,7 +118,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
             "properties": [
                 {
                     "id": 0,
-                    "name": "content",
+                    "name": "sid",
                     "type": {
                         "type": "String"
                     }
@@ -63,7 +128,7 @@ export const serviceProto: ServiceProto<ServiceType> = {
         "base/BaseRequest": {
             "type": "Interface"
         },
-        "player/PtlInfo/ResInfo": {
+        "admin/PtldeleteQuFu/ResdeleteQuFu": {
             "type": "Interface",
             "extends": [
                 {
@@ -77,9 +142,9 @@ export const serviceProto: ServiceProto<ServiceType> = {
             "properties": [
                 {
                     "id": 0,
-                    "name": "ret",
+                    "name": "order10Back",
                     "type": {
-                        "type": "String"
+                        "type": "Any"
                     }
                 }
             ]
@@ -87,6 +152,488 @@ export const serviceProto: ServiceProto<ServiceType> = {
         "base/BaseResponse": {
             "type": "Interface"
         },
+        "admin/PtlgetNeed/ReqgetNeed": {
+            "type": "Interface",
+            "extends": [
+                {
+                    "id": 0,
+                    "type": {
+                        "type": "Reference",
+                        "target": "base/BaseRequest"
+                    }
+                }
+            ],
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "stime",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "timeInterval",
+                    "type": {
+                        "type": "Number"
+                    }
+                }
+            ]
+        },
+        "admin/PtlgetNeed/ResgetNeed": {
+            "type": "Interface",
+            "extends": [
+                {
+                    "id": 0,
+                    "type": {
+                        "type": "Reference",
+                        "target": "base/BaseResponse"
+                    }
+                }
+            ],
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "order10Back",
+                    "type": {
+                        "type": "Any"
+                    }
+                }
+            ]
+        },
+        "admin/PtlgetQuFu/ReqgetQuFu": {
+            "type": "Interface",
+            "extends": [
+                {
+                    "id": 0,
+                    "type": {
+                        "type": "Reference",
+                        "target": "base/BaseRequest"
+                    }
+                }
+            ]
+        },
+        "admin/PtlgetQuFu/ResgetQuFu": {
+            "type": "Interface",
+            "extends": [
+                {
+                    "id": 0,
+                    "type": {
+                        "type": "Reference",
+                        "target": "base/BaseResponse"
+                    }
+                }
+            ],
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "order10Back",
+                    "type": {
+                        "type": "Any"
+                    }
+                }
+            ]
+        },
+        "admin/PtlupdateQuFu/RequpdateQuFu": {
+            "type": "Interface",
+            "extends": [
+                {
+                    "id": 0,
+                    "type": {
+                        "type": "Reference",
+                        "target": "base/BaseRequest"
+                    }
+                }
+            ],
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "sid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "param",
+                    "type": {
+                        "type": "Interface",
+                        "indexSignature": {
+                            "keyType": "String",
+                            "type": {
+                                "type": "Any"
+                            }
+                        }
+                    }
+                }
+            ]
+        },
+        "admin/PtlupdateQuFu/ResupdateQuFu": {
+            "type": "Interface",
+            "extends": [
+                {
+                    "id": 0,
+                    "type": {
+                        "type": "Reference",
+                        "target": "base/BaseResponse"
+                    }
+                }
+            ],
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "order10Back",
+                    "type": {
+                        "type": "Any"
+                    }
+                }
+            ]
+        },
+        "player/PtlLogin/ReqLogin": {
+            "type": "Interface",
+            "extends": [
+                {
+                    "id": 0,
+                    "type": {
+                        "type": "Reference",
+                        "target": "base/BaseRequest"
+                    }
+                }
+            ],
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "pid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "openId",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 2,
+                    "name": "lang",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 3,
+                    "name": "plat",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 4,
+                    "name": "device",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 5,
+                    "name": "parms",
+                    "type": {
+                        "type": "Array",
+                        "elementType": {
+                            "type": "String"
+                        }
+                    }
+                }
+            ]
+        },
+        "player/PtlLogin/ResLogin": {
+            "type": "Interface",
+            "extends": [
+                {
+                    "id": 0,
+                    "type": {
+                        "type": "Reference",
+                        "target": "base/BaseResponse"
+                    }
+                }
+            ],
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "uid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "sid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 2,
+                    "name": "list",
+                    "type": {
+                        "type": "Interface",
+                        "indexSignature": {
+                            "keyType": "String",
+                            "type": {
+                                "type": "Reference",
+                                "target": "player/PtlLogin/ResLoginList"
+                            }
+                        }
+                    }
+                },
+                {
+                    "id": 3,
+                    "name": "token",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 4,
+                    "name": "qufuList",
+                    "type": {
+                        "type": "Interface",
+                        "indexSignature": {
+                            "keyType": "String",
+                            "type": {
+                                "type": "Reference",
+                                "target": "player/PtlLogin/qufuInfo"
+                            }
+                        }
+                    }
+                },
+                {
+                    "id": 5,
+                    "name": "wsUrl",
+                    "type": {
+                        "type": "String"
+                    }
+                }
+            ]
+        },
+        "player/PtlLogin/ResLoginList": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "uuid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "name",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 2,
+                    "name": "level",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 3,
+                    "name": "lastlogin",
+                    "type": {
+                        "type": "Number"
+                    }
+                }
+            ]
+        },
+        "player/PtlLogin/qufuInfo": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "sid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "name",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 2,
+                    "name": "sName",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 3,
+                    "name": "openAt",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 4,
+                    "name": "status",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 5,
+                    "name": "heid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 6,
+                    "name": "suofu",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 7,
+                    "name": "skin",
+                    "type": {
+                        "type": "String"
+                    }
+                }
+            ]
+        },
+        "user/PtlLogin/ReqLogin": {
+            "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/PtlLogin/ResLogin": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "sid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "name",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 2,
+                    "name": "head",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 3,
+                    "name": "wxhead",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 4,
+                    "name": "sex",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 5,
+                    "name": "level",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 6,
+                    "name": "regtime",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 7,
+                    "name": "loginTime",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 8,
+                    "name": "lastlogin",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 9,
+                    "name": "lang",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 10,
+                    "name": "iscz",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 11,
+                    "name": "rmbcz",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 12,
+                    "name": "power",
+                    "type": {
+                        "type": "Number"
+                    }
+                }
+            ]
+        },
         "user/PtlLookFuser/ReqLookFuser": {
             "type": "Interface",
             "extends": [

+ 3 - 0
s_to_proto/shared/user/PtlLogin.ts

@@ -24,5 +24,8 @@ export interface ResLogin {
     power: number; //战力
 }
 
+export const conf = {
+    connet: "ws"
+}
 
 

+ 2 - 1
s_to_proto/shared/user/PtlLookFuser.ts

@@ -11,5 +11,6 @@ export interface ResLookFuser extends BaseResponse {
 }
 
 export const conf = {
-    needLogin: true
+    connet: "ws"
 }
+