// 获取项目组成员列表请求参数
export interface DocumentListReqParams {
  prj_id?: string //
  page_no: number
  page_size: number
  begin_from?: string
  end_to?: string
  filename?: string
  archive?: boolean
  category_id?: string
  archived?: boolean
}

export interface PrjDocument {
  id: string
  category_id: string
  category_name: string
  filename: string
  uploaded_at: string
  prj_id?: string
  prj_name?: string
  creator_id: string
  creator_name: string
  size: number
  extension: string
  showDownloadProgress?: boolean
  downloadProgress?: number
  archived?: boolean
  editing?: boolean
}

export interface DocumentListResParams {
  page_no: number //
  page_count: number
  total: number //
  list: PrjDocument[]
}

export interface UploadDocumentReqParams {
  prj_id: string
  category_id: string
  filename: string
}

export interface UploadDocumentResParams {
  url: string
  form_data: object
  object_name: string
}

export interface DownloadDocumentReqParams {
  id: string
}

export type DownloadDocumentResParams = UploadDocumentResParams
