forked from golang/hotime
18 lines
348 B
Go
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
|
|
}
|