feat(equipment): 设备列表升级 v6 接口并接入取消配对

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-08-25 13:51:15 +08:00
co-authored by Claude Opus 4.7
parent 5572c2212a
commit 2e07a7fcee
4 changed files with 48 additions and 11 deletions
+9
View File
@@ -74,3 +74,12 @@ export const put = <T = any>(
data?: Record<string, any>,
options?: RequestOptions,
): Promise<ApiResponse<T>> => request<T>(url, data, 'PUT', options)
export const del = <T = any>(
url: string,
data?: Record<string, any>,
options?: RequestOptions,
): Promise<ApiResponse<T>> => request<T>(url, data, 'DELETE', {
contentType: 'application/x-www-form-urlencoded',
...options,
})
+1 -1
View File
@@ -6,7 +6,7 @@ export interface ApiResponse<T = any> {
result: T
}
export type HttpMethod = 'GET' | 'POST' | 'PUT'
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE'
export interface RequestOptions {
loading?: boolean