Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticsearchExport ¶
type ElasticsearchExport struct {
*elasticModel.EsScroll
FileType string // 文件类型 (excel/csv)
FileName string // 文件名
ExportHeader map[string]string // 字段名映射
}
ElasticsearchExport 用于导出Elasticsearch数据的结构体
func (*ElasticsearchExport) Response ¶
func (e *ElasticsearchExport) Response(ctx context.Context, w http.ResponseWriter) error
Response 导出Elasticsearch数据到HTTP响应
type RowsExport ¶
type RowsExport struct {
DB *gorm.DB
FileType exportkit.ExportType
FileName string
ExportHeader map[string]string
}
func (*RowsExport) Response ¶
func (e *RowsExport) Response(w http.ResponseWriter) error
Click to show internal directories.
Click to hide internal directories.