You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tool/third/tencent/miniapp/code/factory.go

21 lines
392 B

package code
import "gitea.codecodify.com/golang/tool/third/tencent/miniapp/interfaces"
type Type string
const (
// GetUnlimitedQRCode getUnlimitedQRCode 获取不限制的小程序码
GetUnlimitedQRCode Type = "getUnlimitedQRCode"
)
func Factory(codeType Type) interfaces.ICode {
switch codeType {
case GetUnlimitedQRCode:
return &Unlimited{}
default:
return &Unlimited{}
}
}