aa
This commit is contained in:
16
business/jxstore/vendor/partner.go
vendored
16
business/jxstore/vendor/partner.go
vendored
@@ -4,11 +4,23 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||
)
|
||||
|
||||
var (
|
||||
HandlerMap map[int]UnionInterface
|
||||
)
|
||||
|
||||
const (
|
||||
LinkTypeWeiXinMini = 1 //微信小程序
|
||||
LinkTypeH5 = 2 //H5
|
||||
)
|
||||
|
||||
type UnionInterface interface {
|
||||
ShareUnionLink(ctx *jxcontext.Context, linkType int) (err error)
|
||||
func init() {
|
||||
HandlerMap = make(map[int]UnionInterface)
|
||||
}
|
||||
|
||||
type UnionInterface interface {
|
||||
ShareUnionLink(ctx *jxcontext.Context, linkType int) (link string, err error)
|
||||
}
|
||||
|
||||
func GetHandler(vendorID int) UnionInterface {
|
||||
return HandlerMap[vendorID]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user