tasks

package
v0.11.0-test8 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const AUTH_ENDPOINT = "https://open.feishu.cn"
View Source
const ENDPOINT = "https://open.feishu.cn/open-apis/vc/v1"
View Source
const RAW_MEETING_TOP_USER_ITEM_TABLE = "feishu_meeting_top_user_item"

Variables

View Source
var CollectMeetingTopUserItemMeta = core.SubTaskMeta{
	Name:             "collectMeetingTopUserItem",
	EntryPoint:       CollectMeetingTopUserItem,
	EnabledByDefault: true,
	Description:      "Collect top user meeting data from Feishu api",
}
View Source
var ExtractMeetingTopUserItemMeta = core.SubTaskMeta{
	Name:             "extractMeetingTopUserItem",
	EntryPoint:       ExtractMeetingTopUserItem,
	EnabledByDefault: true,
	Description:      "Extrat raw top user meeting data into tool layer table feishu_meeting_top_user_item",
}

Functions

func CollectMeetingTopUserItem

func CollectMeetingTopUserItem(taskCtx core.SubTaskContext) error

func ExtractMeetingTopUserItem

func ExtractMeetingTopUserItem(taskCtx core.SubTaskContext) error

func NewFeishuApiClient

func NewFeishuApiClient(taskCtx core.TaskContext) (*helper.ApiAsyncClient, error)

Types

type ApiAccessTokenRequest

type ApiAccessTokenRequest struct {
	AppId     string `json:"app_id"`
	AppSecret string `json:"app_secret"`
}

type ApiAccessTokenResponse

type ApiAccessTokenResponse struct {
	Code              int    `json:"code"`
	Msg               string `json:"msg"`
	AppAccessToken    string `json:"app_access_token"`
	TenantAccessToken string `json:"tenant_access_token"`
	Expire            int    `json:"expire"`
}

type FeishuApiParams

type FeishuApiParams struct {
	ApiResName string `json:"apiResName"`
}

type FeishuOptions

type FeishuOptions struct {
	NumOfDaysToCollect float64  `json:"numOfDaysToCollect"`
	Tasks              []string `json:"tasks,omitempty"`
}

type FeishuTaskData

type FeishuTaskData struct {
	Options                  *FeishuOptions
	ApiClient                *helper.ApiAsyncClient
	FeishuMeetingTopUserItem *models.FeishuMeetingTopUserItem
}

Jump to

Keyboard shortcuts

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