You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
927 B
45 lines
927 B
|
1 week ago
|
import request from '@/config/axios'
|
||
|
|
import type { CommonResult } from './types'
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 录音相关类型定义
|
||
|
|
*/
|
||
|
|
|
||
|
|
// 录音信息
|
||
|
|
export interface SoundRecord {
|
||
|
|
id?: string
|
||
|
|
orgId?: string
|
||
|
|
groupId?: string
|
||
|
|
userId?: string
|
||
|
|
startDate?: string
|
||
|
|
[key: string]: any
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查询录音列表参数
|
||
|
|
export interface RecordListParams {
|
||
|
|
pageNo?: number
|
||
|
|
pageSize?: number
|
||
|
|
[key: string]: any
|
||
|
|
}
|
||
|
|
|
||
|
|
// 查询录音参数
|
||
|
|
export interface QuerySoundRecordParams {
|
||
|
|
orgId?: string
|
||
|
|
groupId?: string
|
||
|
|
startDate?: string
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 录音相关接口
|
||
|
|
*/
|
||
|
|
|
||
|
|
// 查询录音列表
|
||
|
|
export const getRecordList = (params: RecordListParams) => {
|
||
|
|
return request.get<CommonResult>({ url: '/interphone/open-api/record/list', params })
|
||
|
|
}
|
||
|
|
|
||
|
|
// 录音查询
|
||
|
|
export const querySoundRecord = (params: QuerySoundRecordParams) => {
|
||
|
|
return request.get<CommonResult>({ url: '/interphone/open-api/soundRecord/querySoundRecord', params })
|
||
|
|
}
|