We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fdbd43c + 2d68562 commit 06e0a46Copy full SHA for 06e0a46
media.go
@@ -3,8 +3,9 @@ package WeChatCustomerServiceSDK
3
import (
4
"encoding/json"
5
"fmt"
6
+ "io"
7
+
8
"github.com/NICEXAI/WeChatCustomerServiceSDK/util"
- "mime/multipart"
9
)
10
11
const (
@@ -23,7 +24,7 @@ type MediaUploadOptions struct {
23
24
//文件大小
25
FileSize int64 `json:"fileSize"` // 文件大小
26
//文件内容
- File multipart.File // 文件内容
27
+ File io.Reader // 文件内容
28
}
29
30
// MediaUploadSchema 上传临时素材响应内容
util/util.go
@@ -46,7 +46,7 @@ type FileOptions struct {
46
47
48
49
50
51
52
// HttpPostFile POST上传文件
0 commit comments