xiaoyang0346 4 天之前
父节点
当前提交
156546b952

+ 310 - 34
s_to_proto/docs/openapi.json

@@ -1274,6 +1274,100 @@
         }
       }
     },
+    "/mail/MailDelAll": {
+      "post": {
+        "tags": [
+          "mail"
+        ],
+        "operationId": "mail/MailDelAll",
+        "requestBody": {
+          "description": "Req<MailDelAll>",
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/mail_PtlMailDelAll_ReqMailDelAll"
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "Success",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "type": "object",
+                  "description": "ApiReturn<ResMailDelAll>",
+                  "properties": {
+                    "isSucc": {
+                      "type": "boolean",
+                      "enum": [
+                        true
+                      ],
+                      "default": true
+                    },
+                    "res": {
+                      "$ref": "#/components/schemas/mail_PtlMailDelAll_ResMailDelAll"
+                    }
+                  }
+                }
+              }
+            }
+          },
+          "default": {
+            "description": "Error",
+            "$ref": "#/components/responses/error"
+          }
+        }
+      }
+    },
+    "/mail/MailDelOne": {
+      "post": {
+        "tags": [
+          "mail"
+        ],
+        "operationId": "mail/MailDelOne",
+        "requestBody": {
+          "description": "Req<MailDelOne>",
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/mail_PtlMailDelOne_ReqMailDelOne"
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "Success",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "type": "object",
+                  "description": "ApiReturn<ResMailDelOne>",
+                  "properties": {
+                    "isSucc": {
+                      "type": "boolean",
+                      "enum": [
+                        true
+                      ],
+                      "default": true
+                    },
+                    "res": {
+                      "$ref": "#/components/schemas/mail_PtlMailDelOne_ResMailDelOne"
+                    }
+                  }
+                }
+              }
+            }
+          },
+          "default": {
+            "description": "Error",
+            "$ref": "#/components/responses/error"
+          }
+        }
+      }
+    },
     "/mail/MailInfo": {
       "post": {
         "tags": [
@@ -1321,6 +1415,100 @@
         }
       }
     },
+    "/mail/MailRwdAll": {
+      "post": {
+        "tags": [
+          "mail"
+        ],
+        "operationId": "mail/MailRwdAll",
+        "requestBody": {
+          "description": "Req<MailRwdAll>",
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/mail_PtlMailRwdAll_ReqMailRwdAll"
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "Success",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "type": "object",
+                  "description": "ApiReturn<ResMailRwdAll>",
+                  "properties": {
+                    "isSucc": {
+                      "type": "boolean",
+                      "enum": [
+                        true
+                      ],
+                      "default": true
+                    },
+                    "res": {
+                      "$ref": "#/components/schemas/mail_PtlMailRwdAll_ResMailRwdAll"
+                    }
+                  }
+                }
+              }
+            }
+          },
+          "default": {
+            "description": "Error",
+            "$ref": "#/components/responses/error"
+          }
+        }
+      }
+    },
+    "/mail/MailRwdOne": {
+      "post": {
+        "tags": [
+          "mail"
+        ],
+        "operationId": "mail/MailRwdOne",
+        "requestBody": {
+          "description": "Req<MailRwdOne>",
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/mail_PtlMailRwdOne_ReqMailRwdOne"
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "Success",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "type": "object",
+                  "description": "ApiReturn<ResMailRwdOne>",
+                  "properties": {
+                    "isSucc": {
+                      "type": "boolean",
+                      "enum": [
+                        true
+                      ],
+                      "default": true
+                    },
+                    "res": {
+                      "$ref": "#/components/schemas/mail_PtlMailRwdOne_ResMailRwdOne"
+                    }
+                  }
+                }
+              }
+            }
+          },
+          "default": {
+            "description": "Error",
+            "$ref": "#/components/responses/error"
+          }
+        }
+      }
+    },
     "/plat/PlatLogin": {
       "post": {
         "tags": [
@@ -2252,9 +2440,9 @@
         "type": "number",
         "enum": [
           0,
-          1,
           2,
           3,
+          50,
           4
         ]
       },
@@ -2310,63 +2498,139 @@
         },
         "description": "后端推送道具变化信息"
       },
-      "mail_client_MsgMailNew_c_MsgMailNew_c": {
+      "mail_PtlMailDelAll_ReqMailDelAll": {
         "type": "object",
-        "properties": {}
+        "properties": {},
+        "description": "请求接口"
+      },
+      "mail_PtlMailDelAll_ResMailDelAll": {
+        "type": "object",
+        "properties": {},
+        "description": "返回信息"
+      },
+      "mail_PtlMailDelOne_ReqMailDelOne": {
+        "type": "object",
+        "properties": {},
+        "description": "请求接口"
+      },
+      "mail_PtlMailDelOne_ResMailDelOne": {
+        "type": "object",
+        "properties": {},
+        "description": "返回信息"
       },
       "mail_PtlMailInfo_ReqMailInfo": {
         "type": "object",
-        "properties": {}
+        "properties": {},
+        "description": "请求邮件信息"
       },
       "mail_PtlMailInfo_ResMailInfo": {
         "type": "object",
         "properties": {},
         "additionalProperties": {
-          "type": "object",
-          "properties": {
-            "id": {
-              "type": "string"
-            },
-            "title": {
-              "type": "string"
-            },
-            "content": {
-              "type": "string"
-            },
+          "$ref": "#/components/schemas/mail_PtlMailInfo_MailInfo"
+        },
+        "description": "返回邮件信息列表"
+      },
+      "mail_PtlMailInfo_MailInfo": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string"
+          },
+          "title": {
+            "type": "string"
+          },
+          "content": {
+            "type": "string"
+          },
+          "items": {
+            "type": "array",
             "items": {
               "type": "array",
               "items": {
                 "type": "number"
               }
-            },
-            "fts": {
-              "type": "number"
-            },
+            }
+          },
+          "fts": {
+            "type": "number"
+          },
+          "rts": {
+            "type": "number"
+          },
+          "ets": {
+            "type": "number"
+          },
+          "dts": {
+            "type": "number"
+          }
+        },
+        "required": [
+          "id",
+          "title",
+          "content",
+          "items",
+          "fts",
+          "rts",
+          "ets",
+          "dts"
+        ]
+      },
+      "mail_PtlMailRwdAll_ReqMailRwdAll": {
+        "type": "object",
+        "properties": {},
+        "description": "请求接口"
+      },
+      "mail_PtlMailRwdAll_ResMailRwdAll": {
+        "type": "object",
+        "properties": {},
+        "additionalProperties": {
+          "type": "object",
+          "properties": {
             "rts": {
               "type": "number"
-            },
-            "ets": {
-              "type": "number"
-            },
-            "dts": {
+            }
+          },
+          "required": [
+            "rts"
+          ]
+        },
+        "description": "返回信息"
+      },
+      "mail_PtlMailRwdOne_ReqMailRwdOne": {
+        "type": "object",
+        "properties": {
+          "id": {
+            "type": "string"
+          }
+        },
+        "required": [
+          "id"
+        ],
+        "description": "请求接口"
+      },
+      "mail_PtlMailRwdOne_ResMailRwdOne": {
+        "type": "object",
+        "properties": {},
+        "additionalProperties": {
+          "type": "object",
+          "properties": {
+            "rts": {
               "type": "number"
             }
           },
           "required": [
-            "id",
-            "title",
-            "content",
-            "items",
-            "fts",
-            "rts",
-            "ets",
-            "dts"
+            "rts"
           ]
-        }
+        },
+        "description": "返回信息"
       },
       "mail_server_MsgMailNew_s_MsgMailNew_s": {
         "type": "object",
-        "properties": {}
+        "properties": {},
+        "additionalProperties": {
+          "$ref": "#/components/schemas/mail_PtlMailInfo_MailInfo"
+        }
       },
       "plat_PtlPlatLogin_ReqPlatLogin": {
         "type": "object",
@@ -2584,6 +2848,18 @@
         ],
         "description": "领取任务奖励"
       },
+      "task_server_MsgTaskCons_s_MsgTaskCons_s": {
+        "type": "object",
+        "properties": {
+          "cons": {
+            "type": "number"
+          }
+        },
+        "required": [
+          "cons"
+        ],
+        "description": "主线任务进度"
+      },
       "user_PtlUserFight_ReqUserFight": {
         "type": "object",
         "properties": {},

+ 121 - 5
s_to_proto/docs/tsapi.md

@@ -41,7 +41,11 @@
 - item
     - [获取道具信息](#/item/ItemInfo)
 - mail
-    - [MailInfo](#/mail/MailInfo)
+    - [请求接口](#/mail/MailDelAll)
+    - [请求接口](#/mail/MailDelOne)
+    - [请求邮件信息](#/mail/MailInfo)
+    - [请求接口](#/mail/MailRwdAll)
+    - [请求接口](#/mail/MailRwdOne)
 - plat
     - [平台登录](#/plat/PlatLogin)
 - player
@@ -761,7 +765,7 @@ interface ResHcInfo {
     lastTime: number,
     list: {
         [key: string]: {
-            type: 0 | 1 | 2 | 3 | 4,
+            type: 0 | 2 | 3 | 50 | 4,
             unlock: 0 | 1,
             correlationId: number
         }
@@ -795,7 +799,7 @@ interface ReqHcMerge {
 ```ts
 interface ResHcMerge {
     [key: string]: {
-        type: 0 | 1 | 2 | 3 | 4,
+        type: 0 | 2 | 3 | 50 | 4,
         unlock: 0 | 1,
         correlationId: number
     }
@@ -843,7 +847,63 @@ interface ResItemInfo {
 
 ## mail
 
-### MailInfo <a id="/mail/MailInfo"></a>
+### 请求接口 <a id="/mail/MailDelAll"></a>
+
+**路径**
+- POST `/mail/MailDelAll`
+
+**请求**
+```ts
+interface ReqMailDelAll {
+
+}
+```
+
+**响应**
+```ts
+interface ResMailDelAll {
+
+}
+```
+
+**配置**
+```ts
+{
+  "connet": "ws"
+}
+```
+
+---
+
+### 请求接口 <a id="/mail/MailDelOne"></a>
+
+**路径**
+- POST `/mail/MailDelOne`
+
+**请求**
+```ts
+interface ReqMailDelOne {
+
+}
+```
+
+**响应**
+```ts
+interface ResMailDelOne {
+
+}
+```
+
+**配置**
+```ts
+{
+  "connet": "ws"
+}
+```
+
+---
+
+### 请求邮件信息 <a id="/mail/MailInfo"></a>
 
 **路径**
 - POST `/mail/MailInfo`
@@ -862,7 +922,7 @@ interface ResMailInfo {
         id: string,
         title: string,
         content: string,
-        items: number[],
+        items: number[][],
         fts: number,
         rts: number,
         ets: number,
@@ -880,6 +940,62 @@ interface ResMailInfo {
 
 ---
 
+### 请求接口 <a id="/mail/MailRwdAll"></a>
+
+**路径**
+- POST `/mail/MailRwdAll`
+
+**请求**
+```ts
+interface ReqMailRwdAll {
+
+}
+```
+
+**响应**
+```ts
+interface ResMailRwdAll {
+    [key: string]: { rts: number }
+}
+```
+
+**配置**
+```ts
+{
+  "connet": "ws"
+}
+```
+
+---
+
+### 请求接口 <a id="/mail/MailRwdOne"></a>
+
+**路径**
+- POST `/mail/MailRwdOne`
+
+**请求**
+```ts
+interface ReqMailRwdOne {
+    id: string
+}
+```
+
+**响应**
+```ts
+interface ResMailRwdOne {
+    [key: string]: { rts: number }
+}
+```
+
+**配置**
+```ts
+{
+  "connet": "ws"
+}
+```
+
+---
+
 ## plat
 
 ### 平台登录 <a id="/plat/PlatLogin"></a>

+ 22 - 0
s_to_proto/shared/mail/PtlMailDelAll.ts

@@ -0,0 +1,22 @@
+
+
+/**
+* 请求接口
+*/
+export interface ReqMailDelAll {
+
+}
+
+/**
+* 返回信息
+*/
+export interface ResMailDelAll {
+
+}
+
+export const conf = {
+    connet: "ws"
+}
+
+
+

+ 22 - 0
s_to_proto/shared/mail/PtlMailDelOne.ts

@@ -0,0 +1,22 @@
+
+
+/**
+* 请求接口
+*/
+export interface ReqMailDelOne {
+
+}
+
+/**
+* 返回信息
+*/
+export interface ResMailDelOne {
+
+}
+
+export const conf = {
+    connet: "ws"
+}
+
+
+

+ 24 - 0
s_to_proto/shared/mail/PtlMailRwdAll.ts

@@ -0,0 +1,24 @@
+
+
+/**
+* 请求接口
+*/
+export interface ReqMailRwdAll {
+
+}
+
+/**
+* 返回信息
+*/
+export interface ResMailRwdAll {
+    [id:string]:{
+        rts:number //领取时间
+    }
+}
+
+export const conf = {
+    connet: "ws"
+}
+
+
+

+ 24 - 0
s_to_proto/shared/mail/PtlMailRwdOne.ts

@@ -0,0 +1,24 @@
+
+
+/**
+* 请求接口
+*/
+export interface ReqMailRwdOne {
+    id:string //邮件ID
+}
+
+/**
+* 返回信息
+*/
+export interface ResMailRwdOne {
+    [id:string]:{
+        rts:number //领取时间
+    }
+}
+
+export const conf = {
+    connet: "ws"
+}
+
+
+

+ 202 - 54
s_to_proto/shared/serviceProto.ts

@@ -30,12 +30,17 @@ import { ReqHcInfo, ResHcInfo } from './hc/PtlHcInfo';
 import { ReqHcMerge, ResHcMerge } from './hc/PtlHcMerge';
 import { ReqItemInfo, ResItemInfo } from './item/PtlItemInfo';
 import { MsgItemChange_s } from './item/server/MsgItemChange_s';
+import { ReqMailDelAll, ResMailDelAll } from './mail/PtlMailDelAll';
+import { ReqMailDelOne, ResMailDelOne } from './mail/PtlMailDelOne';
 import { ReqMailInfo, ResMailInfo } from './mail/PtlMailInfo';
+import { ReqMailRwdAll, ResMailRwdAll } from './mail/PtlMailRwdAll';
+import { ReqMailRwdOne, ResMailRwdOne } from './mail/PtlMailRwdOne';
 import { MsgMailNew_s } from './mail/server/MsgMailNew_s';
 import { ReqPlatLogin, ResPlatLogin } from './plat/PtlPlatLogin';
 import { ReqPlayerLogin, ResPlayerLogin } from './player/PtlPlayerLogin';
 import { ReqTaskInfo, ResTaskInfo } from './task/PtlTaskInfo';
 import { ReqTaskRwd, ResTaskRwd } from './task/PtlTaskRwd';
+import { MsgTaskCons_s } from './task/server/MsgTaskCons_s';
 import { ReqUserFight, ResUserFight } from './user/PtlUserFight';
 import { ReqUserLogin, ResUserLogin } from './user/PtlUserLogin';
 import { ReqUserSetName, ResUserSetName } from './user/PtlUserSetName';
@@ -151,10 +156,26 @@ export interface ServiceType {
             req: ReqItemInfo,
             res: ResItemInfo
         },
+        "mail/MailDelAll": {
+            req: ReqMailDelAll,
+            res: ResMailDelAll
+        },
+        "mail/MailDelOne": {
+            req: ReqMailDelOne,
+            res: ResMailDelOne
+        },
         "mail/MailInfo": {
             req: ReqMailInfo,
             res: ResMailInfo
         },
+        "mail/MailRwdAll": {
+            req: ReqMailRwdAll,
+            res: ResMailRwdAll
+        },
+        "mail/MailRwdOne": {
+            req: ReqMailRwdOne,
+            res: ResMailRwdOne
+        },
         "plat/PlatLogin": {
             req: ReqPlatLogin,
             res: ResPlatLogin
@@ -190,12 +211,13 @@ export interface ServiceType {
         "eps/server/EpsChange_s": MsgEpsChange_s,
         "item/server/ItemChange_s": MsgItemChange_s,
         "mail/server/MailNew_s": MsgMailNew_s,
+        "task/server/TaskCons_s": MsgTaskCons_s,
         "user/server/UserUplevel_s": MsgUserUplevel_s
     }
 }
 
 export const serviceProto: ServiceProto<ServiceType> = {
-    "version": 50,
+    "version": 51,
     "services": [
         {
             "id": 39,
@@ -434,6 +456,22 @@ export const serviceProto: ServiceProto<ServiceType> = {
             "type": "msg"
         },
         {
+            "id": 79,
+            "name": "mail/MailDelAll",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
+            }
+        },
+        {
+            "id": 80,
+            "name": "mail/MailDelOne",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
+            }
+        },
+        {
             "id": 77,
             "name": "mail/MailInfo",
             "type": "api",
@@ -442,6 +480,22 @@ export const serviceProto: ServiceProto<ServiceType> = {
             }
         },
         {
+            "id": 81,
+            "name": "mail/MailRwdAll",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
+            }
+        },
+        {
+            "id": 82,
+            "name": "mail/MailRwdOne",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
+            }
+        },
+        {
             "id": 78,
             "name": "mail/server/MailNew_s",
             "type": "msg"
@@ -479,6 +533,11 @@ export const serviceProto: ServiceProto<ServiceType> = {
             }
         },
         {
+            "id": 83,
+            "name": "task/server/TaskCons_s",
+            "type": "msg"
+        },
+        {
             "id": 68,
             "name": "user/UserFight",
             "type": "api",
@@ -1195,10 +1254,6 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     "value": 0
                 },
                 {
-                    "id": 1,
-                    "value": 1
-                },
-                {
                     "id": 2,
                     "value": 2
                 },
@@ -1207,6 +1262,10 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     "value": 3
                 },
                 {
+                    "id": 5,
+                    "value": 50
+                },
+                {
                     "id": 4,
                     "value": 4
                 }
@@ -1275,6 +1334,18 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             }
         },
+        "mail/PtlMailDelAll/ReqMailDelAll": {
+            "type": "Interface"
+        },
+        "mail/PtlMailDelAll/ResMailDelAll": {
+            "type": "Interface"
+        },
+        "mail/PtlMailDelOne/ReqMailDelOne": {
+            "type": "Interface"
+        },
+        "mail/PtlMailDelOne/ResMailDelOne": {
+            "type": "Interface"
+        },
         "mail/PtlMailInfo/ReqMailInfo": {
             "type": "Interface"
         },
@@ -1283,63 +1354,121 @@ export const serviceProto: ServiceProto<ServiceType> = {
             "indexSignature": {
                 "keyType": "String",
                 "type": {
+                    "type": "Reference",
+                    "target": "mail/PtlMailInfo/MailInfo"
+                }
+            }
+        },
+        "mail/PtlMailInfo/MailInfo": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "id",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "title",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 2,
+                    "name": "content",
+                    "type": {
+                        "type": "String"
+                    }
+                },
+                {
+                    "id": 3,
+                    "name": "items",
+                    "type": {
+                        "type": "Array",
+                        "elementType": {
+                            "type": "Array",
+                            "elementType": {
+                                "type": "Number"
+                            }
+                        }
+                    }
+                },
+                {
+                    "id": 4,
+                    "name": "fts",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 5,
+                    "name": "rts",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 6,
+                    "name": "ets",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
+                    "id": 7,
+                    "name": "dts",
+                    "type": {
+                        "type": "Number"
+                    }
+                }
+            ]
+        },
+        "mail/PtlMailRwdAll/ReqMailRwdAll": {
+            "type": "Interface"
+        },
+        "mail/PtlMailRwdAll/ResMailRwdAll": {
+            "type": "Interface",
+            "indexSignature": {
+                "keyType": "String",
+                "type": {
                     "type": "Interface",
                     "properties": [
                         {
                             "id": 0,
-                            "name": "id",
-                            "type": {
-                                "type": "String"
-                            }
-                        },
-                        {
-                            "id": 1,
-                            "name": "title",
-                            "type": {
-                                "type": "String"
-                            }
-                        },
-                        {
-                            "id": 2,
-                            "name": "content",
-                            "type": {
-                                "type": "String"
-                            }
-                        },
-                        {
-                            "id": 3,
-                            "name": "items",
-                            "type": {
-                                "type": "Array",
-                                "elementType": {
-                                    "type": "Number"
-                                }
-                            }
-                        },
-                        {
-                            "id": 4,
-                            "name": "fts",
-                            "type": {
-                                "type": "Number"
-                            }
-                        },
-                        {
-                            "id": 5,
                             "name": "rts",
                             "type": {
                                 "type": "Number"
                             }
-                        },
-                        {
-                            "id": 6,
-                            "name": "ets",
-                            "type": {
-                                "type": "Number"
-                            }
-                        },
+                        }
+                    ]
+                }
+            }
+        },
+        "mail/PtlMailRwdOne/ReqMailRwdOne": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "id",
+                    "type": {
+                        "type": "String"
+                    }
+                }
+            ]
+        },
+        "mail/PtlMailRwdOne/ResMailRwdOne": {
+            "type": "Interface",
+            "indexSignature": {
+                "keyType": "String",
+                "type": {
+                    "type": "Interface",
+                    "properties": [
                         {
-                            "id": 7,
-                            "name": "dts",
+                            "id": 0,
+                            "name": "rts",
                             "type": {
                                 "type": "Number"
                             }
@@ -1349,7 +1478,14 @@ export const serviceProto: ServiceProto<ServiceType> = {
             }
         },
         "mail/server/MsgMailNew_s/MsgMailNew_s": {
-            "type": "Interface"
+            "type": "Interface",
+            "indexSignature": {
+                "keyType": "String",
+                "type": {
+                    "type": "Reference",
+                    "target": "mail/PtlMailInfo/MailInfo"
+                }
+            }
         },
         "plat/PtlPlatLogin/ReqPlatLogin": {
             "type": "Interface",
@@ -1641,6 +1777,18 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
+        "task/server/MsgTaskCons_s/MsgTaskCons_s": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "cons",
+                    "type": {
+                        "type": "Number"
+                    }
+                }
+            ]
+        },
         "user/PtlUserFight/ReqUserFight": {
             "type": "Interface"
         },