mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
* chore: implement import csv ui * feat: support importing CSV --------- Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
18 lines
370 B
Rust
18 lines
370 B
Rust
use collab_folder::core::ViewLayout;
|
|
|
|
#[derive(Clone, Debug)]
|
|
pub enum ImportType {
|
|
HistoryDocument = 0,
|
|
HistoryDatabase = 1,
|
|
CSV = 2,
|
|
}
|
|
|
|
#[derive(Clone, Debug)]
|
|
pub struct ImportParams {
|
|
pub parent_view_id: String,
|
|
pub name: String,
|
|
pub data: Option<Vec<u8>>,
|
|
pub file_path: Option<String>,
|
|
pub view_layout: ViewLayout,
|
|
pub import_type: ImportType,
|
|
}
|