Documentation ¶
Index ¶
- func Init()
- type WxToken
- type WxmpController
- type WxmpService
- func (s *WxmpService) GetApp(appId string) *officialAccount.OfficialAccount
- func (s *WxmpService) GetSignature(ctx context.Context, appId string, url string, nonce string, timestamp int64) (*object.HashMap, error)
- func (s *WxmpService) GetSocialUserByCode(ctx context.Context, socialChannelId string, code string) *social.SocialUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WxmpController ¶
type WxmpController struct { controller.ResourceController WxmpService *WxmpService `inject:"wxmpService"` }
func (*WxmpController) GetSignature ¶
func (c *WxmpController) GetSignature(ctx *gin.Context)
func (*WxmpController) InitRouter ¶
func (e *WxmpController) InitRouter(g *gin.RouterGroup) *gin.RouterGroup
*
- 处理WEB验证码的API路由
type WxmpService ¶
type WxmpService struct {
// contains filtered or unexported fields
}
func (*WxmpService) GetApp ¶
func (s *WxmpService) GetApp(appId string) *officialAccount.OfficialAccount
func (*WxmpService) GetSignature ¶
func (*WxmpService) GetSocialUserByCode ¶
func (s *WxmpService) GetSocialUserByCode(ctx context.Context, socialChannelId string, code string) *social.SocialUser
Click to show internal directories.
Click to hide internal directories.