File tree 17 files changed +20
-20
lines changed
17 files changed +20
-20
lines changed Original file line number Diff line number Diff line change 4
4
"fmt"
5
5
"strconv"
6
6
7
- "github.com/xen0n/go-workwx"
7
+ "github.com/xen0n/go-workwx/v2 "
8
8
9
9
"github.com/urfave/cli/v2"
10
10
)
Original file line number Diff line number Diff line change 5
5
6
6
"github.com/urfave/cli/v2"
7
7
8
- "github.com/xen0n/go-workwx"
8
+ "github.com/xen0n/go-workwx/v2 "
9
9
)
10
10
11
11
func cmdSendMessage (c * cli.Context ) error {
Original file line number Diff line number Diff line change 6
6
7
7
"github.com/urfave/cli/v2"
8
8
9
- "github.com/xen0n/go-workwx"
9
+ "github.com/xen0n/go-workwx/v2 "
10
10
)
11
11
12
12
func cmdUploadTempMedia (c * cli.Context ) error {
Original file line number Diff line number Diff line change 5
5
6
6
"github.com/urfave/cli/v2"
7
7
8
- "github.com/xen0n/go-workwx"
8
+ "github.com/xen0n/go-workwx/v2 "
9
9
)
10
10
11
11
func cmdWebhookSendMessage (c * cli.Context ) error {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package commands
3
3
import (
4
4
"github.com/urfave/cli/v2"
5
5
6
- "github.com/xen0n/go-workwx"
6
+ "github.com/xen0n/go-workwx/v2 "
7
7
)
8
8
9
9
// InitApp defines the workwxctl CLI.
Original file line number Diff line number Diff line change 7
7
8
8
"github.com/urfave/cli/v2"
9
9
10
- "github.com/xen0n/go-workwx"
10
+ "github.com/xen0n/go-workwx/v2 "
11
11
)
12
12
13
13
const (
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package main
3
3
import (
4
4
"os"
5
5
6
- "github.com/xen0n/go-workwx/cmd/workwxctl/commands"
6
+ "github.com/xen0n/go-workwx/v2/ cmd/workwxctl/commands"
7
7
)
8
8
9
9
func main () {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package workwx
3
3
import (
4
4
"fmt"
5
5
6
- "github.com/xen0n/go-workwx/errcodes"
6
+ "github.com/xen0n/go-workwx/v2/ errcodes"
7
7
)
8
8
9
9
// WorkwxClientError 企业微信客户端 SDK 的响应错误
Original file line number Diff line number Diff line change 5
5
"strconv"
6
6
"time"
7
7
8
- "github.com/xen0n/go-workwx"
8
+ "github.com/xen0n/go-workwx/v2 "
9
9
)
10
10
11
11
const (
Original file line number Diff line number Diff line change 7
7
"fmt"
8
8
"net/http"
9
9
10
- "github.com/xen0n/go-workwx"
10
+ "github.com/xen0n/go-workwx/v2 "
11
11
)
12
12
13
13
type dummyRxMessageHandler struct {}
Original file line number Diff line number Diff line change 1
- module github.com/xen0n/go-workwx
1
+ module github.com/xen0n/go-workwx/v2
2
2
3
3
go 1.17
4
4
Original file line number Diff line number Diff line change 9
9
"errors"
10
10
"io"
11
11
12
- "github.com/xen0n/go-workwx/internal/lowlevel/pkcs7"
12
+ "github.com/xen0n/go-workwx/v2/ internal/lowlevel/pkcs7"
13
13
)
14
14
15
15
type WorkwxPayload struct {
Original file line number Diff line number Diff line change 9
9
"net/url"
10
10
"strconv"
11
11
12
- "github.com/xen0n/go-workwx/internal/lowlevel/encryptor"
13
- "github.com/xen0n/go-workwx/internal/lowlevel/signature"
12
+ "github.com/xen0n/go-workwx/v2/ internal/lowlevel/encryptor"
13
+ "github.com/xen0n/go-workwx/v2/ internal/lowlevel/signature"
14
14
)
15
15
16
16
type Processor struct {
Original file line number Diff line number Diff line change 6
6
"net/url"
7
7
"strconv"
8
8
9
- "github.com/xen0n/go-workwx/internal/lowlevel/signature"
9
+ "github.com/xen0n/go-workwx/v2/ internal/lowlevel/signature"
10
10
)
11
11
12
12
type ToEchoTestAPIArgs interface {
Original file line number Diff line number Diff line change 4
4
"io/ioutil"
5
5
"net/http"
6
6
7
- "github.com/xen0n/go-workwx/internal/lowlevel/envelope"
7
+ "github.com/xen0n/go-workwx/v2/ internal/lowlevel/envelope"
8
8
)
9
9
10
10
type EnvelopeHandler interface {
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ package httpapi
3
3
import (
4
4
"net/http"
5
5
6
- "github.com/xen0n/go-workwx/internal/lowlevel/encryptor"
7
- "github.com/xen0n/go-workwx/internal/lowlevel/envelope"
6
+ "github.com/xen0n/go-workwx/v2/ internal/lowlevel/encryptor"
7
+ "github.com/xen0n/go-workwx/v2/ internal/lowlevel/envelope"
8
8
)
9
9
10
10
type LowlevelHandler struct {
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ package workwx
3
3
import (
4
4
"net/http"
5
5
6
- "github.com/xen0n/go-workwx/internal/lowlevel/envelope"
7
- "github.com/xen0n/go-workwx/internal/lowlevel/httpapi"
6
+ "github.com/xen0n/go-workwx/v2/ internal/lowlevel/envelope"
7
+ "github.com/xen0n/go-workwx/v2/ internal/lowlevel/httpapi"
8
8
)
9
9
10
10
// RxMessageHandler 用来接收消息的接口。
You can’t perform that action at this time.
0 commit comments