iedc-go/vendor/github.com/silenceper/wechat/miniprogram/miniprogram.go

18 lines
348 B
Go
Raw Permalink Normal View History

2023-03-02 19:12:15 +00:00
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
}