提交 6a77fc2d authored 作者: mooncake9527's avatar mooncake9527

update

上级 9a9201db
...@@ -107,7 +107,7 @@ func (x *CSVExporter[T]) Upload() *CSVExporter[T] { ...@@ -107,7 +107,7 @@ func (x *CSVExporter[T]) Upload() *CSVExporter[T] {
return x return x
} }
func (x *CSVExporter[T]) WriteToGin(c *gin.Context) *CSVExporter[T] { func (x *CSVExporter[T]) writeToGin(c *gin.Context) *CSVExporter[T] {
if x.err != nil { if x.err != nil {
return x return x
} }
...@@ -122,7 +122,7 @@ func (x *CSVExporter[T]) WriteToGin(c *gin.Context) *CSVExporter[T] { ...@@ -122,7 +122,7 @@ func (x *CSVExporter[T]) WriteToGin(c *gin.Context) *CSVExporter[T] {
return x return x
} }
func (x *CSVExporter[T]) WriteToCtx(ctx context.Context) *CSVExporter[T] { func (x *CSVExporter[T]) WriteToReply(ctx context.Context) *CSVExporter[T] {
if x.err != nil { if x.err != nil {
return x return x
} }
...@@ -131,7 +131,7 @@ func (x *CSVExporter[T]) WriteToCtx(ctx context.Context) *CSVExporter[T] { ...@@ -131,7 +131,7 @@ func (x *CSVExporter[T]) WriteToCtx(ctx context.Context) *CSVExporter[T] {
x.err = err x.err = err
return x return x
} }
return x.WriteToGin(c) return x.writeToGin(c)
} }
func (x *CSVExporter[T]) Err() error { func (x *CSVExporter[T]) Err() error {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论