httpExportExcel

package
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 15 Imported by: 0

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL