xiaoyang0346 4 روز پیش
والد
کامیت
ffd06cb986

+ 105 - 0
s_to_proto/docs/openapi.json

@@ -1274,6 +1274,53 @@
         }
         }
       }
       }
     },
     },
+    "/mail/MailInfo": {
+      "post": {
+        "tags": [
+          "mail"
+        ],
+        "operationId": "mail/MailInfo",
+        "requestBody": {
+          "description": "Req<MailInfo>",
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/mail_PtlMailInfo_ReqMailInfo"
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "Success",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "type": "object",
+                  "description": "ApiReturn<ResMailInfo>",
+                  "properties": {
+                    "isSucc": {
+                      "type": "boolean",
+                      "enum": [
+                        true
+                      ],
+                      "default": true
+                    },
+                    "res": {
+                      "$ref": "#/components/schemas/mail_PtlMailInfo_ResMailInfo"
+                    }
+                  }
+                }
+              }
+            }
+          },
+          "default": {
+            "description": "Error",
+            "$ref": "#/components/responses/error"
+          }
+        }
+      }
+    },
     "/plat/PlatLogin": {
     "/plat/PlatLogin": {
       "post": {
       "post": {
         "tags": [
         "tags": [
@@ -2263,6 +2310,64 @@
         },
         },
         "description": "后端推送道具变化信息"
         "description": "后端推送道具变化信息"
       },
       },
+      "mail_client_MsgMailNew_c_MsgMailNew_c": {
+        "type": "object",
+        "properties": {}
+      },
+      "mail_PtlMailInfo_ReqMailInfo": {
+        "type": "object",
+        "properties": {}
+      },
+      "mail_PtlMailInfo_ResMailInfo": {
+        "type": "object",
+        "properties": {},
+        "additionalProperties": {
+          "type": "object",
+          "properties": {
+            "id": {
+              "type": "string"
+            },
+            "title": {
+              "type": "string"
+            },
+            "content": {
+              "type": "string"
+            },
+            "items": {
+              "type": "array",
+              "items": {
+                "type": "number"
+              }
+            },
+            "fts": {
+              "type": "number"
+            },
+            "rts": {
+              "type": "number"
+            },
+            "ets": {
+              "type": "number"
+            },
+            "dts": {
+              "type": "number"
+            }
+          },
+          "required": [
+            "id",
+            "title",
+            "content",
+            "items",
+            "fts",
+            "rts",
+            "ets",
+            "dts"
+          ]
+        }
+      },
+      "mail_server_MsgMailNew_s_MsgMailNew_s": {
+        "type": "object",
+        "properties": {}
+      },
       "plat_PtlPlatLogin_ReqPlatLogin": {
       "plat_PtlPlatLogin_ReqPlatLogin": {
         "type": "object",
         "type": "object",
         "properties": {
         "properties": {

+ 41 - 0
s_to_proto/docs/tsapi.md

@@ -40,6 +40,8 @@
     - [点击两个格子合成](#/hc/HcMerge)
     - [点击两个格子合成](#/hc/HcMerge)
 - item
 - item
     - [获取道具信息](#/item/ItemInfo)
     - [获取道具信息](#/item/ItemInfo)
+- mail
+    - [MailInfo](#/mail/MailInfo)
 - plat
 - plat
     - [平台登录](#/plat/PlatLogin)
     - [平台登录](#/plat/PlatLogin)
 - player
 - player
@@ -839,6 +841,45 @@ interface ResItemInfo {
 
 
 ---
 ---
 
 
+## mail
+
+### MailInfo <a id="/mail/MailInfo"></a>
+
+**路径**
+- POST `/mail/MailInfo`
+
+**请求**
+```ts
+interface ReqMailInfo {
+
+}
+```
+
+**响应**
+```ts
+interface ResMailInfo {
+    [key: string]: {
+        id: string,
+        title: string,
+        content: string,
+        items: number[],
+        fts: number,
+        rts: number,
+        ets: number,
+        dts: number
+    }
+}
+```
+
+**配置**
+```ts
+{
+  "connet": "ws"
+}
+```
+
+---
+
 ## plat
 ## plat
 
 
 ### 平台登录 <a id="/plat/PlatLogin"></a>
 ### 平台登录 <a id="/plat/PlatLogin"></a>

+ 29 - 0
s_to_proto/shared/mail/PtlMailInfo.ts

@@ -0,0 +1,29 @@
+
+
+// 定义请求参数
+export interface ReqMailInfo {
+
+}
+
+// 定义返回字段
+export interface ResMailInfo {
+    [id:string]:MailInfo
+}
+
+export interface MailInfo {
+    id: string
+    title: string //标题
+    content: string //内容
+    items: number[][] //道具列表
+    fts: number //发送时间
+    rts: number //读取时间
+    ets: number  //过期时间
+    dts: number  //删除时间
+}
+
+export const conf = {
+    connet: "ws"
+}
+
+
+

+ 8 - 0
s_to_proto/shared/mail/server/MsgMailNew_s.ts

@@ -0,0 +1,8 @@
+import { MailInfo } from "../PtlMailInfo";
+
+
+// 定义返回字段
+export interface MsgMailNew_s {
+    [id:string]:MailInfo
+}
+

+ 97 - 1
s_to_proto/shared/serviceProto.ts

@@ -30,6 +30,8 @@ import { ReqHcInfo, ResHcInfo } from './hc/PtlHcInfo';
 import { ReqHcMerge, ResHcMerge } from './hc/PtlHcMerge';
 import { ReqHcMerge, ResHcMerge } from './hc/PtlHcMerge';
 import { ReqItemInfo, ResItemInfo } from './item/PtlItemInfo';
 import { ReqItemInfo, ResItemInfo } from './item/PtlItemInfo';
 import { MsgItemChange_s } from './item/server/MsgItemChange_s';
 import { MsgItemChange_s } from './item/server/MsgItemChange_s';
+import { ReqMailInfo, ResMailInfo } from './mail/PtlMailInfo';
+import { MsgMailNew_s } from './mail/server/MsgMailNew_s';
 import { ReqPlatLogin, ResPlatLogin } from './plat/PtlPlatLogin';
 import { ReqPlatLogin, ResPlatLogin } from './plat/PtlPlatLogin';
 import { ReqPlayerLogin, ResPlayerLogin } from './player/PtlPlayerLogin';
 import { ReqPlayerLogin, ResPlayerLogin } from './player/PtlPlayerLogin';
 import { ReqTaskInfo, ResTaskInfo } from './task/PtlTaskInfo';
 import { ReqTaskInfo, ResTaskInfo } from './task/PtlTaskInfo';
@@ -149,6 +151,10 @@ export interface ServiceType {
             req: ReqItemInfo,
             req: ReqItemInfo,
             res: ResItemInfo
             res: ResItemInfo
         },
         },
+        "mail/MailInfo": {
+            req: ReqMailInfo,
+            res: ResMailInfo
+        },
         "plat/PlatLogin": {
         "plat/PlatLogin": {
             req: ReqPlatLogin,
             req: ReqPlatLogin,
             res: ResPlatLogin
             res: ResPlatLogin
@@ -183,12 +189,13 @@ export interface ServiceType {
         "common/Message": MsgMessage,
         "common/Message": MsgMessage,
         "eps/server/EpsChange_s": MsgEpsChange_s,
         "eps/server/EpsChange_s": MsgEpsChange_s,
         "item/server/ItemChange_s": MsgItemChange_s,
         "item/server/ItemChange_s": MsgItemChange_s,
+        "mail/server/MailNew_s": MsgMailNew_s,
         "user/server/UserUplevel_s": MsgUserUplevel_s
         "user/server/UserUplevel_s": MsgUserUplevel_s
     }
     }
 }
 }
 
 
 export const serviceProto: ServiceProto<ServiceType> = {
 export const serviceProto: ServiceProto<ServiceType> = {
-    "version": 48,
+    "version": 50,
     "services": [
     "services": [
         {
         {
             "id": 39,
             "id": 39,
@@ -427,6 +434,19 @@ export const serviceProto: ServiceProto<ServiceType> = {
             "type": "msg"
             "type": "msg"
         },
         },
         {
         {
+            "id": 77,
+            "name": "mail/MailInfo",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
+            }
+        },
+        {
+            "id": 78,
+            "name": "mail/server/MailNew_s",
+            "type": "msg"
+        },
+        {
             "id": 57,
             "id": 57,
             "name": "plat/PlatLogin",
             "name": "plat/PlatLogin",
             "type": "api",
             "type": "api",
@@ -1255,6 +1275,82 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
                 }
             }
             }
         },
         },
+        "mail/PtlMailInfo/ReqMailInfo": {
+            "type": "Interface"
+        },
+        "mail/PtlMailInfo/ResMailInfo": {
+            "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"
+                            }
+                        },
+                        {
+                            "id": 7,
+                            "name": "dts",
+                            "type": {
+                                "type": "Number"
+                            }
+                        }
+                    ]
+                }
+            }
+        },
+        "mail/server/MsgMailNew_s/MsgMailNew_s": {
+            "type": "Interface"
+        },
         "plat/PtlPlatLogin/ReqPlatLogin": {
         "plat/PtlPlatLogin/ReqPlatLogin": {
             "type": "Interface",
             "type": "Interface",
             "properties": [
             "properties": [

+ 7 - 0
s_to_proto/shared/task/server/MsgTaskCons_s.ts

@@ -0,0 +1,7 @@
+
+
+// 定义返回字段
+export interface MsgTaskCons_s {
+    cons: number; //当前完成进度
+}
+