chore: replace all cn comments to en version by volc api (#313)
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
struct DocTableSheet {
|
||||
1: i64 id; // sheet 的编号
|
||||
2: string sheet_name; // sheet 名
|
||||
3: i64 total_row; // 总行数
|
||||
1: i64 id; // Number of sheet
|
||||
2: string sheet_name; // Sheet name
|
||||
3: i64 total_row; // total number of rows
|
||||
}
|
||||
|
||||
enum ColumnType {
|
||||
Unknown = 0
|
||||
Text = 1 // 文本
|
||||
Number = 2 // 数字
|
||||
Date = 3 // 时间
|
||||
Text = 1 // Text
|
||||
Number = 2 // number
|
||||
Date = 3 // time
|
||||
Float = 4 // float
|
||||
Boolean = 5 // bool
|
||||
Image = 6 // 图片
|
||||
Image = 6 // picture
|
||||
}
|
||||
|
||||
// 表格的列信息
|
||||
// Table column information
|
||||
struct DocTableColumn {
|
||||
1: i64 id(agw.js_conv="str", api.js_conv="true", api.body="id"); // 列 id
|
||||
2: string column_name; // 列名
|
||||
3: bool is_semantic; // 是否为语义匹配列
|
||||
4: i64 sequence(agw.js_conv="str", api.js_conv="true", api.body="sequence"); // 列原本在 excel 的序号
|
||||
5: optional ColumnType column_type; // 列类型
|
||||
1: i64 id(agw.js_conv="str", api.js_conv="true", api.body="id"); // Column ID
|
||||
2: string column_name; // column_name
|
||||
3: bool is_semantic; // Is it a semantically matched column?
|
||||
4: i64 sequence(agw.js_conv="str", api.js_conv="true", api.body="sequence"); // List the serial number originally in excel
|
||||
5: optional ColumnType column_type; // column type
|
||||
6: optional bool contains_empty_value
|
||||
7: optional string desc; // 描述
|
||||
7: optional string desc; // describe
|
||||
}
|
||||
@@ -3,11 +3,11 @@ include "common.thrift"
|
||||
|
||||
namespace go knowledge.document
|
||||
|
||||
// 获取表格结构、预览数据
|
||||
// Get table structure, preview data
|
||||
struct GetDocumentTableInfoRequest {
|
||||
2: optional string tos_uri; // 如果为第一次本地文件上传的表格,传递该值
|
||||
3: optional i64 document_id(agw.js_conv="str", api.js_conv="true", api.body="document_id"); // 如果为已有 document 的表格,传递该值
|
||||
4: i64 creator_id; // 创建人[http接口不需要传递]
|
||||
2: optional string tos_uri; // If the table is uploaded for the first local file, pass the value
|
||||
3: optional i64 document_id(agw.js_conv="str", api.js_conv="true", api.body="document_id"); // If it is a document with an existing table, pass the value
|
||||
4: i64 creator_id; // Creator [http interface does not need to be passed]
|
||||
255: optional base.Base Base
|
||||
}
|
||||
|
||||
@@ -25,8 +25,8 @@ struct GetTableSchemaInfoResponse {
|
||||
1: i32 code
|
||||
2: string msg
|
||||
3: list<common.DocTableSheet> sheet_list
|
||||
4: list<common.DocTableColumn> table_meta // 选中的 sheet 的 schema, 不选择默认返回第一个 sheet
|
||||
5: list<map<i64,string>> preview_data(agw.js_conv="str", agw.key="preview_data") // knowledge table 场景中会返回
|
||||
4: list<common.DocTableColumn> table_meta // The schema of the selected sheet, not selected to return the first sheet by default
|
||||
5: list<map<i64,string>> preview_data(agw.js_conv="str", agw.key="preview_data") // The knowledge table will return
|
||||
|
||||
255: optional base.BaseResp BaseResp(api.none="true")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user