mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-07 00:52:57 +08:00
大量更改,主要是int,float类型支持null、字符串
This commit is contained in:
@@ -22,6 +22,16 @@ type Col struct {
|
||||
Decode func(value any) (any, error) //实现类型、值的替换
|
||||
}
|
||||
|
||||
// 定义编码接口
|
||||
type Encode interface {
|
||||
String() string
|
||||
}
|
||||
|
||||
// // 定义解码接口
|
||||
// type Decode interface {
|
||||
// MarshalJSON() ([]byte, error)
|
||||
// }
|
||||
|
||||
// 下载
|
||||
func DownLoadExcel(fileName string, res http.ResponseWriter, file *excelize.File) {
|
||||
// 设置响应头
|
||||
|
Reference in New Issue
Block a user