go-common/app/admin/main/mcn/model/formatter.go

17 lines
311 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package model
import "encoding/csv"
//CsvFormatter CsvFormatter
type CsvFormatter interface {
GetFileName() string
// ToCsv do not call flush
ToCsv(writer *csv.Writer)
}
//ExportArgInterface export interface
type ExportArgInterface interface {
// ExportFormat options: json, csv
ExportFormat() string
}