Documentation ¶
Index ¶
- func Init()
- type Work
- type WxcpController
- type WxcpService
- func (s *WxcpService) GetAgentSignature(ctx context.Context, corpId string, agentId int, url string, nonce string, ...) (*object.HashMap, error)
- func (s *WxcpService) GetApp(corpId string, agentId int) *Work
- func (s *WxcpService) GetSignature(ctx context.Context, corpId string, agentId int, url string, nonce string, ...) (*object.HashMap, error)
- func (s *WxcpService) GetSocialUserByCode(ctx context.Context, socialChannelId string, code string) *social.SocialUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Work ¶
type Work struct { *work.Work JSSdk *jssdk.Client AgentJSSdk *jssdk.Client // contains filtered or unexported fields }
func (*Work) GetAPIAccessToken ¶
type WxcpController ¶
type WxcpController struct { controller.ResourceController WxcpService *WxcpService `inject:"wxcpService"` }
func (*WxcpController) GetAgentSignature ¶
func (c *WxcpController) GetAgentSignature(ctx *gin.Context)
func (*WxcpController) GetSignature ¶
func (c *WxcpController) GetSignature(ctx *gin.Context)
func (*WxcpController) InitRouter ¶
func (e *WxcpController) InitRouter(g *gin.RouterGroup) *gin.RouterGroup
*
- 处理WEB验证码的API路由
type WxcpService ¶
type WxcpService struct {
// contains filtered or unexported fields
}
func (*WxcpService) GetAgentSignature ¶
func (*WxcpService) GetSignature ¶
func (*WxcpService) GetSocialUserByCode ¶
func (s *WxcpService) GetSocialUserByCode(ctx context.Context, socialChannelId string, code string) *social.SocialUser
Click to show internal directories.
Click to hide internal directories.