feishu

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

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) GetApp

func (s *FeishuService) GetApp(appId string) *lark.Client

func (*FeishuService) GetJsTicket

func (s *FeishuService) GetJsTicket(appId string) (string, bool)

func (*FeishuService) GetSignature

func (s *FeishuService) GetSignature(ctx context.Context, appId string, url string, nonce string, timestamp int64) (*map[string]interface{}, error)

func (*FeishuService) GetSocialUserByCode

func (s *FeishuService) GetSocialUserByCode(ctx context.Context, socialChannelId string, code string) *social.SocialUser

func (*FeishuService) SpeechToText

func (s *FeishuService) SpeechToText(ctx context.Context, appId string, speech string) (string, error)

type GetTicketResp

type GetTicketResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *GetTicketRespData `json:"data"` // 业务数据
}

type GetTicketRespData

type GetTicketRespData struct {
	ExpireIn int64  `json:"expire_in"`
	Ticket   string `json:"ticket"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL