Skip to content

Commit fab754f

Browse files
committed
Merge branch 'main' of github.com:NICEXAI/WeChatCustomerServiceSDK into main
2 parents ad30cb4 + 06e0a46 commit fab754f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

media.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package WeChatCustomerServiceSDK
33
import (
44
"encoding/json"
55
"fmt"
6+
"io"
7+
68
"github.com/NICEXAI/WeChatCustomerServiceSDK/util"
7-
"mime/multipart"
89
)
910

1011
const (
@@ -23,7 +24,7 @@ type MediaUploadOptions struct {
2324
//文件大小
2425
FileSize int64 `json:"fileSize"` // 文件大小
2526
//文件内容
26-
File multipart.File // 文件内容
27+
File io.Reader // 文件内容
2728
}
2829

2930
// MediaUploadSchema 上传临时素材响应内容

util/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type FileOptions struct {
4646
//文件大小
4747
FileSize int64 `json:"fileSize"` // 文件大小
4848
//文件内容
49-
File multipart.File // 文件内容
49+
File io.Reader // 文件内容
5050
}
5151

5252
// HttpPostFile POST上传文件

0 commit comments

Comments
 (0)