新增耳机阻抗
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
import { request } from '../request';
|
||||
import type { PageParams } from './brand';
|
||||
|
||||
export function fetchGetHeadphoneImpedanceList(
|
||||
params?: PageParams & {
|
||||
mac_addr?: string;
|
||||
device_model?: string;
|
||||
headphone_brand?: string;
|
||||
headphone_model?: string;
|
||||
}
|
||||
) {
|
||||
return request<Api.Common.PageResult<Api.HeadphoneImpedance.Item>>({
|
||||
url: '/headphone-impedance/',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchGetHeadphoneImpedance(id: number) {
|
||||
return request<Api.HeadphoneImpedance.Item>({
|
||||
url: `/headphone-impedance/${id}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchCreateHeadphoneImpedance(data: Record<string, unknown>) {
|
||||
return request<Api.HeadphoneImpedance.Item>({
|
||||
url: '/headphone-impedance/',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchUpdateHeadphoneImpedance(id: number, data: Record<string, unknown>) {
|
||||
return request<Api.HeadphoneImpedance.Item>({
|
||||
url: `/headphone-impedance/${id}`,
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchDeleteHeadphoneImpedance(id: number) {
|
||||
return request({
|
||||
url: `/headphone-impedance/${id}`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
@@ -6,6 +6,7 @@ export * from './user';
|
||||
export * from './ota';
|
||||
export * from './blacklist';
|
||||
export * from './ota-target-device';
|
||||
export * from './headphone-impedance';
|
||||
export * from './share-code-log';
|
||||
export * from './model';
|
||||
export * from './meilisearch';
|
||||
|
||||
Reference in New Issue
Block a user