v6

package
v1.1.48 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Code generated by lark suite oapi sdk gen

Code generated by lark suite oapi sdk gen

Code generated by lark suite oapi sdk gen

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetApplicationVisibilityAddedEventHandler

func SetApplicationVisibilityAddedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *ApplicationVisibilityAddedEvent) error)

Types

type AppAbility

type AppAbility struct {
	Gadget           *Gadget            `json:"gadget,omitempty"`
	WebApp           *WebApp            `json:"web_app,omitempty"`
	Bot              *Bot               `json:"bot,omitempty"`
	WorkplaceWidgets []*WorkplaceWidget `json:"workplace_widgets,omitempty"`
	Navigate         *Navigate          `json:"navigate,omitempty"`
	CloudDoc         *CloudDoc          `json:"cloud_doc,omitempty"`
	DocsBlocks       []*DocsBlock       `json:"docs_blocks,omitempty"`
	MessageAction    *MessageAction     `json:"message_action,omitempty"`
	PlusMenu         *PlusMenu          `json:"plus_menu,omitempty"`
	ForceSendFields  []string           `json:"-"`
}

func (*AppAbility) MarshalJSON

func (s *AppAbility) MarshalJSON() ([]byte, error)

type AppBadge

type AppBadge struct {
	UserId          int64           `json:"user_id,omitempty,string"`
	Version         int64           `json:"version,omitempty,string"`
	Pc              *ClientBadgeNum `json:"pc,omitempty"`
	Mobile          *ClientBadgeNum `json:"mobile,omitempty"`
	ForceSendFields []string        `json:"-"`
}

func (*AppBadge) MarshalJSON

func (s *AppBadge) MarshalJSON() ([]byte, error)

type AppCommonCategory

type AppCommonCategory struct {
	I18nKey         string   `json:"i18n_key,omitempty"`
	Category        string   `json:"category,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*AppCommonCategory) MarshalJSON

func (s *AppCommonCategory) MarshalJSON() ([]byte, error)

type AppCustomCategory

type AppCustomCategory struct {
	I18nKey         string   `json:"i18n_key,omitempty"`
	Description     string   `json:"description,omitempty"`
	AppIds          []string `json:"app_ids,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*AppCustomCategory) MarshalJSON

func (s *AppCustomCategory) MarshalJSON() ([]byte, error)

type AppCustomCategoryI18nInfo

type AppCustomCategoryI18nInfo struct {
	I18nKey         string   `json:"i18n_key,omitempty"`
	Name            string   `json:"name,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*AppCustomCategoryI18nInfo) MarshalJSON

func (s *AppCustomCategoryI18nInfo) MarshalJSON() ([]byte, error)

type AppI18nInfo

type AppI18nInfo struct {
	I18nKey         string   `json:"i18n_key,omitempty"`
	Name            string   `json:"name,omitempty"`
	Description     string   `json:"description,omitempty"`
	HelpUse         string   `json:"help_use,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*AppI18nInfo) MarshalJSON

func (s *AppI18nInfo) MarshalJSON() ([]byte, error)

type AppMessageTrendItem

type AppMessageTrendItem struct {
	ChatType        string            `json:"chat_type,omitempty"`
	EventType       string            `json:"event_type,omitempty"`
	MessageType     string            `json:"message_type,omitempty"`
	Trend           []*UsageTrendItem `json:"trend,omitempty"`
	ForceSendFields []string          `json:"-"`
}

func (*AppMessageTrendItem) MarshalJSON

func (s *AppMessageTrendItem) MarshalJSON() ([]byte, error)

type AppScope

type AppScope struct {
	Scope           string   `json:"scope,omitempty"`
	Description     string   `json:"description,omitempty"`
	Level           string   `json:"level,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*AppScope) MarshalJSON

func (s *AppScope) MarshalJSON() ([]byte, error)

type AppScopeI18nInfo

type AppScopeI18nInfo struct {
	I18nKey         string   `json:"i18n_key,omitempty"`
	Description     string   `json:"description,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*AppScopeI18nInfo) MarshalJSON

func (s *AppScopeI18nInfo) MarshalJSON() ([]byte, error)

type AppScopes

type AppScopes struct {
	HighLevelScopes []string `json:"high_level_scopes,omitempty"`
	LowLevelScopes  []string `json:"low_level_scopes,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*AppScopes) MarshalJSON

func (s *AppScopes) MarshalJSON() ([]byte, error)

type AppUsageTrendItems

type AppUsageTrendItems struct {
	Id              string            `json:"id,omitempty"`
	Trend           []*UsageTrendItem `json:"trend,omitempty"`
	ForceSendFields []string          `json:"-"`
}

func (*AppUsageTrendItems) MarshalJSON

func (s *AppUsageTrendItems) MarshalJSON() ([]byte, error)

type AppVersionId

type AppVersionId struct {
	Version         string   `json:"version,omitempty"`
	VersionId       string   `json:"version_id,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*AppVersionId) MarshalJSON

func (s *AppVersionId) MarshalJSON() ([]byte, error)

type AppVersionRemark

type AppVersionRemark struct {
	Remark          string         `json:"remark,omitempty"`
	UpdateRemark    string         `json:"update_remark,omitempty"`
	Visibility      *AppVisibility `json:"visibility,omitempty"`
	ForceSendFields []string       `json:"-"`
}

func (*AppVersionRemark) MarshalJSON

func (s *AppVersionRemark) MarshalJSON() ([]byte, error)

type AppVisibility

type AppVisibility struct {
	IsAll           bool            `json:"is_all,omitempty"`
	VisibleList     *AppVisibleList `json:"visible_list,omitempty"`
	InvisibleList   *AppVisibleList `json:"invisible_list,omitempty"`
	ForceSendFields []string        `json:"-"`
}

func (*AppVisibility) MarshalJSON

func (s *AppVisibility) MarshalJSON() ([]byte, error)

type AppVisibleList

type AppVisibleList struct {
	OpenIds         []int64  `json:"open_ids,omitempty"`
	DepartmentIds   []int64  `json:"department_ids,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*AppVisibleList) MarshalJSON

func (s *AppVisibleList) MarshalJSON() ([]byte, error)

type Application

type Application struct {
	AppId            string         `json:"app_id,omitempty"`
	CreatorId        int64          `json:"creator_id,omitempty,string"`
	Status           int            `json:"status,omitempty"`
	SceneType        int            `json:"scene_type,omitempty"`
	RedirectUrls     []string       `json:"redirect_urls,omitempty"`
	OnlineVersionId  int64          `json:"online_version_id,omitempty,string"`
	UnauditVersionId int64          `json:"unaudit_version_id,omitempty,string"`
	AppName          string         `json:"app_name,omitempty"`
	AvatarUrl        string         `json:"avatar_url,omitempty"`
	Description      string         `json:"description,omitempty"`
	Scopes           []*AppScope    `json:"scopes,omitempty"`
	BackHomeUrl      string         `json:"back_home_url,omitempty"`
	I18n             []*AppI18nInfo `json:"i18n,omitempty"`
	PrimaryLanguage  string         `json:"primary_language,omitempty"`
	CommonCategories []string       `json:"common_categories,omitempty"`
	ForceSendFields  []string       `json:"-"`
}

func (*Application) MarshalJSON

func (s *Application) MarshalJSON() ([]byte, error)

type ApplicationAppUsage

type ApplicationAppUsage struct {
	MetricName      string   `json:"metric_name,omitempty"`
	MetricValue     int      `json:"metric_value,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*ApplicationAppUsage) MarshalJSON

func (s *ApplicationAppUsage) MarshalJSON() ([]byte, error)

type ApplicationAppUsageOverviewReqBody

type ApplicationAppUsageOverviewReqBody struct {
	Date            string   `json:"date,omitempty"`
	CycleType       int      `json:"cycle_type,omitempty"`
	DepartmentId    string   `json:"department_id,omitempty"`
	Ability         string   `json:"ability,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*ApplicationAppUsageOverviewReqBody) MarshalJSON

func (s *ApplicationAppUsageOverviewReqBody) MarshalJSON() ([]byte, error)

type ApplicationAppUsageOverviewReqCall

type ApplicationAppUsageOverviewReqCall struct {
	// contains filtered or unexported fields
}

func (*ApplicationAppUsageOverviewReqCall) Do

func (*ApplicationAppUsageOverviewReqCall) SetAppId

func (rc *ApplicationAppUsageOverviewReqCall) SetAppId(appId string)

func (*ApplicationAppUsageOverviewReqCall) SetDepartmentIdType

func (rc *ApplicationAppUsageOverviewReqCall) SetDepartmentIdType(departmentIdType string)

type ApplicationAppUsageOverviewResult

type ApplicationAppUsageOverviewResult struct {
	Items []*ApplicationAppUsage `json:"items,omitempty"`
}

type ApplicationAppUsageService

type ApplicationAppUsageService struct {
	// contains filtered or unexported fields
}

func (*ApplicationAppUsageService) Overview

type ApplicationAppVersion

type ApplicationAppVersion struct {
	AppId            string            `json:"app_id,omitempty"`
	Version          string            `json:"version,omitempty"`
	VersionId        int64             `json:"version_id,omitempty,string"`
	AppName          string            `json:"app_name,omitempty"`
	AvatarUrl        string            `json:"avatar_url,omitempty"`
	Description      string            `json:"description,omitempty"`
	Scopes           []*AppScope       `json:"scopes,omitempty"`
	BackHomeUrl      string            `json:"back_home_url,omitempty"`
	I18n             []*AppI18nInfo    `json:"i18n,omitempty"`
	CommonCategories []string          `json:"common_categories,omitempty"`
	Events           []string          `json:"events,omitempty"`
	Status           int               `json:"status,omitempty"`
	CreateTime       int64             `json:"create_time,omitempty,string"`
	PublishTime      int64             `json:"publish_time,omitempty,string"`
	Ability          *AppAbility       `json:"ability,omitempty"`
	Remark           *AppVersionRemark `json:"remark,omitempty"`
	ForceSendFields  []string          `json:"-"`
}

func (*ApplicationAppVersion) MarshalJSON

func (s *ApplicationAppVersion) MarshalJSON() ([]byte, error)

type ApplicationVisibility

type ApplicationVisibility struct {
	IsAll           bool            `json:"is_all,omitempty"`
	VisibleList     *AppVisibleList `json:"visible_list,omitempty"`
	InvisibleList   *AppVisibleList `json:"invisible_list,omitempty"`
	ForceSendFields []string        `json:"-"`
}

func (*ApplicationVisibility) MarshalJSON

func (s *ApplicationVisibility) MarshalJSON() ([]byte, error)

type ApplicationVisibilityAddedEvent

type ApplicationVisibilityAddedEvent struct {
	*model.BaseEventV2
	Event *ApplicationVisibilityAddedEventData `json:"event"`
}

type ApplicationVisibilityAddedEventData

type ApplicationVisibilityAddedEventData struct {
	Users  []*User `json:"users,omitempty"`
	Source int     `json:"source,omitempty"`
}

type ApplicationVisibilityAddedEventHandler

type ApplicationVisibilityAddedEventHandler struct {
	Fn func(*core.Context, *ApplicationVisibilityAddedEvent) error
}

func (*ApplicationVisibilityAddedEventHandler) GetEvent

func (h *ApplicationVisibilityAddedEventHandler) GetEvent() interface{}

func (*ApplicationVisibilityAddedEventHandler) Handle

func (h *ApplicationVisibilityAddedEventHandler) Handle(ctx *core.Context, event interface{}) error

type ApplicationVisibilityService

type ApplicationVisibilityService struct {
	// contains filtered or unexported fields
}

type Block

type Block struct {
	BlockTypeId     string           `json:"block_type_id,omitempty"`
	VersionId       string           `json:"version_id,omitempty"`
	I18n            []*BlockI18nInfo `json:"i18n,omitempty"`
	MobileIconUrl   string           `json:"mobile_icon_url,omitempty"`
	PcIconUrl       string           `json:"pc_icon_url,omitempty"`
	ForceSendFields []string         `json:"-"`
}

func (*Block) MarshalJSON

func (s *Block) MarshalJSON() ([]byte, error)

type BlockI18nInfo

type BlockI18nInfo struct {
	I18nKey         string   `json:"i18n_key,omitempty"`
	Name            string   `json:"name,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*BlockI18nInfo) MarshalJSON

func (s *BlockI18nInfo) MarshalJSON() ([]byte, error)

type Bot

type Bot struct {
	CardRequestUrl  string   `json:"card_request_url,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*Bot) MarshalJSON

func (s *Bot) MarshalJSON() ([]byte, error)

type ClientBadgeNum

type ClientBadgeNum struct {
	WebApp          int      `json:"web_app,omitempty"`
	Gadget          int      `json:"gadget,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*ClientBadgeNum) MarshalJSON

func (s *ClientBadgeNum) MarshalJSON() ([]byte, error)

type CloudDoc

type CloudDoc struct {
	SpaceUrl        string              `json:"space_url,omitempty"`
	I18n            []*CloudDocI18nInfo `json:"i18n,omitempty"`
	IconUrl         string              `json:"icon_url,omitempty"`
	Mode            int                 `json:"mode,omitempty"`
	ForceSendFields []string            `json:"-"`
}

func (*CloudDoc) MarshalJSON

func (s *CloudDoc) MarshalJSON() ([]byte, error)

type CloudDocI18nInfo

type CloudDocI18nInfo struct {
	I18nKey          string   `json:"i18n_key,omitempty"`
	Name             string   `json:"name,omitempty"`
	ReadDescription  string   `json:"read_description,omitempty"`
	WriteDescription string   `json:"write_description,omitempty"`
	ForceSendFields  []string `json:"-"`
}

func (*CloudDocI18nInfo) MarshalJSON

func (s *CloudDocI18nInfo) MarshalJSON() ([]byte, error)

type DocsBlock

type DocsBlock struct {
	BlockTypeId     string           `json:"block_type_id,omitempty"`
	I18n            []*BlockI18nInfo `json:"i18n,omitempty"`
	MobileIconUrl   string           `json:"mobile_icon_url,omitempty"`
	PcIconUrl       string           `json:"pc_icon_url,omitempty"`
	ForceSendFields []string         `json:"-"`
}

func (*DocsBlock) MarshalJSON

func (s *DocsBlock) MarshalJSON() ([]byte, error)

type Gadget

type Gadget struct {
	EnablePcMode         int      `json:"enable_pc_mode,omitempty"`
	SchemaUrls           []string `json:"schema_urls,omitempty"`
	PcUseMobilePkg       bool     `json:"pc_use_mobile_pkg,omitempty"`
	PcVersion            string   `json:"pc_version,omitempty"`
	MobileVersion        string   `json:"mobile_version,omitempty"`
	MobileMinLarkVersion string   `json:"mobile_min_lark_version,omitempty"`
	PcMinLarkVersion     string   `json:"pc_min_lark_version,omitempty"`
	ForceSendFields      []string `json:"-"`
}

func (*Gadget) MarshalJSON

func (s *Gadget) MarshalJSON() ([]byte, error)

type MessageAction

type MessageAction struct {
	PcAppLink       string                   `json:"pc_app_link,omitempty"`
	MobileAppLink   string                   `json:"mobile_app_link,omitempty"`
	I18n            []*MessageActionI18nInfo `json:"i18n,omitempty"`
	ForceSendFields []string                 `json:"-"`
}

func (*MessageAction) MarshalJSON

func (s *MessageAction) MarshalJSON() ([]byte, error)

type MessageActionI18nInfo

type MessageActionI18nInfo struct {
	I18nKey         string   `json:"i18n_key,omitempty"`
	Name            string   `json:"name,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*MessageActionI18nInfo) MarshalJSON

func (s *MessageActionI18nInfo) MarshalJSON() ([]byte, error)

type MessageOverviewItem

type MessageOverviewItem struct {
	PageView        int64    `json:"page_view,omitempty,string"`
	UniqueVisitor   int64    `json:"unique_visitor,omitempty,string"`
	ChatType        string   `json:"chat_type,omitempty"`
	MessageType     string   `json:"message_type,omitempty"`
	EventType       string   `json:"event_type,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*MessageOverviewItem) MarshalJSON

func (s *MessageOverviewItem) MarshalJSON() ([]byte, error)

type Miniprogram

type Miniprogram struct {
	EnablePcMode         int      `json:"enable_pc_mode,omitempty"`
	SchemaUrls           []string `json:"schema_urls,omitempty"`
	PcUseMobilePkg       bool     `json:"pc_use_mobile_pkg,omitempty"`
	PcVersionId          string   `json:"pc_version_id,omitempty"`
	MobileVersionId      string   `json:"mobile_version_id,omitempty"`
	MobileMinLarkVersion string   `json:"mobile_min_lark_version,omitempty"`
	PcMinLarkVersion     string   `json:"pc_min_lark_version,omitempty"`
	ForceSendFields      []string `json:"-"`
}

func (*Miniprogram) MarshalJSON

func (s *Miniprogram) MarshalJSON() ([]byte, error)

type MsgAction

type MsgAction struct {
	PcAppLink       string               `json:"pc_app_link,omitempty"`
	MobileAppLink   string               `json:"mobile_app_link,omitempty"`
	I18n            []*MsgActionI18nInfo `json:"i18n,omitempty"`
	ForceSendFields []string             `json:"-"`
}

func (*MsgAction) MarshalJSON

func (s *MsgAction) MarshalJSON() ([]byte, error)

type MsgActionI18nInfo

type MsgActionI18nInfo struct {
	I18nKey         string   `json:"i18n_key,omitempty"`
	Name            string   `json:"name,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*MsgActionI18nInfo) MarshalJSON

func (s *MsgActionI18nInfo) MarshalJSON() ([]byte, error)
type Navigate struct {
	Pc              *NavigateMeta `json:"pc,omitempty"`
	Mobile          *NavigateMeta `json:"mobile,omitempty"`
	ForceSendFields []string      `json:"-"`
}
func (s *Navigate) MarshalJSON() ([]byte, error)
type NavigateMeta struct {
	Version         string   `json:"version,omitempty"`
	ImageUrl        string   `json:"image_url,omitempty"`
	HoverImageUrl   string   `json:"hover_image_url,omitempty"`
	ForceSendFields []string `json:"-"`
}
func (s *NavigateMeta) MarshalJSON() ([]byte, error)

type PlusMenu

type PlusMenu struct {
	PcAppLink       string   `json:"pc_app_link,omitempty"`
	MobileAppLink   string   `json:"mobile_app_link,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*PlusMenu) MarshalJSON

func (s *PlusMenu) MarshalJSON() ([]byte, error)

type Scope

type Scope struct {
	ScopeName       string   `json:"scope_name,omitempty"`
	GrantStatus     int      `json:"grant_status,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*Scope) MarshalJSON

func (s *Scope) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	ApplicationVisibilitys *ApplicationVisibilityService
	ApplicationAppUsages   *ApplicationAppUsageService
	// contains filtered or unexported fields
}

func NewService

func NewService(conf *config.Config) *Service

type UsageOverviewItem

type UsageOverviewItem struct {
	PageView        int64    `json:"page_view,omitempty,string"`
	UniqueVisitor   int64    `json:"unique_visitor,omitempty,string"`
	DepartmentId    string   `json:"department_id,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*UsageOverviewItem) MarshalJSON

func (s *UsageOverviewItem) MarshalJSON() ([]byte, error)

type UsageTrendItem

type UsageTrendItem struct {
	Timestamp       int64    `json:"timestamp,omitempty,string"`
	PageView        int64    `json:"page_view,omitempty,string"`
	UniqueVisitor   int64    `json:"unique_visitor,omitempty,string"`
	ForceSendFields []string `json:"-"`
}

func (*UsageTrendItem) MarshalJSON

func (s *UsageTrendItem) MarshalJSON() ([]byte, error)

type UsageUser

type UsageUser struct {
	UserId          string   `json:"user_id,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*UsageUser) MarshalJSON

func (s *UsageUser) MarshalJSON() ([]byte, error)

type User

type User struct {
	UserId          *UserId  `json:"user_id,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*User) MarshalJSON

func (s *User) MarshalJSON() ([]byte, error)

type UserId

type UserId struct {
	UserId          string   `json:"user_id,omitempty"`
	OpenId          string   `json:"open_id,omitempty"`
	UnionId         string   `json:"union_id,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*UserId) MarshalJSON

func (s *UserId) MarshalJSON() ([]byte, error)

type WebApp

type WebApp struct {
	PcUrl           string   `json:"pc_url,omitempty"`
	MobileUrl       string   `json:"mobile_url,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*WebApp) MarshalJSON

func (s *WebApp) MarshalJSON() ([]byte, error)

type WorkplaceWidget

type WorkplaceWidget struct {
	MinLarkVersion  string   `json:"min_lark_version,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*WorkplaceWidget) MarshalJSON

func (s *WorkplaceWidget) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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