xiaoyang0346 1 day ago
parent
commit
51283e909e

+ 96 - 0
s_to_proto/docs/openapi.json

@@ -1415,6 +1415,53 @@
         }
       }
     },
+    "/hc/HcSell": {
+      "post": {
+        "tags": [
+          "hc"
+        ],
+        "operationId": "hc/HcSell",
+        "requestBody": {
+          "description": "Req<HcSell>",
+          "content": {
+            "application/json": {
+              "schema": {
+                "$ref": "#/components/schemas/hc_PtlHcSell_ReqHcSell"
+              }
+            }
+          }
+        },
+        "responses": {
+          "200": {
+            "description": "Success",
+            "content": {
+              "application/json": {
+                "schema": {
+                  "type": "object",
+                  "description": "ApiReturn<ResHcSell>",
+                  "properties": {
+                    "isSucc": {
+                      "type": "boolean",
+                      "enum": [
+                        true
+                      ],
+                      "default": true
+                    },
+                    "res": {
+                      "$ref": "#/components/schemas/hc_PtlHcSell_ResHcSell"
+                    }
+                  }
+                }
+              }
+            }
+          },
+          "default": {
+            "description": "Error",
+            "$ref": "#/components/responses/error"
+          }
+        }
+      }
+    },
     "/item/ItemInfo": {
       "post": {
         "tags": [
@@ -2936,6 +2983,17 @@
           },
           "correlationId": {
             "type": "number"
+          },
+          "emitter": {
+            "type": "object",
+            "properties": {
+              "unlock": {
+                "$ref": "#/components/schemas/hc_PtlHcInfo_HcUnlock"
+              }
+            },
+            "required": [
+              "unlock"
+            ]
           }
         },
         "required": [
@@ -3081,6 +3139,44 @@
         ],
         "description": "返回合成信息"
       },
+      "hc_PtlHcSell_ReqHcSell": {
+        "type": "object",
+        "properties": {
+          "gzid": {
+            "type": "string"
+          }
+        },
+        "required": [
+          "gzid"
+        ],
+        "description": "请求接口 出售"
+      },
+      "hc_PtlHcSell_ResHcSell": {
+        "type": "object",
+        "properties": {
+          "list": {
+            "type": "object",
+            "properties": {},
+            "additionalProperties": {
+              "$ref": "#/components/schemas/hc_PtlHcInfo_HcInfoGeziInfo"
+            }
+          },
+          "items": {
+            "type": "array",
+            "items": {
+              "type": "array",
+              "items": {
+                "type": "number"
+              }
+            }
+          }
+        },
+        "required": [
+          "list",
+          "items"
+        ],
+        "description": "返回信息"
+      },
       "hc_server_MsgHcTili_s_MsgHcTili_s": {
         "type": "object",
         "properties": {

+ 45 - 4
s_to_proto/docs/tsapi.md

@@ -44,6 +44,7 @@
     - [请求接口 点击发射器](#/hc/HcEmit)
     - [获取合成信息](#/hc/HcInfo)
     - [点击两个格子合成](#/hc/HcMerge)
+    - [请求接口 出售](#/hc/HcSell)
 - item
     - [获取道具信息](#/item/ItemInfo)
 - mail
@@ -819,7 +820,8 @@ interface ResFightHc {
         [key: string]: {
             type: 0 | 2 | 3 | 4 | 50 | 51,
             unlock: 1 | 0,
-            correlationId: number
+            correlationId: number,
+            emitter?: { unlock: 1 | 0 }
         }
     },
     /** 战斗初始阵容 */
@@ -947,7 +949,8 @@ interface ResHcEmit {
     [key: string]: {
         type: 0 | 2 | 3 | 4 | 50 | 51,
         unlock: 1 | 0,
-        correlationId: number
+        correlationId: number,
+        emitter?: { unlock: 1 | 0 }
     }
 }
 ```
@@ -984,7 +987,8 @@ interface ResHcInfo {
         [key: string]: {
             type: 0 | 2 | 3 | 4 | 50 | 51,
             unlock: 1 | 0,
-            correlationId: number
+            correlationId: number,
+            emitter?: { unlock: 1 | 0 }
         }
     }
 }
@@ -1019,7 +1023,44 @@ interface ResHcMerge {
         [key: string]: {
             type: 0 | 2 | 3 | 4 | 50 | 51,
             unlock: 1 | 0,
-            correlationId: number
+            correlationId: number,
+            emitter?: { unlock: 1 | 0 }
+        }
+    },
+    items: number[][]
+}
+```
+
+**配置**
+```ts
+{
+  "connet": "ws"
+}
+```
+
+---
+
+### 请求接口 出售 <a id="/hc/HcSell"></a>
+
+**路径**
+- POST `/hc/HcSell`
+
+**请求**
+```ts
+interface ReqHcSell {
+    gzid: string
+}
+```
+
+**响应**
+```ts
+interface ResHcSell {
+    list: {
+        [key: string]: {
+            type: 0 | 2 | 3 | 4 | 50 | 51,
+            unlock: 1 | 0,
+            correlationId: number,
+            emitter?: { unlock: 1 | 0 }
         }
     },
     items: number[][]

+ 22 - 0
s_to_proto/shared/admin/PtlroleData.ts

@@ -0,0 +1,22 @@
+
+
+/**
+* 请求接口
+*/
+export interface ReqroleData {
+    uuid: string;
+}
+
+/**
+* 返回信息
+*/
+export interface ResroleData {
+    order10Back: any
+}
+
+export const conf = {
+    connet: "admin"
+}
+
+
+

+ 4 - 0
s_to_proto/shared/hc/PtlHcInfo.ts

@@ -27,6 +27,10 @@ export interface HcInfoGeziInfo {
     type:HcType   //具体物品类型 0:无物品 1:发射器 2:怪物 3:装备 4:材料
     unlock:HcUnlock  //解锁状态
     correlationId:number  //物品ID
+    emitter?:{
+        unlock:HcUnlock  //解锁状态
+        
+    }
 }
 //具体物品类型
 export enum HcType {

+ 26 - 0
s_to_proto/shared/hc/PtlHcSell.ts

@@ -0,0 +1,26 @@
+import { HcInfoGeziInfo } from "./PtlHcInfo";
+
+
+/**
+* 请求接口 出售
+*/
+export interface ReqHcSell {
+    gzid:string
+}
+
+/**
+* 返回信息
+*/
+export interface ResHcSell {
+    list:{
+        [gzid: string]: HcInfoGeziInfo;
+    },
+    items:number[][]
+}
+
+export const conf = {
+    connet: "ws"
+}
+
+
+

+ 113 - 1
s_to_proto/shared/serviceProto.ts

@@ -18,6 +18,7 @@ import { ReqhuodongAdd, ReshuodongAdd } from './admin/PtlhuodongAdd';
 import { ReqhuodongDelete, ReshuodongDelete } from './admin/PtlhuodongDelete';
 import { ReqhuodongEdit, ReshuodongEdit } from './admin/PtlhuodongEdit';
 import { ReqhuodongFind, ReshuodongFind } from './admin/PtlhuodongFind';
+import { ReqroleData, ResroleData } from './admin/PtlroleData';
 import { RequpdateMail, ResupdateMail } from './admin/PtlupdateMail';
 import { RequpdateQuFu, ResupdateQuFu } from './admin/PtlupdateQuFu';
 import { RequpdateSetting, ResupdateSetting } from './admin/PtlupdateSetting';
@@ -33,6 +34,7 @@ import { ReqFightTest, ResFightTest } from './fight/PtlFightTest';
 import { ReqHcEmit, ResHcEmit } from './hc/PtlHcEmit';
 import { ReqHcInfo, ResHcInfo } from './hc/PtlHcInfo';
 import { ReqHcMerge, ResHcMerge } from './hc/PtlHcMerge';
+import { ReqHcSell, ResHcSell } from './hc/PtlHcSell';
 import { MsgHcTili_s } from './hc/server/MsgHcTili_s';
 import { ReqItemInfo, ResItemInfo } from './item/PtlItemInfo';
 import { MsgItemChange_s } from './item/server/MsgItemChange_s';
@@ -131,6 +133,10 @@ export interface ServiceType {
             req: ReqhuodongFind,
             res: ReshuodongFind
         },
+        "admin/roleData": {
+            req: ReqroleData,
+            res: ResroleData
+        },
         "admin/updateMail": {
             req: RequpdateMail,
             res: ResupdateMail
@@ -175,6 +181,10 @@ export interface ServiceType {
             req: ReqHcMerge,
             res: ResHcMerge
         },
+        "hc/HcSell": {
+            req: ReqHcSell,
+            res: ResHcSell
+        },
         "item/ItemInfo": {
             req: ReqItemInfo,
             res: ResItemInfo
@@ -246,7 +256,7 @@ export interface ServiceType {
 }
 
 export const serviceProto: ServiceProto<ServiceType> = {
-    "version": 63,
+    "version": 64,
     "services": [
         {
             "id": 39,
@@ -401,6 +411,14 @@ export const serviceProto: ServiceProto<ServiceType> = {
             }
         },
         {
+            "id": 92,
+            "name": "admin/roleData",
+            "type": "api",
+            "conf": {
+                "connet": "admin"
+            }
+        },
+        {
             "id": 44,
             "name": "admin/updateMail",
             "type": "api",
@@ -509,6 +527,14 @@ export const serviceProto: ServiceProto<ServiceType> = {
             }
         },
         {
+            "id": 92,
+            "name": "hc/HcSell",
+            "type": "api",
+            "conf": {
+                "connet": "ws"
+            }
+        },
+        {
             "id": 91,
             "name": "hc/server/HcTili_s",
             "type": "msg"
@@ -1079,6 +1105,30 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
+        "admin/PtlroleData/ReqroleData": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "uuid",
+                    "type": {
+                        "type": "String"
+                    }
+                }
+            ]
+        },
+        "admin/PtlroleData/ResroleData": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "order10Back",
+                    "type": {
+                        "type": "Any"
+                    }
+                }
+            ]
+        },
         "admin/PtlupdateMail/RequpdateMail": {
             "type": "Interface",
             "properties": [
@@ -1709,6 +1759,24 @@ export const serviceProto: ServiceProto<ServiceType> = {
                     "type": {
                         "type": "Number"
                     }
+                },
+                {
+                    "id": 3,
+                    "name": "emitter",
+                    "type": {
+                        "type": "Interface",
+                        "properties": [
+                            {
+                                "id": 0,
+                                "name": "unlock",
+                                "type": {
+                                    "type": "Reference",
+                                    "target": "hc/PtlHcInfo/HcUnlock"
+                                }
+                            }
+                        ]
+                    },
+                    "optional": true
                 }
             ]
         },
@@ -1896,6 +1964,50 @@ export const serviceProto: ServiceProto<ServiceType> = {
                 }
             ]
         },
+        "hc/PtlHcSell/ReqHcSell": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "gzid",
+                    "type": {
+                        "type": "String"
+                    }
+                }
+            ]
+        },
+        "hc/PtlHcSell/ResHcSell": {
+            "type": "Interface",
+            "properties": [
+                {
+                    "id": 0,
+                    "name": "list",
+                    "type": {
+                        "type": "Interface",
+                        "indexSignature": {
+                            "keyType": "String",
+                            "type": {
+                                "type": "Reference",
+                                "target": "hc/PtlHcInfo/HcInfoGeziInfo"
+                            }
+                        }
+                    }
+                },
+                {
+                    "id": 1,
+                    "name": "items",
+                    "type": {
+                        "type": "Array",
+                        "elementType": {
+                            "type": "Array",
+                            "elementType": {
+                                "type": "Number"
+                            }
+                        }
+                    }
+                }
+            ]
+        },
         "hc/server/MsgHcTili_s/MsgHcTili_s": {
             "type": "Interface",
             "properties": [