feat(equipment): 设备列表升级 v6 接口并接入取消配对
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
5572c2212a
commit
2e07a7fcee
@@ -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,
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user