iedc-go/vendor/github.com/silenceper/wechat/miniprogram/miniprogram.go
2023-03-03 03:12:15 +08:00

18 lines
348 B
Go

package miniprogram
import (
"github.com/silenceper/wechat/context"
)
// MiniProgram struct extends context
type MiniProgram struct {
*context.Context
}
// NewMiniProgram 实例化小程序接口
func NewMiniProgram(context *context.Context) *MiniProgram {
miniProgram := new(MiniProgram)
miniProgram.Context = context
return miniProgram
}