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) +}