zhangwei
2025-08-15 7339b8a9ccf09e6262cb71ac6c9b724cdfa6fe22
src/api/types.ts
@@ -4,6 +4,18 @@
  code: string | number;
  message: string;
};
type page = {
  items: Array<any>;
  total: number;
  pageSize: number;
  page: number;
};
export type PageResult = {
  success: boolean;
  result: page;
  code: string | number;
  message: string;
};
type captchaImg = {
  expirySeconds: number;
@@ -12,6 +24,25 @@
  id: string;
};
type getUploadToken = {
  policy: string;
  message: string;
  DirPath: string;
  id: string;
  x_oss_signature_version: string;
  x_oss_credential: string;
  x_oss_date: string;
  signature: string;
  security_token: string;
  url: string;
};
export type getUploadTokenResult = {
  success: boolean;
  result: getUploadToken;
  code: string | number;
};
export type CaptchaResult = {
  success: boolean;
  result: captchaImg;