aa
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
27
business/jxstore/partner/mt/union.go
Normal file
27
business/jxstore/partner/mt/union.go
Normal 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
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user