xiaoyang0346 3 days ago
parent
commit
efa33a5794

+ 71 - 0
s_to_proto/docs/openapi.json

@@ -1791,6 +1791,53 @@
         }
       }
     },
+    "/user/UserNotices": {
+      "post": {
+        "tags": [
+          "user"
+        ],
+        "operationId": "user/UserNotices",
+        "requestBody": {
+          "description": "Req<UserNotices>",
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/user_PtlUserNotices_ReqUserNotices"
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "Success",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "type": "object",
+                  "description": "ApiReturn<ResUserNotices>",
+                  "properties": {
+                    "isSucc": {
+                      "type": "boolean",
+                      "enum": [
+                        true
+                      ],
+                      "default": true
+                    },
+                    "res": {
+                      "$ref": "#/components/schemas/user_PtlUserNotices_ResUserNotices"
+                    }
+                  }
+                }
+              }
+            }
+          },
+          "default": {
+            "description": "Error",
+            "$ref": "#/components/responses/error"
+          }
+        }
+      }
+    },
     "/user/UserSetName": {
       "post": {
         "tags": [
@@ -3067,6 +3114,9 @@
           "fid": {
             "type": "string"
           },
+          "seat": {
+            "type": "number"
+          },
           "eps": {
             "type": "object",
             "properties": {},
@@ -3077,6 +3127,7 @@
         },
         "required": [
           "fid",
+          "seat",
           "eps"
         ],
         "description": "单个阵容信息"
@@ -3249,6 +3300,26 @@
         ],
         "description": "返回角色信息"
       },
+      "user_PtlUserNotices_ReqUserNotices": {
+        "type": "object",
+        "properties": {},
+        "description": "请求接口 获取内部公告"
+      },
+      "user_PtlUserNotices_ResUserNotices": {
+        "type": "object",
+        "properties": {
+          "notices": {
+            "type": "array",
+            "items": {
+              "$ref": "#/components/schemas/plat_PtlPlatLogin_Notices"
+            }
+          }
+        },
+        "required": [
+          "notices"
+        ],
+        "description": "返回信息"
+      },
       "user_PtlUserSetName_ReqUserSetName": {
         "type": "object",
         "properties": {

File diff suppressed because it is too large
+ 176 - 266
s_to_proto/docs/tsapi.md


+ 40 - 1
s_to_proto/shared/serviceProto.ts

@@ -43,6 +43,7 @@ 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 { ReqUserNotices, ResUserNotices } from './user/PtlUserNotices';
 import { ReqUserSetName, ResUserSetName } from './user/PtlUserSetName';
 import { ReqUserUseCode, ResUserUseCode } from './user/PtlUserUseCode';
 import { MsgUserUplevel_s } from './user/server/MsgUserUplevel_s';
@@ -201,6 +202,10 @@ export interface ServiceType {
             req: ReqUserLogin,
             res: ResUserLogin
         },
+        "user/UserNotices": {
+            req: ReqUserNotices,
+            res: ResUserNotices
+        },
         "user/UserSetName": {
             req: ReqUserSetName,
             res: ResUserSetName
@@ -222,7 +227,7 @@ export interface ServiceType {
 }
 
 export const serviceProto: ServiceProto<ServiceType> = {
-    "version": 53,
+    "version": 54,
     "services": [
         {
             "id": 39,
@@ -559,6 +564,14 @@ export const serviceProto: ServiceProto<ServiceType> = {
             }
         },
         {
+            "id": 85,
+            "name": "user/UserNotices",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
+            }
+        },
+        {
             "id": 69,
             "name": "user/UserSetName",
             "type": "api",
@@ -2029,6 +2042,13 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     }
                 },
                 {
+                    "id": 2,
+                    "name": "seat",
+                    "type": {
+                        "type": "Number"
+                    }
+                },
+                {
                     "id": 1,
                     "name": "eps",
                     "type": {
@@ -2295,6 +2315,25 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
+        "user/PtlUserNotices/ReqUserNotices": {
+            "type": "Interface"
+        },
+        "user/PtlUserNotices/ResUserNotices": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "notices",
+                    "type": {
+                        "type": "Array",
+                        "elementType": {
+                            "type": "Reference",
+                            "target": "plat/PtlPlatLogin/Notices"
+                        }
+                    }
+                }
+            ]
+        },
         "user/PtlUserSetName/ReqUserSetName": {
             "type": "Interface",
             "properties": [

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

@@ -34,6 +34,7 @@ export interface FightStart {
  */
 export interface FightTeam {
     fid: string; //业务中身份
+    seat: number //位置
     eps: {[id:string]:number}; //属性
 }
 

Some files were not shown because too many files changed in this diff