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

企业会话存档只在linux平台支持 (#447)

This commit is contained in:
silenceper
2021-08-26 18:51:30 +08:00
committed by GitHub
parent 80d91d8316
commit 3cfa9e6c71
2 changed files with 24 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
// +build linux
//Package msgaudit only for linux
package msgaudit
// #cgo LDFLAGS: -L${SRCDIR}/lib -lWeWorkFinanceSdk_C
@@ -7,9 +10,10 @@ package msgaudit
import "C"
import (
"encoding/json"
"unsafe"
"github.com/silenceper/wechat/v2/util"
"github.com/silenceper/wechat/v2/work/config"
"unsafe"
)
// Client 会话存档

View File

@@ -0,0 +1,19 @@
// +build !linux
//Package msgaudit for unsupport platform
package msgaudit
import (
"fmt"
"github.com/silenceper/wechat/v2/work/config"
)
// Client 会话存档
type Client struct {
}
// NewClient new
func NewClient(cfg *config.Config) (*Client, error) {
return nil, fmt.Errorf("会话存档功能目前只支持Linux平台运行")
}