mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-09-18 09:16:40 +08:00
27 lines
696 B
Go
27 lines
696 B
Go
// Package comp
|
|
// @Link https://github.com/bufanyun/hotgo
|
|
// @Copyright Copyright (c) 2023 HotGo CLI
|
|
// @Author Ms <133814250@qq.com>
|
|
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
|
package comp
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"github.com/gogf/gf/v2/net/ghttp"
|
|
)
|
|
|
|
// ImportExcelReq 导入Excel
|
|
type ImportExcelReq struct {
|
|
g.Meta `path:"/comp/importExcel" method:"post" tags:"功能案例" summary:"导入Excel"`
|
|
File *ghttp.UploadFile `json:"file" type:"file" dc:"分片文件"`
|
|
}
|
|
|
|
type ImportExcelSheet struct {
|
|
Sheet string `json:"sheet"`
|
|
Rows [][]string `json:"rows"`
|
|
}
|
|
|
|
type ImportExcelRes struct {
|
|
Sheets []*ImportExcelSheet `json:"sheets"`
|
|
}
|