profile.ts 903 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import axios from 'axios';
  2. export interface ProfileBasicRes {
  3. status: number;
  4. video: {
  5. mode: string;
  6. acquisition: {
  7. resolution: string;
  8. frameRate: number;
  9. };
  10. encoding: {
  11. resolution: string;
  12. rate: {
  13. min: number;
  14. max: number;
  15. default: number;
  16. };
  17. frameRate: number;
  18. profile: string;
  19. };
  20. };
  21. audio: {
  22. mode: string;
  23. acquisition: {
  24. channels: number;
  25. };
  26. encoding: {
  27. channels: number;
  28. rate: number;
  29. profile: string;
  30. };
  31. };
  32. }
  33. export function queryProfileBasic() {
  34. return axios.get<ProfileBasicRes>('/api/profile/basic');
  35. }
  36. export type operationLogRes = Array<{
  37. key: string;
  38. contentNumber: string;
  39. updateContent: string;
  40. status: number;
  41. updateTime: string;
  42. }>;
  43. export function queryOperationLog() {
  44. return axios.get<operationLogRes>('/api/operation/log');
  45. }