This commit is contained in:
苏尹岚
2021-04-14 15:51:11 +08:00
parent c4d46326ad
commit 610b767814
10 changed files with 71 additions and 39 deletions

View File

@@ -1922,6 +1922,10 @@ func TempJob() (err error) {
return err
}
func GetUnionActList(ctx *jxcontext.Context, vendorID, actType int) (link interface{}, err error) {
return partner.GetHandler(vendorID).GetUnionActList(ctx, actType)
}
func ShareUnionLink(ctx *jxcontext.Context, vendorID, linkType int) (link string, err error) {
return partner.GetHandler(vendorID).ShareUnionLink(ctx, linkType)
}

View File

@@ -21,3 +21,7 @@ func (s *UnionHandler) ShareUnionLink(ctx *jxcontext.Context, linkType int) (lin
return "jds", err
}
func (s *UnionHandler) GetUnionActList(ctx *jxcontext.Context, actType int) (link interface{}, err error) {
return
}

View File

@@ -1,23 +1,6 @@
package mt
import (
"git.rosy.net.cn/jx-callback/business/jxstore/partner"
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
"git.rosy.net.cn/jx-callback/business/model"
)
func getAPI() (err error) {
type UnionHandler struct {
}
var (
unionHandler *UnionHandler
)
func init() {
partner.HandlerMap[model.VendorIDMTWM] = unionHandler
}
func (s *UnionHandler) ShareUnionLink(ctx *jxcontext.Context, linkType int) (link string, err error) {
return "mt", err
return err
}

View File

@@ -0,0 +1,27 @@
package mt
import (
"git.rosy.net.cn/jx-callback/business/jxstore/partner"
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
"git.rosy.net.cn/jx-callback/business/model"
)
type UnionHandler struct {
}
var (
unionHandler *UnionHandler
)
func init() {
partner.HandlerMap[model.VendorIDMTWM] = unionHandler
}
func (s *UnionHandler) ShareUnionLink(ctx *jxcontext.Context, linkType int) (link string, err error) {
return "mt", err
}
func (s *UnionHandler) GetUnionActList(ctx *jxcontext.Context, actType int) (link interface{}, err error) {
return
}

View File

@@ -19,6 +19,7 @@ func init() {
type UnionInterface interface {
ShareUnionLink(ctx *jxcontext.Context, linkType int) (link string, err error)
GetUnionActList(ctx *jxcontext.Context, actType int) (result interface{}, err error)
}
func GetHandler(vendorID int) UnionInterface {