1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-08 06:32:27 +08:00

material add BatchGetMaterial (#258)

* material add BatchGetMaterial

1. fix material golint error

2. BatchGetMaterial use util.DecodeWithError check error

Co-authored-by: hewen <hewen@liao.com>
This commit is contained in:
hewen
2020-05-28 16:20:22 +08:00
committed by GitHub
parent 8762af2441
commit 843ed3fa8a
2 changed files with 94 additions and 4 deletions

View File

@@ -530,6 +530,17 @@ type Config struct {
[素材管理API](https://godoc.org/github.com/silenceper/wechat/material#Material)
### 批量获取永久素材
```go
list, err := wc.GetMaterial().BatchGetMaterial(material.PermanentMaterialTypeNews, 0, 10)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(list)
```
## 小程序开发
获取小程序操作对象