From e186c08583d411bdc3cff1a6614b89abd01aa3cd Mon Sep 17 00:00:00 2001 From: yanfan <1406317364@qq.com> Date: Mon, 24 Feb 2025 16:53:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E6=8D=B7=E4=B9=90=E6=B7=98-=E6=B7=98?= =?UTF-8?q?=E5=AE=9D=E4=B8=80=E5=88=86=E8=B4=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.go b/index.go index 225482b..445c9eb 100644 --- a/index.go +++ b/index.go @@ -2,6 +2,7 @@ package third_platform_sdk import ( "github.com/zeromicro/go-zero/core/logx" + "repository.lenntc.com/lenntc/third-platform-sdk/platform/zjdg" "repository.lenntc.com/lenntc/third-platform-sdk/platform/fliggy" "repository.lenntc.com/lenntc/third-platform-sdk/platform/meituan" @@ -44,6 +45,8 @@ const ( PlatformYouPiaoPiao = "youpiaopiao" // PlatformMeituan 美团联盟 PlatformMeituan = "meituan" + // PlatformZdjg 中捷乐淘-淘宝一分购 + PlatformZdjg = "zjdg" ) // PlatformNameMap 平台名称 @@ -60,6 +63,7 @@ var PlatformNameMap = map[string]string{ PlatformShoutuShow: "守兔演出", PlatformYouPiaoPiao: "有票票", PlatformMeituan: "美团联盟", + PlatformZdjg: "中捷乐淘-淘宝一分购", } // GetPlatformName 获取平台名称 @@ -126,3 +130,8 @@ func NewYouPiaoPiao(log logx.Logger, conf youpiaopiao.AuthConfig) youpiaopiao.Yo func NewMeituanApi(log logx.Logger, conf meituan.AuthConfig) meituan.MeituanApi { return meituan.NewApiClient(log, conf) } + +// NewZjdgApi 中捷乐淘-淘宝一分购 +func NewZjdgApi(log logx.Logger, conf zjdg.AuthConfig) zjdg.ZjdgApi { + return zjdg.NewApiClient(log, conf) +}