feat: sftp文件上传下载优化&终端等字体统一

This commit is contained in:
meilin.huang
2022-01-28 11:30:11 +08:00
parent 8f912ead2e
commit 01216acc5d
75 changed files with 320 additions and 291 deletions

View File

@@ -1,6 +1,7 @@
package ctx
import (
"io"
"mayfly-go/base/ginx"
"mayfly-go/base/model"
"mayfly-go/base/utils/assert"
@@ -59,9 +60,9 @@ func (rc *ReqCtx) Handle(handler HandlerFunc) {
}
}
func (rc *ReqCtx) Download(data []byte, filename string) {
func (rc *ReqCtx) Download(reader io.Reader, filename string) {
rc.noRes = true
ginx.Download(rc.GinCtx, data, filename)
ginx.Download(rc.GinCtx, reader, filename)
}
// 新建请求上下文默认需要校验token