xiaoyang0346 4 days ago
parent
commit
94d641587a

+ 70 - 1
s_to_proto/docs/openapi.json

@@ -2735,14 +2735,40 @@
           },
           "token": {
             "type": "string"
+          },
+          "noticeWais": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/plat_PtlPlatLogin_Notices"
+            }
           }
         },
         "required": [
           "openId",
-          "token"
+          "token",
+          "noticeWais"
         ],
         "description": "返回平台登录信息"
       },
+      "plat_PtlPlatLogin_Notices": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "number"
+          },
+          "title": {
+            "type": "string"
+          },
+          "content": {
+            "type": "string"
+          }
+        },
+        "required": [
+          "type",
+          "title",
+          "content"
+        ]
+      },
       "player_PtlPlayerLogin_ReqPlayerLogin": {
         "type": "object",
         "properties": {
@@ -2804,6 +2830,20 @@
               "$ref": "#/components/schemas/player_PtlPlayerLogin_qufuInfo"
             }
           },
+          "switch": {
+            "type": "object",
+            "properties": {},
+            "additionalProperties": {
+              "type": "object"
+            }
+          },
+          "orderList": {
+            "type": "object",
+            "properties": {},
+            "additionalProperties": {
+              "$ref": "#/components/schemas/player_PtlPlayerLogin_OrderList"
+            }
+          },
           "wsUrl": {
             "type": "string"
           }
@@ -2814,6 +2854,8 @@
           "list",
           "token",
           "qufuList",
+          "switch",
+          "orderList",
           "wsUrl"
         ],
         "description": "返回账号登录信息"
@@ -2882,6 +2924,33 @@
         ],
         "description": "区服信息"
       },
+      "player_PtlPlayerLogin_OrderList": {
+        "type": "object",
+        "properties": {
+          "rmb": {
+            "type": "number"
+          },
+          "money": {
+            "type": "number"
+          },
+          "desc": {
+            "type": "string"
+          },
+          "iid": {
+            "type": "string"
+          },
+          "daibi": {
+            "type": "number"
+          }
+        },
+        "required": [
+          "rmb",
+          "money",
+          "desc",
+          "iid",
+          "daibi"
+        ]
+      },
       "task_PtlTaskInfo_ReqTaskInfo": {
         "type": "object",
         "properties": {},

+ 16 - 1
s_to_proto/docs/tsapi.md

@@ -1016,7 +1016,12 @@ interface ReqPlatLogin {
 ```ts
 interface ResPlatLogin {
     openId: string,
-    token: string
+    token: string,
+    noticeWais: {
+        type: number,
+        title: string,
+        content: string
+    }[]
 }
 ```
 
@@ -1074,6 +1079,16 @@ interface ResPlayerLogin {
             skin: string
         }
     },
+    switch: { [key: string]: any },
+    orderList: {
+        [key: string]: {
+            rmb: number,
+            money: number,
+            desc: string,
+            iid: string,
+            daibi: number
+        }
+    },
     wsUrl: string
 }
 ```

+ 8 - 2
s_to_proto/shared/plat/PtlPlatLogin.ts

@@ -12,8 +12,14 @@ export interface ReqPlatLogin {
  * 返回平台登录信息
  */
 export interface ResPlatLogin {
-    openId:string
-    token:string
+    openId:string  //唯一标识
+    token:string   //唯一标识对应的token
+    noticeWais:Notices[]  //登陆界面公告
+}
+export interface Notices {
+    type: number; //公告类型
+    title: string; //这里是公告标题
+    content: string; //这里是公告内容
 }
 
 export const conf = {

+ 13 - 0
s_to_proto/shared/player/PtlPlayerLogin.ts

@@ -23,6 +23,12 @@ export interface ResPlayerLogin {
 	qufuList:{
 		[sid:string]:qufuInfo
 	}
+	switch:{  //开关配置
+		[key: string]: any
+	}
+    orderList: {  //充值档次配置
+		[dc: string]: OrderList 
+	}; 
 	wsUrl:string //ws地址
 }
 /**
@@ -34,6 +40,13 @@ export interface ResLoginList {
 	level: number; //等级
 	lastlogin: number; //最后一次登录时间
 }
+export interface OrderList {
+    rmb: number;
+    money: number;
+    desc: string;
+    iid: string;
+    daibi: number;
+}
 
 /**
  * 区服信息

+ 105 - 1
s_to_proto/shared/serviceProto.ts

@@ -222,7 +222,7 @@ export interface ServiceType {
 }
 
 export const serviceProto: ServiceProto<ServiceType> = {
-    "version": 52,
+    "version": 53,
     "services": [
         {
             "id": 39,
@@ -1577,6 +1577,43 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     "type": {
                         "type": "String"
                     }
+                },
+                {
+                    "id": 2,
+                    "name": "noticeWais",
+                    "type": {
+                        "type": "Array",
+                        "elementType": {
+                            "type": "Reference",
+                            "target": "plat/PtlPlatLogin/Notices"
+                        }
+                    }
+                }
+            ]
+        },
+        "plat/PtlPlatLogin/Notices": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "type",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "title",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 2,
+                    "name": "content",
+                    "type": {
+                        "type": "String"
+                    }
                 }
             ]
         },
@@ -1683,6 +1720,33 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     }
                 },
                 {
+                    "id": 6,
+                    "name": "switch",
+                    "type": {
+                        "type": "Interface",
+                        "indexSignature": {
+                            "keyType": "String",
+                            "type": {
+                                "type": "Any"
+                            }
+                        }
+                    }
+                },
+                {
+                    "id": 7,
+                    "name": "orderList",
+                    "type": {
+                        "type": "Interface",
+                        "indexSignature": {
+                            "keyType": "String",
+                            "type": {
+                                "type": "Reference",
+                                "target": "player/PtlPlayerLogin/OrderList"
+                            }
+                        }
+                    }
+                },
+                {
                     "id": 5,
                     "name": "wsUrl",
                     "type": {
@@ -1785,6 +1849,46 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
+        "player/PtlPlayerLogin/OrderList": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "rmb",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "money",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 2,
+                    "name": "desc",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 3,
+                    "name": "iid",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 4,
+                    "name": "daibi",
+                    "type": {
+                        "type": "Number"
+                    }
+                }
+            ]
+        },
         "task/PtlTaskInfo/ReqTaskInfo": {
             "type": "Interface"
         },