新增耳机阻抗

This commit is contained in:
eafonyang
2026-08-17 15:41:32 +08:00
parent 19ea48ffc8
commit acd3d4b92c
15 changed files with 733 additions and 0 deletions
@@ -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';