From 6bdcf67f824fbf7d6085e115c60289b064a7544e Mon Sep 17 00:00:00 2001 From: linxm <312637218@qq.com> Date: Wed, 20 Dec 2023 14:56:14 +0800 Subject: [PATCH] =?UTF-8?q?OAuth2=E7=94=A8=E6=88=B7=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=A2=9E=E5=8A=A0ResultOAuthUserDet?= =?UTF-8?q?ail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++ corp/addrbook/department.go | 4 +-- corp/addrbook/department_test.go | 4 +-- corp/addrbook/export.go | 4 +-- corp/addrbook/export_test.go | 4 +-- corp/addrbook/sync.go | 4 +-- corp/addrbook/sync_test.go | 4 +-- corp/addrbook/tag.go | 4 +-- corp/addrbook/tag_test.go | 4 +-- corp/addrbook/user.go | 4 +-- corp/addrbook/user_test.go | 4 +-- corp/agent/agent.go | 4 +-- corp/agent/agent_test.go | 4 +-- corp/agent/menu.go | 4 +-- corp/agent/menu_test.go | 4 +-- corp/agent/template.go | 4 +-- corp/agent/template_test.go | 4 +-- corp/corp.go | 10 +++---- corp/corp_test.go | 6 ++--- corp/corpgroup/corpgroup.go | 4 +-- corp/corpgroup/cropgroup_test.go | 4 +-- corp/externalcontact/attachment.go | 4 +-- corp/externalcontact/attachment_test.go | 6 ++--- corp/externalcontact/contact_way.go | 4 +-- corp/externalcontact/contact_way_test.go | 4 +-- corp/externalcontact/customer.go | 4 +-- corp/externalcontact/customer_test.go | 4 +-- corp/externalcontact/groupchat.go | 4 +-- corp/externalcontact/groupchat_test.go | 4 +-- corp/externalcontact/groupmsg.go | 6 ++--- corp/externalcontact/groupmsg_test.go | 6 ++--- corp/externalcontact/intercept_rule.go | 4 +-- corp/externalcontact/intercept_rule_test.go | 4 +-- corp/externalcontact/moment.go | 6 ++--- corp/externalcontact/moment_test.go | 6 ++--- corp/externalcontact/product_album.go | 4 +-- corp/externalcontact/product_album_test.go | 4 +-- corp/externalcontact/statistic.go | 4 +-- corp/externalcontact/statistic_test.go | 4 +-- corp/externalcontact/strategy.go | 4 +-- corp/externalcontact/strategy_test.go | 4 +-- corp/externalcontact/tag.go | 4 +-- corp/externalcontact/tag_test.go | 4 +-- corp/externalcontact/transfer.go | 4 +-- corp/externalcontact/transfer_test.go | 4 +-- corp/invoice/reimburse.go | 4 +-- corp/invoice/reimburse_test.go | 4 +-- corp/jsapi/signature.go | 2 +- corp/jsapi/ticket.go | 4 +-- corp/jsapi/ticket_test.go | 4 +-- corp/kf/account.go | 4 +-- corp/kf/account_test.go | 4 +-- corp/kf/customer.go | 4 +-- corp/kf/customer_test.go | 4 +-- corp/kf/message.go | 6 ++--- corp/kf/message_test.go | 6 ++--- corp/kf/servicer.go | 4 +-- corp/kf/servicer_test.go | 4 +-- corp/linkedcorp/agent.go | 4 +-- corp/linkedcorp/agent_test.go | 4 +-- corp/linkedcorp/department.go | 4 +-- corp/linkedcorp/department_test.go | 4 +-- corp/linkedcorp/user.go | 4 +-- corp/linkedcorp/user_test.go | 4 +-- corp/media/media.go | 4 +-- corp/media/media_test.go | 6 ++--- corp/message/appchat.go | 6 ++--- corp/message/appchat_test.go | 4 +-- corp/message/externalcontact.go | 6 ++--- corp/message/externalcontact_test.go | 4 +-- corp/message/linkedcorp.go | 6 ++--- corp/message/linkedcorp_test.go | 4 +-- corp/message/message.go | 6 ++--- corp/message/message_test.go | 4 +-- corp/message/reply.go | 4 +-- corp/message/template_card.go | 4 +-- corp/message/template_card_test.go | 4 +-- corp/msgaudit/msgaudit.go | 4 +-- corp/msgaudit/msgaudit_test.go | 4 +-- corp/oa/approval.go | 4 +-- corp/oa/approval_test.go | 4 +-- corp/oa/checkin.go | 4 +-- corp/oa/checkin_test.go | 4 +-- corp/oa/journal.go | 4 +-- corp/oa/journal_test.go | 4 +-- corp/oa/meeting_room.go | 4 +-- corp/oa/meeting_room_test.go | 4 +-- corp/oa/pstncc.go | 4 +-- corp/oa/pstncc_test.go | 4 +-- corp/oa/vacation.go | 4 +-- corp/oa/vacation_test.go | 4 +-- corp/oauth.go | 29 ++++++++++++++++++--- corp/oauth_test.go | 2 +- corp/payment/external_pay.go | 4 +-- corp/payment/external_pay_test.go | 4 +-- corp/report/cata.go | 4 +-- corp/report/cata_test.go | 4 +-- corp/report/grid.go | 4 +-- corp/report/grid_test.go | 4 +-- corp/report/patrol.go | 4 +-- corp/report/patrol_test.go | 4 +-- corp/report/resident.go | 4 +-- corp/report/resident_test.go | 4 +-- corp/report/sitecode.go | 4 +-- corp/report/sitecode_test.go | 4 +-- corp/school/department.go | 4 +-- corp/school/department_test.go | 4 +-- corp/school/externalcontact.go | 4 +-- corp/school/externalcontact_test.go | 4 +-- corp/school/health.go | 4 +-- corp/school/health_test.go | 4 +-- corp/school/living.go | 4 +-- corp/school/living_test.go | 4 +-- corp/school/parent.go | 4 +-- corp/school/parent_test.go | 4 +-- corp/school/payment.go | 4 +-- corp/school/payment_test.go | 4 +-- corp/school/student.go | 4 +-- corp/school/student_test.go | 4 +-- corp/school/user.go | 4 +-- corp/school/user_test.go | 4 +-- corp/tools/calendar.go | 4 +-- corp/tools/calendar_test.go | 4 +-- corp/tools/dial.go | 4 +-- corp/tools/dial_test.go | 4 +-- corp/tools/living.go | 4 +-- corp/tools/living_test.go | 4 +-- corp/tools/schedule.go | 4 +-- corp/tools/schedule_test.go | 4 +-- corp/tools/wedrive.go | 4 +-- corp/tools/wedrive_test.go | 4 +-- event/crypto.go | 2 +- event/crypto_test.go | 2 +- event/reply.go | 2 +- go.mod | 7 ++--- go.sum | 14 +++++----- mch/corp.go | 4 +-- mch/corp_test.go | 4 +-- mch/mch.go | 4 +-- mch/mch_test.go | 4 +-- mch/micro.go | 4 +-- mch/micro_test.go | 4 +-- mch/order.go | 4 +-- mch/order_test.go | 4 +-- mch/pappay.go | 4 +-- mch/pappay_test.go | 4 +-- mch/redpack.go | 4 +-- mch/redpack_test.go | 4 +-- mch/refund.go | 4 +-- mch/refund_test.go | 4 +-- mch/reply.go | 2 +- mch/tools.go | 4 +-- mch/tools_test.go | 4 +-- mch/transfer.go | 4 +-- mch/transfer_test.go | 4 +-- minip/auth.go | 4 +-- minip/auth_test.go | 2 +- minip/image.go | 4 +-- minip/image_test.go | 4 +-- minip/media.go | 4 +-- minip/media_test.go | 4 +-- minip/message.go | 6 ++--- minip/message_test.go | 2 +- minip/minip.go | 6 ++--- minip/minip_test.go | 4 +-- minip/ocr.go | 4 +-- minip/ocr_test.go | 4 +-- minip/other.go | 4 +-- minip/other_test.go | 4 +-- minip/plugin.go | 4 +-- minip/plugin_test.go | 4 +-- minip/qrcode.go | 4 +-- minip/qrcode_test.go | 2 +- minip/security.go | 4 +-- minip/security_test.go | 4 +-- minip/subscribe.go | 4 +-- minip/subscribe_test.go | 2 +- mock/mock_client.go | 2 +- offia/draft.go | 4 +-- offia/draft_test.go | 2 +- offia/image.go | 4 +-- offia/image_test.go | 4 +-- offia/kf/account.go | 4 +-- offia/kf/account_test.go | 6 ++--- offia/kf/message.go | 6 ++--- offia/kf/message_test.go | 4 +-- offia/kf/session.go | 4 +-- offia/kf/session_test.go | 4 +-- offia/media.go | 4 +-- offia/media_test.go | 4 +-- offia/menu.go | 4 +-- offia/menu_test.go | 2 +- offia/message.go | 4 +-- offia/message_test.go | 2 +- offia/oauth.go | 4 +-- offia/oauth_test.go | 2 +- offia/ocr.go | 4 +-- offia/ocr_test.go | 4 +-- offia/offia.go | 6 ++--- offia/offia_test.go | 4 +-- offia/popularize.go | 4 +-- offia/popularize_test.go | 4 +-- offia/publish.go | 4 +-- offia/publish_test.go | 2 +- offia/reply.go | 4 +-- offia/subscribe.go | 4 +-- offia/subscribe_test.go | 2 +- offia/user.go | 4 +-- offia/user_test.go | 2 +- urls/corp.go | 3 ++- wechat.go | 8 +++--- 211 files changed, 460 insertions(+), 431 deletions(-) diff --git a/README.md b/README.md index 1b009d08..bb1df2e1 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,12 @@ [![golang](https://img.shields.io/badge/Language-Go-green.svg?style=flat)](https://golang.org) [![GitHub release](https://img.shields.io/github/release/shenghui0779/gochat.svg)](https://github.com/shenghui0779/gochat/releases/latest) [![pkg.go.dev](https://img.shields.io/badge/dev-reference-007d9c?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/shenghui0779/gochat) [![Apache 2.0 license](http://img.shields.io/badge/license-Apache%202.0-brightgreen.svg)](http://opensource.org/licenses/apache2.0) + ## 👉 该项目不再更新,请使用 [新SDK](https://github.com/shenghui0779/wechat) +## 说明:原项目已经停更,我有项目依赖,我是初学者,只好硬着头皮更新 + + 📦 微信 Go SDK | 模块 | 功能 | diff --git a/corp/addrbook/department.go b/corp/addrbook/department.go index 5269ab14..dc54fdf7 100644 --- a/corp/addrbook/department.go +++ b/corp/addrbook/department.go @@ -4,8 +4,8 @@ import ( "encoding/json" "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsDepartmentCreate struct { diff --git a/corp/addrbook/department_test.go b/corp/addrbook/department_test.go index 8dbbfc3c..391460d5 100644 --- a/corp/addrbook/department_test.go +++ b/corp/addrbook/department_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestCreateDepartment(t *testing.T) { diff --git a/corp/addrbook/export.go b/corp/addrbook/export.go index bfb82a67..aa3b22de 100644 --- a/corp/addrbook/export.go +++ b/corp/addrbook/export.go @@ -3,8 +3,8 @@ package addrbook import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsExport struct { diff --git a/corp/addrbook/export_test.go b/corp/addrbook/export_test.go index f89545dd..a93199f4 100644 --- a/corp/addrbook/export_test.go +++ b/corp/addrbook/export_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestExportSimpleUser(t *testing.T) { diff --git a/corp/addrbook/sync.go b/corp/addrbook/sync.go index 6789037f..6f18d14e 100644 --- a/corp/addrbook/sync.go +++ b/corp/addrbook/sync.go @@ -3,8 +3,8 @@ package addrbook import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type BatchType string diff --git a/corp/addrbook/sync_test.go b/corp/addrbook/sync_test.go index b15c91eb..bdea250f 100644 --- a/corp/addrbook/sync_test.go +++ b/corp/addrbook/sync_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestBatchSyncUser(t *testing.T) { diff --git a/corp/addrbook/tag.go b/corp/addrbook/tag.go index 022f85ae..1056cab8 100644 --- a/corp/addrbook/tag.go +++ b/corp/addrbook/tag.go @@ -4,8 +4,8 @@ import ( "encoding/json" "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsTagCreate struct { diff --git a/corp/addrbook/tag_test.go b/corp/addrbook/tag_test.go index 047c79ea..a49c0a91 100644 --- a/corp/addrbook/tag_test.go +++ b/corp/addrbook/tag_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestCreateTag(t *testing.T) { diff --git a/corp/addrbook/user.go b/corp/addrbook/user.go index 8d98b9c4..c9d281e9 100644 --- a/corp/addrbook/user.go +++ b/corp/addrbook/user.go @@ -4,8 +4,8 @@ import ( "encoding/json" "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ExternalProfile struct { diff --git a/corp/addrbook/user_test.go b/corp/addrbook/user_test.go index eefb9383..e515ed42 100644 --- a/corp/addrbook/user_test.go +++ b/corp/addrbook/user_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestCreateUser(t *testing.T) { diff --git a/corp/agent/agent.go b/corp/agent/agent.go index b60d5f0d..52deddff 100644 --- a/corp/agent/agent.go +++ b/corp/agent/agent.go @@ -4,8 +4,8 @@ import ( "encoding/json" "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ResultAgentGet struct { diff --git a/corp/agent/agent_test.go b/corp/agent/agent_test.go index cd47ae62..6067d079 100644 --- a/corp/agent/agent_test.go +++ b/corp/agent/agent_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" "github.com/stretchr/testify/assert" ) diff --git a/corp/agent/menu.go b/corp/agent/menu.go index da688c87..8363deb2 100644 --- a/corp/agent/menu.go +++ b/corp/agent/menu.go @@ -4,8 +4,8 @@ import ( "encoding/json" "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ButtonType 菜单按钮类型 diff --git a/corp/agent/menu_test.go b/corp/agent/menu_test.go index fde01422..a0874f14 100644 --- a/corp/agent/menu_test.go +++ b/corp/agent/menu_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" "github.com/stretchr/testify/assert" ) diff --git a/corp/agent/template.go b/corp/agent/template.go index b69642b2..930cc61b 100644 --- a/corp/agent/template.go +++ b/corp/agent/template.go @@ -3,8 +3,8 @@ package agent import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type TplType string diff --git a/corp/agent/template_test.go b/corp/agent/template_test.go index 804ced90..47f94b43 100644 --- a/corp/agent/template_test.go +++ b/corp/agent/template_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" "github.com/stretchr/testify/assert" ) diff --git a/corp/corp.go b/corp/corp.go index 5fc3ee62..3eee032d 100644 --- a/corp/corp.go +++ b/corp/corp.go @@ -8,9 +8,9 @@ import ( "github.com/tidwall/gjson" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type Corp struct { @@ -27,8 +27,8 @@ func (corp *Corp) CorpID() string { // OAuth2URL 生成网页授权URL(请使用 URLEncode 对 redirectURL 进行处理) // [参考](https://open.work.weixin.qq.com/api/doc/90000/90135/91020) -func (corp *Corp) OAuth2URL(scope AuthScope, redirectURL, state string) string { - return fmt.Sprintf("%s?appid=%s&redirect_uri=%s&response_type=code&scope=%s&state=%s#wechat_redirect", urls.Oauth2Authorize, corp.corpid, redirectURL, scope, state) +func (corp *Corp) OAuth2URL(scope AuthScope, redirectURL, state, agentID string) string { + return fmt.Sprintf("%s?appid=%s&redirect_uri=%s&response_type=code&scope=%s&state=%s&agentid=%s#wechat_redirect", urls.Oauth2Authorize, corp.corpid, redirectURL, scope, state, agentID) } // QRCodeAuthURL 生成扫码授权URL(请使用 URLEncode 对 redirectURL 进行处理) diff --git a/corp/corp_test.go b/corp/corp_test.go index 6eb652dd..c9c56c30 100644 --- a/corp/corp_test.go +++ b/corp/corp_test.go @@ -6,16 +6,16 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" "github.com/stretchr/testify/assert" ) func TestOAuth2URL(t *testing.T) { cp := New("CORPID") - authURL := cp.OAuth2URL(ScopeSnsapiBase, "REDIRECT_URI", "STATE") + authURL := cp.OAuth2URL(ScopeSnsapiBase, "REDIRECT_URI", "STATE", "AGENTID") - assert.Equal(t, "https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect", authURL) + assert.Equal(t, "https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base&state=STATE&agentid=AGENTID#wechat_redirect", authURL) } func TestQRCodeAuthURL(t *testing.T) { diff --git a/corp/corpgroup/corpgroup.go b/corp/corpgroup/corpgroup.go index edd873de..c73ccc2a 100644 --- a/corp/corpgroup/corpgroup.go +++ b/corp/corpgroup/corpgroup.go @@ -3,8 +3,8 @@ package corpgroup import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type CorpInfo struct { diff --git a/corp/corpgroup/cropgroup_test.go b/corp/corpgroup/cropgroup_test.go index 42769c12..5419c9e5 100644 --- a/corp/corpgroup/cropgroup_test.go +++ b/corp/corpgroup/cropgroup_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" "github.com/stretchr/testify/assert" ) diff --git a/corp/externalcontact/attachment.go b/corp/externalcontact/attachment.go index eceed057..51bc8195 100644 --- a/corp/externalcontact/attachment.go +++ b/corp/externalcontact/attachment.go @@ -9,8 +9,8 @@ import ( "path/filepath" "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type MediaType string diff --git a/corp/externalcontact/attachment_test.go b/corp/externalcontact/attachment_test.go index 7643c787..4d8fa6d5 100644 --- a/corp/externalcontact/attachment_test.go +++ b/corp/externalcontact/attachment_test.go @@ -7,9 +7,9 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestUploadAttachment(t *testing.T) { diff --git a/corp/externalcontact/contact_way.go b/corp/externalcontact/contact_way.go index e187d01c..dec4dad0 100644 --- a/corp/externalcontact/contact_way.go +++ b/corp/externalcontact/contact_way.go @@ -3,8 +3,8 @@ package externalcontact import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ContactType int diff --git a/corp/externalcontact/contact_way_test.go b/corp/externalcontact/contact_way_test.go index 65f3dd15..bf5a9dea 100644 --- a/corp/externalcontact/contact_way_test.go +++ b/corp/externalcontact/contact_way_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestListFollowUser(t *testing.T) { diff --git a/corp/externalcontact/customer.go b/corp/externalcontact/customer.go index 6894fef1..3d3e5a4f 100644 --- a/corp/externalcontact/customer.go +++ b/corp/externalcontact/customer.go @@ -3,8 +3,8 @@ package externalcontact import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ExternalContact struct { diff --git a/corp/externalcontact/customer_test.go b/corp/externalcontact/customer_test.go index b5d1491b..1e636971 100644 --- a/corp/externalcontact/customer_test.go +++ b/corp/externalcontact/customer_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestList(t *testing.T) { diff --git a/corp/externalcontact/groupchat.go b/corp/externalcontact/groupchat.go index df7d3b93..c83ab275 100644 --- a/corp/externalcontact/groupchat.go +++ b/corp/externalcontact/groupchat.go @@ -3,8 +3,8 @@ package externalcontact import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type GroupChatOwnerFilter struct { diff --git a/corp/externalcontact/groupchat_test.go b/corp/externalcontact/groupchat_test.go index d5a2d4ff..9f8cd7cd 100644 --- a/corp/externalcontact/groupchat_test.go +++ b/corp/externalcontact/groupchat_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestListGroupChat(t *testing.T) { diff --git a/corp/externalcontact/groupmsg.go b/corp/externalcontact/groupmsg.go index 04a0b0e3..117de000 100644 --- a/corp/externalcontact/groupmsg.go +++ b/corp/externalcontact/groupmsg.go @@ -3,9 +3,9 @@ package externalcontact import ( "encoding/json" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ChatType 群发任务的类型 diff --git a/corp/externalcontact/groupmsg_test.go b/corp/externalcontact/groupmsg_test.go index 5055d329..19b5b17a 100644 --- a/corp/externalcontact/groupmsg_test.go +++ b/corp/externalcontact/groupmsg_test.go @@ -8,9 +8,9 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/mock" ) func TestAddMsgTemplate(t *testing.T) { diff --git a/corp/externalcontact/intercept_rule.go b/corp/externalcontact/intercept_rule.go index c0d6d0b1..190ea4db 100644 --- a/corp/externalcontact/intercept_rule.go +++ b/corp/externalcontact/intercept_rule.go @@ -3,8 +3,8 @@ package externalcontact import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ExtraRule struct { diff --git a/corp/externalcontact/intercept_rule_test.go b/corp/externalcontact/intercept_rule_test.go index baa47ce7..f1d69c3d 100644 --- a/corp/externalcontact/intercept_rule_test.go +++ b/corp/externalcontact/intercept_rule_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestAddInterceptRule(t *testing.T) { diff --git a/corp/externalcontact/moment.go b/corp/externalcontact/moment.go index b371b335..27ec3f38 100644 --- a/corp/externalcontact/moment.go +++ b/corp/externalcontact/moment.go @@ -3,9 +3,9 @@ package externalcontact import ( "encoding/json" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type MomentText struct { diff --git a/corp/externalcontact/moment_test.go b/corp/externalcontact/moment_test.go index c094bd1a..0f575bc4 100644 --- a/corp/externalcontact/moment_test.go +++ b/corp/externalcontact/moment_test.go @@ -8,9 +8,9 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/mock" ) func TestAddMomentTask(t *testing.T) { diff --git a/corp/externalcontact/product_album.go b/corp/externalcontact/product_album.go index d85f0845..f9c79ee2 100644 --- a/corp/externalcontact/product_album.go +++ b/corp/externalcontact/product_album.go @@ -3,8 +3,8 @@ package externalcontact import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ProductAlbumImage struct { diff --git a/corp/externalcontact/product_album_test.go b/corp/externalcontact/product_album_test.go index 4475dbd9..9a5a0f2c 100644 --- a/corp/externalcontact/product_album_test.go +++ b/corp/externalcontact/product_album_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestAddProductAlbum(t *testing.T) { diff --git a/corp/externalcontact/statistic.go b/corp/externalcontact/statistic.go index bf3baf23..1c78378a 100644 --- a/corp/externalcontact/statistic.go +++ b/corp/externalcontact/statistic.go @@ -3,8 +3,8 @@ package externalcontact import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsUserBehaviorData struct { diff --git a/corp/externalcontact/statistic_test.go b/corp/externalcontact/statistic_test.go index 1a256734..eedc08c1 100644 --- a/corp/externalcontact/statistic_test.go +++ b/corp/externalcontact/statistic_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetUserBehaviorData(t *testing.T) { diff --git a/corp/externalcontact/strategy.go b/corp/externalcontact/strategy.go index 32982126..e3654792 100644 --- a/corp/externalcontact/strategy.go +++ b/corp/externalcontact/strategy.go @@ -3,8 +3,8 @@ package externalcontact import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsCustomerStrategyList struct { diff --git a/corp/externalcontact/strategy_test.go b/corp/externalcontact/strategy_test.go index e345a9e0..1f356092 100644 --- a/corp/externalcontact/strategy_test.go +++ b/corp/externalcontact/strategy_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestListCustomerStrategy(t *testing.T) { diff --git a/corp/externalcontact/tag.go b/corp/externalcontact/tag.go index bab22eed..5d1f2862 100644 --- a/corp/externalcontact/tag.go +++ b/corp/externalcontact/tag.go @@ -3,8 +3,8 @@ package externalcontact import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsCorpTagList struct { diff --git a/corp/externalcontact/tag_test.go b/corp/externalcontact/tag_test.go index b5683883..7f0ebad7 100644 --- a/corp/externalcontact/tag_test.go +++ b/corp/externalcontact/tag_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestListCorpTag(t *testing.T) { diff --git a/corp/externalcontact/transfer.go b/corp/externalcontact/transfer.go index daf9f2e1..9d6889a8 100644 --- a/corp/externalcontact/transfer.go +++ b/corp/externalcontact/transfer.go @@ -3,8 +3,8 @@ package externalcontact import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsCustomerTranster struct { diff --git a/corp/externalcontact/transfer_test.go b/corp/externalcontact/transfer_test.go index 6bfc14e9..0c43cb6c 100644 --- a/corp/externalcontact/transfer_test.go +++ b/corp/externalcontact/transfer_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestTransferCustomer(t *testing.T) { diff --git a/corp/invoice/reimburse.go b/corp/invoice/reimburse.go index 6a8833a2..bb3b4608 100644 --- a/corp/invoice/reimburse.go +++ b/corp/invoice/reimburse.go @@ -3,8 +3,8 @@ package invoice import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ReimburseStatus 发票报销状态 diff --git a/corp/invoice/reimburse_test.go b/corp/invoice/reimburse_test.go index 0461cc84..b1916403 100644 --- a/corp/invoice/reimburse_test.go +++ b/corp/invoice/reimburse_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetInvoiceInfo(t *testing.T) { diff --git a/corp/jsapi/signature.go b/corp/jsapi/signature.go index 892871ab..fb331540 100644 --- a/corp/jsapi/signature.go +++ b/corp/jsapi/signature.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/wx" ) type ResultSign struct { diff --git a/corp/jsapi/ticket.go b/corp/jsapi/ticket.go index d0c5b9b7..f047c8ba 100644 --- a/corp/jsapi/ticket.go +++ b/corp/jsapi/ticket.go @@ -3,8 +3,8 @@ package jsapi import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ResultTicket struct { diff --git a/corp/jsapi/ticket_test.go b/corp/jsapi/ticket_test.go index 35795c3b..f32dc535 100644 --- a/corp/jsapi/ticket_test.go +++ b/corp/jsapi/ticket_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" "github.com/stretchr/testify/assert" ) diff --git a/corp/kf/account.go b/corp/kf/account.go index 9c2dfc59..fcdf2278 100644 --- a/corp/kf/account.go +++ b/corp/kf/account.go @@ -3,8 +3,8 @@ package kf import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsAccountAdd struct { diff --git a/corp/kf/account_test.go b/corp/kf/account_test.go index 1c16591e..b4c46649 100644 --- a/corp/kf/account_test.go +++ b/corp/kf/account_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestAddAccount(t *testing.T) { diff --git a/corp/kf/customer.go b/corp/kf/customer.go index 0b02a8a5..56441f8e 100644 --- a/corp/kf/customer.go +++ b/corp/kf/customer.go @@ -3,8 +3,8 @@ package kf import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsCustomerBatchGet struct { diff --git a/corp/kf/customer_test.go b/corp/kf/customer_test.go index 5b1122e4..a4f74272 100644 --- a/corp/kf/customer_test.go +++ b/corp/kf/customer_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestBatchGetCustomer(t *testing.T) { diff --git a/corp/kf/message.go b/corp/kf/message.go index a0a60dc3..2db23e50 100644 --- a/corp/kf/message.go +++ b/corp/kf/message.go @@ -3,9 +3,9 @@ package kf import ( "encoding/json" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type MenuType string diff --git a/corp/kf/message_test.go b/corp/kf/message_test.go index b285d90e..aada75cb 100644 --- a/corp/kf/message_test.go +++ b/corp/kf/message_test.go @@ -8,9 +8,9 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/mock" ) func TestSyncMsg(t *testing.T) { diff --git a/corp/kf/servicer.go b/corp/kf/servicer.go index c9b6c760..71be3e4a 100644 --- a/corp/kf/servicer.go +++ b/corp/kf/servicer.go @@ -3,8 +3,8 @@ package kf import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ErrServicer struct { diff --git a/corp/kf/servicer_test.go b/corp/kf/servicer_test.go index 8327c750..cb4ec417 100644 --- a/corp/kf/servicer_test.go +++ b/corp/kf/servicer_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestAddServicer(t *testing.T) { diff --git a/corp/linkedcorp/agent.go b/corp/linkedcorp/agent.go index 4d2de56c..ad8218fa 100644 --- a/corp/linkedcorp/agent.go +++ b/corp/linkedcorp/agent.go @@ -3,8 +3,8 @@ package linkedcorp import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ResultAgentPermList struct { diff --git a/corp/linkedcorp/agent_test.go b/corp/linkedcorp/agent_test.go index bb28aa2d..0b4c91fb 100644 --- a/corp/linkedcorp/agent_test.go +++ b/corp/linkedcorp/agent_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestListAgentPerm(t *testing.T) { diff --git a/corp/linkedcorp/department.go b/corp/linkedcorp/department.go index 3af3e4ef..8b2cac16 100644 --- a/corp/linkedcorp/department.go +++ b/corp/linkedcorp/department.go @@ -4,8 +4,8 @@ import ( "encoding/json" "fmt" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsDepartmentList struct { diff --git a/corp/linkedcorp/department_test.go b/corp/linkedcorp/department_test.go index 9d42a712..a0abd02e 100644 --- a/corp/linkedcorp/department_test.go +++ b/corp/linkedcorp/department_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestListDeparment(t *testing.T) { diff --git a/corp/linkedcorp/user.go b/corp/linkedcorp/user.go index 303f21ab..232862a0 100644 --- a/corp/linkedcorp/user.go +++ b/corp/linkedcorp/user.go @@ -4,8 +4,8 @@ import ( "encoding/json" "fmt" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type UserInfo struct { diff --git a/corp/linkedcorp/user_test.go b/corp/linkedcorp/user_test.go index 28523691..bf7911f6 100644 --- a/corp/linkedcorp/user_test.go +++ b/corp/linkedcorp/user_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetUser(t *testing.T) { diff --git a/corp/media/media.go b/corp/media/media.go index 2bcfcf23..9c8ba1f6 100644 --- a/corp/media/media.go +++ b/corp/media/media.go @@ -8,8 +8,8 @@ import ( "os" "path/filepath" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type MediaType string diff --git a/corp/media/media_test.go b/corp/media/media_test.go index b782b5c4..077b8b3d 100644 --- a/corp/media/media_test.go +++ b/corp/media/media_test.go @@ -7,9 +7,9 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestUpload(t *testing.T) { diff --git a/corp/message/appchat.go b/corp/message/appchat.go index 5fcf1e3c..b2dab1f6 100644 --- a/corp/message/appchat.go +++ b/corp/message/appchat.go @@ -3,9 +3,9 @@ package message import ( "encoding/json" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsAppchatCreate struct { diff --git a/corp/message/appchat_test.go b/corp/message/appchat_test.go index a38209a3..88a588e5 100644 --- a/corp/message/appchat_test.go +++ b/corp/message/appchat_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestCreateAppchat(t *testing.T) { diff --git a/corp/message/externalcontact.go b/corp/message/externalcontact.go index 7f5e6f84..bcc2dac6 100644 --- a/corp/message/externalcontact.go +++ b/corp/message/externalcontact.go @@ -3,9 +3,9 @@ package message import ( "encoding/json" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ExternalContactExtra struct { diff --git a/corp/message/externalcontact_test.go b/corp/message/externalcontact_test.go index d07ec233..4f8f6c8b 100644 --- a/corp/message/externalcontact_test.go +++ b/corp/message/externalcontact_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestSendExternalContactText(t *testing.T) { diff --git a/corp/message/linkedcorp.go b/corp/message/linkedcorp.go index 76b9bcea..ba0c91b6 100644 --- a/corp/message/linkedcorp.go +++ b/corp/message/linkedcorp.go @@ -3,9 +3,9 @@ package message import ( "encoding/json" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type LinkedcorpExtra struct { diff --git a/corp/message/linkedcorp_test.go b/corp/message/linkedcorp_test.go index de1f21e9..ea8ef2c4 100644 --- a/corp/message/linkedcorp_test.go +++ b/corp/message/linkedcorp_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestSendLinkedcorpText(t *testing.T) { diff --git a/corp/message/message.go b/corp/message/message.go index 2e1bb83a..00d32994 100644 --- a/corp/message/message.go +++ b/corp/message/message.go @@ -3,9 +3,9 @@ package message import ( "encoding/json" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type Text struct { diff --git a/corp/message/message_test.go b/corp/message/message_test.go index 2b8a50df..d3012873 100644 --- a/corp/message/message_test.go +++ b/corp/message/message_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestSendText(t *testing.T) { diff --git a/corp/message/reply.go b/corp/message/reply.go index cb284e65..25b70247 100644 --- a/corp/message/reply.go +++ b/corp/message/reply.go @@ -4,8 +4,8 @@ import ( "encoding/xml" "time" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/wx" ) type XMLText struct { diff --git a/corp/message/template_card.go b/corp/message/template_card.go index 61f92557..7eae5367 100644 --- a/corp/message/template_card.go +++ b/corp/message/template_card.go @@ -3,8 +3,8 @@ package message import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type CardType string diff --git a/corp/message/template_card_test.go b/corp/message/template_card_test.go index 4c12d11a..60d36f2a 100644 --- a/corp/message/template_card_test.go +++ b/corp/message/template_card_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestUpdateButtonDisable(t *testing.T) { diff --git a/corp/msgaudit/msgaudit.go b/corp/msgaudit/msgaudit.go index 568cef83..637aa667 100644 --- a/corp/msgaudit/msgaudit.go +++ b/corp/msgaudit/msgaudit.go @@ -3,8 +3,8 @@ package msgaudit import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsPermitUserList struct { diff --git a/corp/msgaudit/msgaudit_test.go b/corp/msgaudit/msgaudit_test.go index 8473274e..e2635ffb 100644 --- a/corp/msgaudit/msgaudit_test.go +++ b/corp/msgaudit/msgaudit_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestListPermitUser(t *testing.T) { diff --git a/corp/oa/approval.go b/corp/oa/approval.go index da673276..2b14b60c 100644 --- a/corp/oa/approval.go +++ b/corp/oa/approval.go @@ -3,8 +3,8 @@ package oa import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type TemplateContent struct { diff --git a/corp/oa/approval_test.go b/corp/oa/approval_test.go index 5874d4dd..7ecfd826 100644 --- a/corp/oa/approval_test.go +++ b/corp/oa/approval_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetTemplateDetail(t *testing.T) { diff --git a/corp/oa/checkin.go b/corp/oa/checkin.go index a507eb5c..004fb495 100644 --- a/corp/oa/checkin.go +++ b/corp/oa/checkin.go @@ -3,8 +3,8 @@ package oa import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type CorpCheckinOption struct { diff --git a/corp/oa/checkin_test.go b/corp/oa/checkin_test.go index 60ab5eff..bccbbc0c 100644 --- a/corp/oa/checkin_test.go +++ b/corp/oa/checkin_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetCorpCheckinOption(t *testing.T) { diff --git a/corp/oa/journal.go b/corp/oa/journal.go index 814a9232..d7c839df 100644 --- a/corp/oa/journal.go +++ b/corp/oa/journal.go @@ -3,8 +3,8 @@ package oa import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsJournalRecordList struct { diff --git a/corp/oa/journal_test.go b/corp/oa/journal_test.go index 92b602c4..717c1950 100644 --- a/corp/oa/journal_test.go +++ b/corp/oa/journal_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestListJouralRecord(t *testing.T) { diff --git a/corp/oa/meeting_room.go b/corp/oa/meeting_room.go index 5b530611..2dfc54e8 100644 --- a/corp/oa/meeting_room.go +++ b/corp/oa/meeting_room.go @@ -3,8 +3,8 @@ package oa import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type MeetingRoom struct { diff --git a/corp/oa/meeting_room_test.go b/corp/oa/meeting_room_test.go index c12ce9b6..70ba0af9 100644 --- a/corp/oa/meeting_room_test.go +++ b/corp/oa/meeting_room_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestAddMeetingRoom(t *testing.T) { diff --git a/corp/oa/pstncc.go b/corp/oa/pstncc.go index a0da748b..7230b23e 100644 --- a/corp/oa/pstncc.go +++ b/corp/oa/pstncc.go @@ -3,8 +3,8 @@ package oa import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsPstnccCall struct { diff --git a/corp/oa/pstncc_test.go b/corp/oa/pstncc_test.go index 00668861..a6fc681a 100644 --- a/corp/oa/pstncc_test.go +++ b/corp/oa/pstncc_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestCallPstncc(t *testing.T) { diff --git a/corp/oa/vacation.go b/corp/oa/vacation.go index 56e2b420..e88851f2 100644 --- a/corp/oa/vacation.go +++ b/corp/oa/vacation.go @@ -3,8 +3,8 @@ package oa import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ResultCorpVacationConf struct { diff --git a/corp/oa/vacation_test.go b/corp/oa/vacation_test.go index 213f4372..c6a87eff 100644 --- a/corp/oa/vacation_test.go +++ b/corp/oa/vacation_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetCorpVacationConf(t *testing.T) { diff --git a/corp/oauth.go b/corp/oauth.go index ba413e47..50df867e 100644 --- a/corp/oauth.go +++ b/corp/oauth.go @@ -3,8 +3,8 @@ package corp import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // AuthScope 应用授权作用域 @@ -12,7 +12,8 @@ type AuthScope string // 企业微信支持的应用授权作用域 const ( - ScopeSnsapiBase AuthScope = "snsapi_base" // 企业自建应用固定填写:snsapi_base + ScopeSnsapiBase AuthScope = "snsapi_base" // 企业自建应用固定填写:snsapi_base + ScopeSnsapiPrivateinfo AuthScope = "snsapi_privateinfo" // 获取访问用户敏感信息填写:snsapi_privateinfo ) // AccessToken 企业微信AccessToken @@ -46,6 +47,7 @@ type ResultOAuthUser struct { OpenID string `json:"OpenId"` DeviceID string `json:"DeviceId"` ExternalUserID string `json:"external_userid"` + UserTicket string `json:"user_ticket"` } // GetOAuthUser 获取访问用户身份 @@ -58,6 +60,27 @@ func GetOAuthUser(code string, result *ResultOAuthUser) wx.Action { ) } +type ResultOAuthUserDetail struct { + UserID string `json:"userid"` + Gender string `json:"gender"` + Avatar string `json:"avatar"` + QRCode string `json:"qr_code"` + Mobile string `json:"mobile"` + Email string `json:"email"` + BizMail string `json:"biz_mail"` + Address string `json:"address"` +} + +// GetOAuthUserDetail 获取访问用户敏感信息 +func GetOAuthUserDetail(userTicket string, result *ResultOAuthUserDetail) wx.Action { + return wx.NewGetAction(urls.CorpCgiBinUserInfo, + wx.WithQuery("user_ticket", userTicket), + wx.WithDecode(func(b []byte) error { + return json.Unmarshal(b, result) + }), + ) +} + // UserAuthSucc 二次验证 func UserAuthSucc(userID string) wx.Action { return wx.NewGetAction(urls.CorpCgiBinUserAuthSucc, diff --git a/corp/oauth_test.go b/corp/oauth_test.go index cf53d923..9002c8d7 100644 --- a/corp/oauth_test.go +++ b/corp/oauth_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" "github.com/stretchr/testify/assert" ) diff --git a/corp/payment/external_pay.go b/corp/payment/external_pay.go index 78e89fcf..b92f22bc 100644 --- a/corp/payment/external_pay.go +++ b/corp/payment/external_pay.go @@ -3,8 +3,8 @@ package payment import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsMerchantAdd struct { diff --git a/corp/payment/external_pay_test.go b/corp/payment/external_pay_test.go index f2655484..a122440f 100644 --- a/corp/payment/external_pay_test.go +++ b/corp/payment/external_pay_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestAddMerchant(t *testing.T) { diff --git a/corp/report/cata.go b/corp/report/cata.go index 95c1fc8c..9d4141c1 100644 --- a/corp/report/cata.go +++ b/corp/report/cata.go @@ -3,8 +3,8 @@ package report import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsGridCataAdd struct { diff --git a/corp/report/cata_test.go b/corp/report/cata_test.go index 9c706d7a..380d5580 100644 --- a/corp/report/cata_test.go +++ b/corp/report/cata_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestAddGridCata(t *testing.T) { diff --git a/corp/report/grid.go b/corp/report/grid.go index f6671266..b43c5b85 100644 --- a/corp/report/grid.go +++ b/corp/report/grid.go @@ -3,8 +3,8 @@ package report import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsGridAdd struct { diff --git a/corp/report/grid_test.go b/corp/report/grid_test.go index a2073e42..626f0820 100644 --- a/corp/report/grid_test.go +++ b/corp/report/grid_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestAddGrid(t *testing.T) { diff --git a/corp/report/patrol.go b/corp/report/patrol.go index 6bcad63b..59f3e8d6 100644 --- a/corp/report/patrol.go +++ b/corp/report/patrol.go @@ -3,8 +3,8 @@ package report import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type Location struct { diff --git a/corp/report/patrol_test.go b/corp/report/patrol_test.go index ab44449f..49785b66 100644 --- a/corp/report/patrol_test.go +++ b/corp/report/patrol_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetPatrolGridInfo(t *testing.T) { diff --git a/corp/report/resident.go b/corp/report/resident.go index 2aaed5e2..1b2a0175 100644 --- a/corp/report/resident.go +++ b/corp/report/resident.go @@ -3,8 +3,8 @@ package report import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ResidentGrid struct { diff --git a/corp/report/resident_test.go b/corp/report/resident_test.go index 0f786280..c9692a8c 100644 --- a/corp/report/resident_test.go +++ b/corp/report/resident_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetResidentGridInfo(t *testing.T) { diff --git a/corp/report/sitecode.go b/corp/report/sitecode.go index c06f1c7e..ee69c884 100644 --- a/corp/report/sitecode.go +++ b/corp/report/sitecode.go @@ -3,8 +3,8 @@ package report import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsSiteCodeList struct { diff --git a/corp/report/sitecode_test.go b/corp/report/sitecode_test.go index a9e15eda..cec082bb 100644 --- a/corp/report/sitecode_test.go +++ b/corp/report/sitecode_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestListSiteCode(t *testing.T) { diff --git a/corp/school/department.go b/corp/school/department.go index 6449d2af..27a5e79c 100644 --- a/corp/school/department.go +++ b/corp/school/department.go @@ -4,8 +4,8 @@ import ( "encoding/json" "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type DepartmentAdminCreate struct { diff --git a/corp/school/department_test.go b/corp/school/department_test.go index 5dc677df..ede86009 100644 --- a/corp/school/department_test.go +++ b/corp/school/department_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestCreateDepartment(t *testing.T) { diff --git a/corp/school/externalcontact.go b/corp/school/externalcontact.go index 83138f75..321fc374 100644 --- a/corp/school/externalcontact.go +++ b/corp/school/externalcontact.go @@ -4,8 +4,8 @@ import ( "encoding/json" "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ResultSubscribeQRCode struct { diff --git a/corp/school/externalcontact_test.go b/corp/school/externalcontact_test.go index beeebb65..3fc5591c 100644 --- a/corp/school/externalcontact_test.go +++ b/corp/school/externalcontact_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetSubscribeQRCode(t *testing.T) { diff --git a/corp/school/health.go b/corp/school/health.go index 062f1821..b111878b 100644 --- a/corp/school/health.go +++ b/corp/school/health.go @@ -3,8 +3,8 @@ package school import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsHealthReportStat struct { diff --git a/corp/school/health_test.go b/corp/school/health_test.go index 26c3c82a..a8252048 100644 --- a/corp/school/health_test.go +++ b/corp/school/health_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetHealthReportStat(t *testing.T) { diff --git a/corp/school/living.go b/corp/school/living.go index 77bc3630..696b8d71 100644 --- a/corp/school/living.go +++ b/corp/school/living.go @@ -3,8 +3,8 @@ package school import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsUserAllLivingID struct { diff --git a/corp/school/living_test.go b/corp/school/living_test.go index b50c0c00..8b61a738 100644 --- a/corp/school/living_test.go +++ b/corp/school/living_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetUserAllLivingID(t *testing.T) { diff --git a/corp/school/parent.go b/corp/school/parent.go index 659b99fd..bf05d12e 100644 --- a/corp/school/parent.go +++ b/corp/school/parent.go @@ -3,8 +3,8 @@ package school import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsChild struct { diff --git a/corp/school/parent_test.go b/corp/school/parent_test.go index 4b117745..a507cc6b 100644 --- a/corp/school/parent_test.go +++ b/corp/school/parent_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestCreateParent(t *testing.T) { diff --git a/corp/school/payment.go b/corp/school/payment.go index 62a7870c..e640b376 100644 --- a/corp/school/payment.go +++ b/corp/school/payment.go @@ -3,8 +3,8 @@ package school import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type PaymentInfo struct { diff --git a/corp/school/payment_test.go b/corp/school/payment_test.go index 6060c092..3336fe01 100644 --- a/corp/school/payment_test.go +++ b/corp/school/payment_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetPaymentResult(t *testing.T) { diff --git a/corp/school/student.go b/corp/school/student.go index 4cab8ddd..73cd7120 100644 --- a/corp/school/student.go +++ b/corp/school/student.go @@ -3,8 +3,8 @@ package school import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsStudentCreate struct { diff --git a/corp/school/student_test.go b/corp/school/student_test.go index 3ced6db5..beb5c87d 100644 --- a/corp/school/student_test.go +++ b/corp/school/student_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestCreateStudent(t *testing.T) { diff --git a/corp/school/user.go b/corp/school/user.go index 1633bcc5..3b9bb2ed 100644 --- a/corp/school/user.go +++ b/corp/school/user.go @@ -4,8 +4,8 @@ import ( "encoding/json" "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type Parent struct { diff --git a/corp/school/user_test.go b/corp/school/user_test.go index 71c88ceb..0ff86b2e 100644 --- a/corp/school/user_test.go +++ b/corp/school/user_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetUser(t *testing.T) { diff --git a/corp/tools/calendar.go b/corp/tools/calendar.go index 4012194a..fc98d7db 100644 --- a/corp/tools/calendar.go +++ b/corp/tools/calendar.go @@ -3,8 +3,8 @@ package tools import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type Calendar struct { diff --git a/corp/tools/calendar_test.go b/corp/tools/calendar_test.go index 647533ce..71b2ab9c 100644 --- a/corp/tools/calendar_test.go +++ b/corp/tools/calendar_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestAddCalendar(t *testing.T) { diff --git a/corp/tools/dial.go b/corp/tools/dial.go index 0eebee70..220daa4a 100644 --- a/corp/tools/dial.go +++ b/corp/tools/dial.go @@ -3,8 +3,8 @@ package tools import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type DialRecord struct { diff --git a/corp/tools/dial_test.go b/corp/tools/dial_test.go index c69a95d2..3c84d1ca 100644 --- a/corp/tools/dial_test.go +++ b/corp/tools/dial_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestGetDialRecord(t *testing.T) { diff --git a/corp/tools/living.go b/corp/tools/living.go index e1ad8649..cc6bd157 100644 --- a/corp/tools/living.go +++ b/corp/tools/living.go @@ -3,8 +3,8 @@ package tools import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type LivingActivity struct { diff --git a/corp/tools/living_test.go b/corp/tools/living_test.go index 60d7a8a9..9b91e6f0 100644 --- a/corp/tools/living_test.go +++ b/corp/tools/living_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestCreateLiving(t *testing.T) { diff --git a/corp/tools/schedule.go b/corp/tools/schedule.go index 00f4aabd..919a618c 100644 --- a/corp/tools/schedule.go +++ b/corp/tools/schedule.go @@ -3,8 +3,8 @@ package tools import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsScheduleAttendee struct { diff --git a/corp/tools/schedule_test.go b/corp/tools/schedule_test.go index 3ff22a5d..870b8079 100644 --- a/corp/tools/schedule_test.go +++ b/corp/tools/schedule_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestAddSchedule(t *testing.T) { diff --git a/corp/tools/wedrive.go b/corp/tools/wedrive.go index 15455a46..70fdcddf 100644 --- a/corp/tools/wedrive.go +++ b/corp/tools/wedrive.go @@ -3,8 +3,8 @@ package tools import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type WedriveAuthInfo struct { diff --git a/corp/tools/wedrive_test.go b/corp/tools/wedrive_test.go index 00d3a0da..f3a7a007 100644 --- a/corp/tools/wedrive_test.go +++ b/corp/tools/wedrive_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mock" ) func TestCreateWedriveSpace(t *testing.T) { diff --git a/event/crypto.go b/event/crypto.go index 16f07c6b..2734581c 100644 --- a/event/crypto.go +++ b/event/crypto.go @@ -5,7 +5,7 @@ import ( "encoding/base64" "fmt" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/wx" ) // Encrypt 参考微信[加密技术方案](https://open.work.weixin.qq.com/api/doc/90000/90139/90968) diff --git a/event/crypto_test.go b/event/crypto_test.go index a5f1f71d..a52522c0 100644 --- a/event/crypto_test.go +++ b/event/crypto_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/wx" ) func TestCrypto(t *testing.T) { diff --git a/event/reply.go b/event/reply.go index 710433fe..33cb48c7 100644 --- a/event/reply.go +++ b/event/reply.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/wx" ) // Reply 消息回复 diff --git a/go.mod b/go.mod index 60166629..60a31276 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,12 @@ -module github.com/shenghui0779/gochat +module github.com/liniu/gochat go 1.17 require ( github.com/golang/mock v1.6.0 github.com/stretchr/testify v1.8.4 - github.com/tidwall/gjson v1.14.4 - golang.org/x/crypto v0.10.0 + github.com/tidwall/gjson v1.17.0 + golang.org/x/crypto v0.17.0 ) require ( @@ -18,3 +18,4 @@ require ( gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) + diff --git a/go.sum b/go.sum index 79105d38..c4d110ff 100644 --- a/go.sum +++ b/go.sum @@ -23,8 +23,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tidwall/gjson v1.14.4 h1:uo0p8EbA09J7RQaflQ1aBRffTR7xedD2bcIVSYxLnkM= -github.com/tidwall/gjson v1.14.4/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/gjson v1.17.0 h1:/Jocvlh98kcTfpN2+JzGQWQcqrPQwDrVEMApx/M5ZwM= +github.com/tidwall/gjson v1.17.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= @@ -35,8 +35,8 @@ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5t golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.10.0 h1:LKqV2xt9+kDzSTfOhx4FrkEBcMrAgHSYgzywV9zcGmM= -golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= +golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= +golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= @@ -61,18 +61,18 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= +golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= diff --git a/mch/corp.go b/mch/corp.go index c5d5eb0a..0ab30b34 100644 --- a/mch/corp.go +++ b/mch/corp.go @@ -5,8 +5,8 @@ import ( "strconv" "strings" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ParamsCorpRedpack 企业红包参数 diff --git a/mch/corp_test.go b/mch/corp_test.go index 059d558e..4bcd0d21 100644 --- a/mch/corp_test.go +++ b/mch/corp_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" "github.com/stretchr/testify/assert" ) diff --git a/mch/mch.go b/mch/mch.go index 0c1e1fef..b57c7815 100644 --- a/mch/mch.go +++ b/mch/mch.go @@ -14,8 +14,8 @@ import ( "strings" "time" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // Mch 微信支付 diff --git a/mch/mch_test.go b/mch/mch_test.go index 415c5c45..b5f53d4e 100644 --- a/mch/mch_test.go +++ b/mch/mch_test.go @@ -10,8 +10,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestNew(t *testing.T) { diff --git a/mch/micro.go b/mch/micro.go index dd39a182..ee2490bb 100644 --- a/mch/micro.go +++ b/mch/micro.go @@ -3,8 +3,8 @@ package mch import ( "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsMicroPay struct { diff --git a/mch/micro_test.go b/mch/micro_test.go index 7833f631..d942110b 100644 --- a/mch/micro_test.go +++ b/mch/micro_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" "github.com/stretchr/testify/assert" ) diff --git a/mch/order.go b/mch/order.go index 0e145250..6412d218 100644 --- a/mch/order.go +++ b/mch/order.go @@ -3,8 +3,8 @@ package mch import ( "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ParamsUnifyOrder 统一下单参数 diff --git a/mch/order_test.go b/mch/order_test.go index 520da1fb..8118418a 100644 --- a/mch/order_test.go +++ b/mch/order_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestUnifyOrder(t *testing.T) { diff --git a/mch/pappay.go b/mch/pappay.go index 1d3bc837..a0780285 100644 --- a/mch/pappay.go +++ b/mch/pappay.go @@ -3,8 +3,8 @@ package mch import ( "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ParamsContract 纯签约协议参数 diff --git a/mch/pappay_test.go b/mch/pappay_test.go index 626c3b51..4ece0a15 100644 --- a/mch/pappay_test.go +++ b/mch/pappay_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestAPPEntrust(t *testing.T) { diff --git a/mch/redpack.go b/mch/redpack.go index d069b99a..f3f266ac 100644 --- a/mch/redpack.go +++ b/mch/redpack.go @@ -3,8 +3,8 @@ package mch import ( "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ParamsRedpack 红包参数 diff --git a/mch/redpack_test.go b/mch/redpack_test.go index c861a140..c1af890f 100644 --- a/mch/redpack_test.go +++ b/mch/redpack_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestSendNormalRedpack(t *testing.T) { diff --git a/mch/refund.go b/mch/refund.go index e23abfe2..d7dd4617 100644 --- a/mch/refund.go +++ b/mch/refund.go @@ -3,8 +3,8 @@ package mch import ( "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ParamsRefund 退款参数 diff --git a/mch/refund_test.go b/mch/refund_test.go index d52eb353..85d8f88b 100644 --- a/mch/refund_test.go +++ b/mch/refund_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestRefundByTransactionID(t *testing.T) { diff --git a/mch/reply.go b/mch/reply.go index 31c64710..12723385 100644 --- a/mch/reply.go +++ b/mch/reply.go @@ -3,7 +3,7 @@ package mch import ( "encoding/xml" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/wx" ) // Reply 回复支付结果 diff --git a/mch/tools.go b/mch/tools.go index f5fcc53c..dace50b1 100644 --- a/mch/tools.go +++ b/mch/tools.go @@ -3,8 +3,8 @@ package mch import ( "net/url" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ShortURL 转换短链接 diff --git a/mch/tools_test.go b/mch/tools_test.go index a1174d18..33c44664 100644 --- a/mch/tools_test.go +++ b/mch/tools_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" "github.com/stretchr/testify/assert" ) diff --git a/mch/transfer.go b/mch/transfer.go index 3fe32700..353e680e 100644 --- a/mch/transfer.go +++ b/mch/transfer.go @@ -3,8 +3,8 @@ package mch import ( "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ParamsTransferBalance 付款到零钱参数 diff --git a/mch/transfer_test.go b/mch/transfer_test.go index e358d32a..73fd8257 100644 --- a/mch/transfer_test.go +++ b/mch/transfer_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestTransferToBalance(t *testing.T) { diff --git a/minip/auth.go b/minip/auth.go index ff6fab8d..b5f52eb7 100644 --- a/minip/auth.go +++ b/minip/auth.go @@ -3,8 +3,8 @@ package minip import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // AuthSession 小程序授权Session diff --git a/minip/auth_test.go b/minip/auth_test.go index d91da199..b2daa431 100644 --- a/minip/auth_test.go +++ b/minip/auth_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" ) func TestGetPhoneNumber(t *testing.T) { diff --git a/minip/image.go b/minip/image.go index a08763a4..05f02542 100644 --- a/minip/image.go +++ b/minip/image.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ImageSize 图片尺寸 diff --git a/minip/image_test.go b/minip/image_test.go index d852c143..df11239b 100644 --- a/minip/image_test.go +++ b/minip/image_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestAICrop(t *testing.T) { diff --git a/minip/media.go b/minip/media.go index 2345d5ab..dfbe12fa 100644 --- a/minip/media.go +++ b/minip/media.go @@ -8,8 +8,8 @@ import ( "os" "path/filepath" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // MediaType 素材类型 diff --git a/minip/media_test.go b/minip/media_test.go index f0718e3e..d0f4f6b9 100644 --- a/minip/media_test.go +++ b/minip/media_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestUploadMedia(t *testing.T) { diff --git a/minip/message.go b/minip/message.go index 1d4e06b8..a891adad 100644 --- a/minip/message.go +++ b/minip/message.go @@ -1,9 +1,9 @@ package minip import ( - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type MsgTemplValue struct { diff --git a/minip/message_test.go b/minip/message_test.go index 4389ff9a..66772fea 100644 --- a/minip/message_test.go +++ b/minip/message_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" ) func TestSendUniformMessage(t *testing.T) { diff --git a/minip/minip.go b/minip/minip.go index 1bbfc3b8..9f3ed886 100644 --- a/minip/minip.go +++ b/minip/minip.go @@ -9,9 +9,9 @@ import ( "github.com/tidwall/gjson" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // Minip 微信小程序 diff --git a/minip/minip_test.go b/minip/minip_test.go index f5bf574e..2d917edd 100644 --- a/minip/minip_test.go +++ b/minip/minip_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestAccount(t *testing.T) { diff --git a/minip/ocr.go b/minip/ocr.go index 89ff88b2..d8eebcaf 100644 --- a/minip/ocr.go +++ b/minip/ocr.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // OCRMode 识别模式 diff --git a/minip/ocr_test.go b/minip/ocr_test.go index d7687e8a..e850cd9a 100644 --- a/minip/ocr_test.go +++ b/minip/ocr_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestOCRIDCardFront(t *testing.T) { diff --git a/minip/other.go b/minip/other.go index 64866e5a..4491d755 100644 --- a/minip/other.go +++ b/minip/other.go @@ -3,8 +3,8 @@ package minip import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ParamsServiceInvoke 服务调用参数 diff --git a/minip/other_test.go b/minip/other_test.go index 3346f9b4..dfeacd41 100644 --- a/minip/other_test.go +++ b/minip/other_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestInvokeService(t *testing.T) { diff --git a/minip/plugin.go b/minip/plugin.go index 55676736..48661a3f 100644 --- a/minip/plugin.go +++ b/minip/plugin.go @@ -3,8 +3,8 @@ package minip import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // PluginAction defines for plugin action params diff --git a/minip/plugin_test.go b/minip/plugin_test.go index d0c375d6..7b092557 100644 --- a/minip/plugin_test.go +++ b/minip/plugin_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestApplyPlugin(t *testing.T) { diff --git a/minip/qrcode.go b/minip/qrcode.go index 72c2d885..09533c00 100644 --- a/minip/qrcode.go +++ b/minip/qrcode.go @@ -1,8 +1,8 @@ package minip import ( - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type EnvVersion string diff --git a/minip/qrcode_test.go b/minip/qrcode_test.go index 79648c13..6468ac83 100644 --- a/minip/qrcode_test.go +++ b/minip/qrcode_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" ) func TestCreateQRCode(t *testing.T) { diff --git a/minip/security.go b/minip/security.go index 5ccbdae7..856dc56a 100644 --- a/minip/security.go +++ b/minip/security.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // SecMediaType 检测的素材类型 diff --git a/minip/security_test.go b/minip/security_test.go index 34edd23e..eb4c29bb 100644 --- a/minip/security_test.go +++ b/minip/security_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestImageSecCheck(t *testing.T) { diff --git a/minip/subscribe.go b/minip/subscribe.go index 8eb01ece..35c8046a 100644 --- a/minip/subscribe.go +++ b/minip/subscribe.go @@ -4,8 +4,8 @@ import ( "encoding/json" "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsSubscribeTemplAdd struct { diff --git a/minip/subscribe_test.go b/minip/subscribe_test.go index 72c33d25..1467582e 100644 --- a/minip/subscribe_test.go +++ b/minip/subscribe_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" ) func TestAddSubscribeTemplate(t *testing.T) { diff --git a/mock/mock_client.go b/mock/mock_client.go index 2b06575b..f236ce95 100644 --- a/mock/mock_client.go +++ b/mock/mock_client.go @@ -10,7 +10,7 @@ import ( reflect "reflect" gomock "github.com/golang/mock/gomock" - wx "github.com/shenghui0779/gochat/wx" + wx "github.com/liniu/gochat/wx" ) // MockUploadForm is a mock of UploadForm interface. diff --git a/offia/draft.go b/offia/draft.go index c470d355..7859c22e 100644 --- a/offia/draft.go +++ b/offia/draft.go @@ -3,8 +3,8 @@ package offia import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type DraftArticle struct { diff --git a/offia/draft_test.go b/offia/draft_test.go index bccdb3e5..4d37157f 100644 --- a/offia/draft_test.go +++ b/offia/draft_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" ) func TestAddDraft(t *testing.T) { diff --git a/offia/image.go b/offia/image.go index 2bfe9e35..cc03139c 100644 --- a/offia/image.go +++ b/offia/image.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // ImageSize 图片尺寸 diff --git a/offia/image_test.go b/offia/image_test.go index d0f7b108..cc39ee15 100644 --- a/offia/image_test.go +++ b/offia/image_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestAICrop(t *testing.T) { diff --git a/offia/kf/account.go b/offia/kf/account.go index 7068a593..1c58d860 100644 --- a/offia/kf/account.go +++ b/offia/kf/account.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // InviteStatus 客服邀请状态 diff --git a/offia/kf/account_test.go b/offia/kf/account_test.go index 23ebe4a6..1a18c75b 100644 --- a/offia/kf/account_test.go +++ b/offia/kf/account_test.go @@ -8,9 +8,9 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/offia" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/offia" + "github.com/liniu/gochat/wx" ) func TestGetAccountList(t *testing.T) { diff --git a/offia/kf/message.go b/offia/kf/message.go index a5811211..fa6d0ea4 100644 --- a/offia/kf/message.go +++ b/offia/kf/message.go @@ -1,9 +1,9 @@ package kf import ( - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // MsgText 消息文本 diff --git a/offia/kf/message_test.go b/offia/kf/message_test.go index dc0feb35..79bb675f 100644 --- a/offia/kf/message_test.go +++ b/offia/kf/message_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/offia" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/offia" ) func TestSendTextMsg(t *testing.T) { diff --git a/offia/kf/session.go b/offia/kf/session.go index 4e9ca967..9418fee9 100644 --- a/offia/kf/session.go +++ b/offia/kf/session.go @@ -3,8 +3,8 @@ package kf import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsSessionCreate struct { diff --git a/offia/kf/session_test.go b/offia/kf/session_test.go index ce84f21e..d30f4da3 100644 --- a/offia/kf/session_test.go +++ b/offia/kf/session_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/offia" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/offia" ) func TestCreateSession(t *testing.T) { diff --git a/offia/media.go b/offia/media.go index 1f1f1b96..b99e1ba8 100644 --- a/offia/media.go +++ b/offia/media.go @@ -9,8 +9,8 @@ import ( "os" "path/filepath" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // MediaType 素材类型 diff --git a/offia/media_test.go b/offia/media_test.go index 76558e5a..ca1f9736 100644 --- a/offia/media_test.go +++ b/offia/media_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestUploadMedia(t *testing.T) { diff --git a/offia/menu.go b/offia/menu.go index 2b58b1ef..f0840965 100644 --- a/offia/menu.go +++ b/offia/menu.go @@ -3,8 +3,8 @@ package offia import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // MenuButtonType 菜单按钮类型 diff --git a/offia/menu_test.go b/offia/menu_test.go index 48445d96..020ad542 100644 --- a/offia/menu_test.go +++ b/offia/menu_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" ) func TestCreateMenu(t *testing.T) { diff --git a/offia/message.go b/offia/message.go index b6fad3d3..bd646f06 100644 --- a/offia/message.go +++ b/offia/message.go @@ -3,8 +3,8 @@ package offia import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsIndustrySet struct { diff --git a/offia/message_test.go b/offia/message_test.go index b0960d88..93a6d815 100644 --- a/offia/message_test.go +++ b/offia/message_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" ) func TestSetIndustry(t *testing.T) { diff --git a/offia/oauth.go b/offia/oauth.go index e81f6946..21d4a3c7 100644 --- a/offia/oauth.go +++ b/offia/oauth.go @@ -3,8 +3,8 @@ package offia import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // OAuthToken 公众号网页授权Token diff --git a/offia/oauth_test.go b/offia/oauth_test.go index 19014868..c07b4fd1 100644 --- a/offia/oauth_test.go +++ b/offia/oauth_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" ) func TestCheckOAuthToken(t *testing.T) { diff --git a/offia/ocr.go b/offia/ocr.go index f45c1522..268d2c22 100644 --- a/offia/ocr.go +++ b/offia/ocr.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // OCRMode 识别模式 diff --git a/offia/ocr_test.go b/offia/ocr_test.go index 225ad513..cbbb1b86 100644 --- a/offia/ocr_test.go +++ b/offia/ocr_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestOCRIDCardFront(t *testing.T) { diff --git a/offia/offia.go b/offia/offia.go index 1792f805..c111e8d2 100644 --- a/offia/offia.go +++ b/offia/offia.go @@ -10,9 +10,9 @@ import ( "github.com/tidwall/gjson" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // AuthScope 应用授权作用域 diff --git a/offia/offia_test.go b/offia/offia_test.go index 8d132a36..2dd098ba 100644 --- a/offia/offia_test.go +++ b/offia/offia_test.go @@ -8,8 +8,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/wx" ) func TestAccount(t *testing.T) { diff --git a/offia/popularize.go b/offia/popularize.go index 9d5bfe02..3f39749d 100644 --- a/offia/popularize.go +++ b/offia/popularize.go @@ -9,8 +9,8 @@ import ( "io" "net/url" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type QRCodeAction string diff --git a/offia/popularize_test.go b/offia/popularize_test.go index 3f6e4ef6..0bd4a401 100644 --- a/offia/popularize_test.go +++ b/offia/popularize_test.go @@ -13,8 +13,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" - "github.com/shenghui0779/gochat/urls" + "github.com/liniu/gochat/mock" + "github.com/liniu/gochat/urls" ) func TestCreateQRCode(t *testing.T) { diff --git a/offia/publish.go b/offia/publish.go index d3a8edf9..50f08d40 100644 --- a/offia/publish.go +++ b/offia/publish.go @@ -3,8 +3,8 @@ package offia import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsPublishSubmit struct { diff --git a/offia/publish_test.go b/offia/publish_test.go index 80e3720e..1991d2e7 100644 --- a/offia/publish_test.go +++ b/offia/publish_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" ) func TestSubmitPublish(t *testing.T) { diff --git a/offia/reply.go b/offia/reply.go index a7d5c9ec..0cbe55fc 100644 --- a/offia/reply.go +++ b/offia/reply.go @@ -4,8 +4,8 @@ import ( "encoding/xml" "time" - "github.com/shenghui0779/gochat/event" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/event" + "github.com/liniu/gochat/wx" ) type XMLText struct { diff --git a/offia/subscribe.go b/offia/subscribe.go index 05764b6e..8c27751c 100644 --- a/offia/subscribe.go +++ b/offia/subscribe.go @@ -4,8 +4,8 @@ import ( "encoding/json" "strconv" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) type ParamsSubscribeTemplAdd struct { diff --git a/offia/subscribe_test.go b/offia/subscribe_test.go index 16d959e0..de7e5c07 100644 --- a/offia/subscribe_test.go +++ b/offia/subscribe_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" ) func TestAddSubscribeTemplate(t *testing.T) { diff --git a/offia/user.go b/offia/user.go index c490350e..d6745fb8 100644 --- a/offia/user.go +++ b/offia/user.go @@ -3,8 +3,8 @@ package offia import ( "encoding/json" - "github.com/shenghui0779/gochat/urls" - "github.com/shenghui0779/gochat/wx" + "github.com/liniu/gochat/urls" + "github.com/liniu/gochat/wx" ) // MaxUserListCount 关注列表的最大数目 diff --git a/offia/user_test.go b/offia/user_test.go index b72cc6e6..0c4fd0de 100644 --- a/offia/user_test.go +++ b/offia/user_test.go @@ -8,7 +8,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/shenghui0779/gochat/mock" + "github.com/liniu/gochat/mock" ) func TestCreateTag(t *testing.T) { diff --git a/urls/corp.go b/urls/corp.go index 7347bd80..5219d53d 100644 --- a/urls/corp.go +++ b/urls/corp.go @@ -7,8 +7,9 @@ const ( CorpCgiBinAccessToken = "https://qyapi.weixin.qq.com/cgi-bin/gettoken" CorpCgiBinAPIDomainIP = "https://qyapi.weixin.qq.com/cgi-bin/get_api_domain_ip" CorpCgiBinCallbackIP = "https://qyapi.weixin.qq.com/cgi-bin/getcallbackip" - CorpCgiBinUserInfo = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo" + CorpCgiBinUserInfo = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo" CorpCgiBinUserAuthSucc = "https://qyapi.weixin.qq.com/cgi-bin/user/authsucc" + CorpCgiBinUserDetail = "https://qyapi.weixin.qq.com/cgi-bin/auth/getuserdetail" CorpCginBinCallbackIP = "https://qyapi.weixin.qq.com/cgi-bin/getcallbackip" ) diff --git a/wechat.go b/wechat.go index 40dded86..b0680f1c 100644 --- a/wechat.go +++ b/wechat.go @@ -1,10 +1,10 @@ package gochat import ( - "github.com/shenghui0779/gochat/corp" - "github.com/shenghui0779/gochat/mch" - "github.com/shenghui0779/gochat/minip" - "github.com/shenghui0779/gochat/offia" + "github.com/liniu/gochat/corp" + "github.com/liniu/gochat/mch" + "github.com/liniu/gochat/minip" + "github.com/liniu/gochat/offia" ) // NewMch 微信商户