50 lines
903 B
TypeScript
50 lines
903 B
TypeScript
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');
|
|
}
|