handlers

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadExcelFileByColumn

func ReadExcelFileByColumn(w http.ResponseWriter, r *http.Request)

ReadExcelFileByColumn read a given excel file column by column and return every data into JSON format Max excel size is 60mb @Summary Read Excel file column by column @Description transform given Excel file to JSON @Tags Readers @Accept mpfd @Produce json @Param file body string true "The Excel file to convert" @Param options body models.ReaderOption false "Reader optional options" @Success 200 {object} services.Output @Failure 400 {string} string @Router /read/columns [post]

func ReadExcelFileByLine

func ReadExcelFileByLine(w http.ResponseWriter, r *http.Request)

ReadExcelFileByLine read a given excel file line by line and return every data into JSON format Max excel size is 60mb @Summary Read Excel file line by line @Description transform given Excel file to JSON @Tags Readers @Accept mpfd @Produce json @Param file body string true "The Excel file to convert" @Param options body models.ReaderOption false "Reader optional options" @Success 200 {object} services.Output @Failure 400 {string} string @Router /read/lines [post]

func WriteExcelFile

func WriteExcelFile(w http.ResponseWriter, r *http.Request)

WriteExcelFile write an Excel file with the JSON input passed through HTTP POST method @Summary Write Excel file @Description transform JSON to Excel file @Tags Writers @Accept json @Param file body models.File true "Items you want to convert into an Excel file" @Produce octet-stream @Success 201 {string} string @Failure 422 {string} string @Router /write [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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