Documentation ¶
Index ¶
- func Init()
- type FeishuController
- type FeishuService
- func (s *FeishuService) GetApp(appId string) *lark.Client
- func (s *FeishuService) GetJsTicket(appId string) (string, bool)
- func (s *FeishuService) GetSignature(ctx context.Context, appId string, url string, nonce string, timestamp int64) (*map[string]interface{}, error)
- func (s *FeishuService) GetSocialUserByCode(ctx context.Context, socialChannelId string, code string) *social.SocialUser
- func (s *FeishuService) SpeechToText(ctx context.Context, appId string, speech string) (string, error)
- type GetTicketResp
- type GetTicketRespData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FeishuController ¶
type FeishuController struct { controller.ResourceController FeishuService *FeishuService `inject:"feishuService"` }
func (*FeishuController) GetSignature ¶
func (c *FeishuController) GetSignature(ctx *gin.Context)
func (*FeishuController) InitRouter ¶
func (e *FeishuController) InitRouter(g *gin.RouterGroup) *gin.RouterGroup
*
- 处理JSAPI的API路由
func (*FeishuController) SpeechToText ¶
func (c *FeishuController) SpeechToText(ctx *gin.Context)
type FeishuService ¶
type FeishuService struct {
// contains filtered or unexported fields
}
func (*FeishuService) GetJsTicket ¶
func (s *FeishuService) GetJsTicket(appId string) (string, bool)
func (*FeishuService) GetSignature ¶
func (*FeishuService) GetSocialUserByCode ¶
func (s *FeishuService) GetSocialUserByCode(ctx context.Context, socialChannelId string, code string) *social.SocialUser
func (*FeishuService) SpeechToText ¶
type GetTicketResp ¶
type GetTicketResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *GetTicketRespData `json:"data"` // 业务数据 }
type GetTicketRespData ¶
Click to show internal directories.
Click to hide internal directories.