From d2ce1687f25a7e479c97c2ef8f6879b5507aa771 Mon Sep 17 00:00:00 2001 From: Huarch Date: Tue, 18 Aug 2026 18:29:09 +0800 Subject: [PATCH] chore(api): sync storage cleanup contract --- contracts/manifest.json | 2 +- contracts/server-v1.openapi.json | 393 ------------------------------- src/generated/serverApi.ts | 384 ------------------------------ 3 files changed, 1 insertion(+), 778 deletions(-) diff --git a/contracts/manifest.json b/contracts/manifest.json index da521d6..cc5d561 100644 --- a/contracts/manifest.json +++ b/contracts/manifest.json @@ -7,7 +7,7 @@ }, "server": { "file": "server-v1.openapi.json", - "sha256": "df7ae927dcf5ae32c3c1ad9be3245b1b78b984ce1902dd91e6313770860e0d48" + "sha256": "ac9b6fac185dfd999f1791cba51eb482df17a427b361963250aafa5fb1a276b4" } } } diff --git a/contracts/server-v1.openapi.json b/contracts/server-v1.openapi.json index 1c05cfd..5c176bc 100644 --- a/contracts/server-v1.openapi.json +++ b/contracts/server-v1.openapi.json @@ -5227,97 +5227,6 @@ ] } }, - "/api/v1/all-redis": { - "delete": { - "description": "清空整个Redis数据库的所有缓存", - "operationId": "delete_all_redis", - "parameters": [ - { - "in": "header", - "name": "X-Project-Id", - "required": true, - "schema": { - "title": "X-Project-Id", - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Successful Response" - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Insufficient permission" - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Resource not found" - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Resource conflict" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Validation error" - }, - "503": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Dependency unavailable" - } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], - "summary": "清除所有缓存", - "tags": [ - "Cache" - ] - } - }, "/api/v1/all-scada-properties": { "get": { "description": "获取指定水网中所有SCADA点的属性信息", @@ -29452,308 +29361,6 @@ ] } }, - "/api/v1/redis": { - "get": { - "description": "获取Redis中所有的缓存键", - "operationId": "get_redis", - "parameters": [ - { - "in": "header", - "name": "X-Project-Id", - "required": true, - "schema": { - "title": "X-Project-Id", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/JsonValue" - } - } - }, - "description": "Successful Response" - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Insufficient permission" - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Resource not found" - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Resource conflict" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Validation error" - }, - "503": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Dependency unavailable" - } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], - "summary": "查询缓存键列表", - "tags": [ - "Cache" - ] - } - }, - "/api/v1/redis-keys": { - "delete": { - "description": "根据模式清除匹配的Redis缓存键", - "operationId": "delete_redis_keys", - "parameters": [ - { - "description": "缓存键模式(支持通配符)", - "in": "query", - "name": "keys", - "required": true, - "schema": { - "description": "缓存键模式(支持通配符)", - "title": "Keys", - "type": "string" - } - }, - { - "in": "header", - "name": "X-Project-Id", - "required": true, - "schema": { - "title": "X-Project-Id", - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Successful Response" - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Insufficient permission" - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Resource not found" - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Resource conflict" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Validation error" - }, - "503": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Dependency unavailable" - } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], - "summary": "清除匹配的缓存键", - "tags": [ - "Cache" - ] - } - }, - "/api/v1/redis-keys/detail": { - "delete": { - "description": "根据键名清除单个Redis缓存", - "operationId": "delete_redis_keys_detail", - "parameters": [ - { - "description": "缓存键名", - "in": "query", - "name": "key", - "required": true, - "schema": { - "description": "缓存键名", - "title": "Key", - "type": "string" - } - }, - { - "in": "header", - "name": "X-Project-Id", - "required": true, - "schema": { - "title": "X-Project-Id", - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Successful Response" - }, - "401": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Authentication required" - }, - "403": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Insufficient permission" - }, - "404": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Resource not found" - }, - "409": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Resource conflict" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Validation error" - }, - "503": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProblemDetails" - } - } - }, - "description": "Dependency unavailable" - } - }, - "security": [ - { - "OAuth2PasswordBearer": [] - } - ], - "summary": "清除单个缓存键", - "tags": [ - "Cache" - ] - } - }, "/api/v1/redos": { "post": { "description": "重做网络上被撤销的操作", diff --git a/src/generated/serverApi.ts b/src/generated/serverApi.ts index 2dadb51..c1485e2 100644 --- a/src/generated/serverApi.ts +++ b/src/generated/serverApi.ts @@ -305,26 +305,6 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v1/all-redis": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** - * 清除所有缓存 - * @description 清空整个Redis数据库的所有缓存 - */ - delete: operations["delete_all_redis"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/api/v1/all-scada-properties": { parameters: { query?: never; @@ -3836,66 +3816,6 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v1/redis": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - /** - * 查询缓存键列表 - * @description 获取Redis中所有的缓存键 - */ - get: operations["get_redis"]; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/v1/redis-keys": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** - * 清除匹配的缓存键 - * @description 根据模式清除匹配的Redis缓存键 - */ - delete: operations["delete_redis_keys"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/v1/redis-keys/detail": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post?: never; - /** - * 清除单个缓存键 - * @description 根据键名清除单个Redis缓存 - */ - delete: operations["delete_redis_keys_detail"]; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; "/api/v1/redos": { parameters: { query?: never; @@ -10031,80 +9951,6 @@ export interface operations { }; }; }; - delete_all_redis: { - parameters: { - query?: never; - header: { - "X-Project-Id": string; - }; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Successful Response */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Authentication required */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Insufficient permission */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Resource not found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Resource conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Validation error */ - 422: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Dependency unavailable */ - 503: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; get_all_scada_properties: { parameters: { query?: { @@ -27214,236 +27060,6 @@ export interface operations { }; }; }; - get_redis: { - parameters: { - query?: never; - header: { - "X-Project-Id": string; - }; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Successful Response */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["JsonValue"]; - }; - }; - /** @description Authentication required */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Insufficient permission */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Resource not found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Resource conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Validation error */ - 422: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Dependency unavailable */ - 503: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - delete_redis_keys: { - parameters: { - query: { - /** @description 缓存键模式(支持通配符) */ - keys: string; - }; - header: { - "X-Project-Id": string; - }; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Successful Response */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Authentication required */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Insufficient permission */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Resource not found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Resource conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Validation error */ - 422: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Dependency unavailable */ - 503: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - delete_redis_keys_detail: { - parameters: { - query: { - /** @description 缓存键名 */ - key: string; - }; - header: { - "X-Project-Id": string; - }; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description Successful Response */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - /** @description Authentication required */ - 401: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Insufficient permission */ - 403: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Resource not found */ - 404: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Resource conflict */ - 409: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Validation error */ - 422: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - /** @description Dependency unavailable */ - 503: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; post_redos: { parameters: { query?: never;