feat: init
This commit is contained in:
49
src/api/profile.ts
Normal file
49
src/api/profile.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
import axios from 'axios'
|
||||
|
||||
export interface ProfileBasicRes {
|
||||
status: number
|
||||
video: {
|
||||
mode: string
|
||||
acquisition: {
|
||||
resolution: string
|
||||
frameRate: number
|
||||
}
|
||||
encoding: {
|
||||
resolution: string
|
||||
rate: {
|
||||
min: number
|
||||
max: number
|
||||
default: number
|
||||
}
|
||||
frameRate: number
|
||||
profile: string
|
||||
}
|
||||
}
|
||||
audio: {
|
||||
mode: string
|
||||
acquisition: {
|
||||
channels: number
|
||||
}
|
||||
encoding: {
|
||||
channels: number
|
||||
rate: number
|
||||
profile: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function queryProfileBasic() {
|
||||
return axios.get<ProfileBasicRes>('/api/profile/basic')
|
||||
}
|
||||
|
||||
export type operationLogRes = Array<{
|
||||
key: string
|
||||
contentNumber: string
|
||||
updateContent: string
|
||||
status: number
|
||||
updateTime: string
|
||||
}>
|
||||
|
||||
export function queryOperationLog() {
|
||||
return axios.get<operationLogRes>('/api/operation/log')
|
||||
}
|
||||
Reference in New Issue
Block a user