1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-03-01 00:35:26 +08:00

增加微信公众号数据统计功能 (#279)

* * fix: 移除代码中的Println

* 增加公众号数据统计

* fix code style
This commit is contained in:
Liangwt
2020-06-14 23:18:09 +08:00
committed by GitHub
parent 2ccc15b050
commit fe31f04640
9 changed files with 1017 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
package officialaccount
import (
"github.com/silenceper/wechat/v2/officialaccount/datacube"
"net/http"
"github.com/silenceper/wechat/v2/credential"
@@ -101,3 +102,8 @@ func (officialAccount *OfficialAccount) GetDevice() *device.Device {
func (officialAccount *OfficialAccount) GetBroadcast() *broadcast.Broadcast {
return broadcast.NewBroadcast(officialAccount.ctx)
}
//GetDataCube 数据统计
func (officialAccount *OfficialAccount) GetDataCube() *datacube.DataCube {
return datacube.NewCube(officialAccount.ctx)
}