larkapplication

package
v3.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 6 Imported by: 19

Documentation

Index

Constants

View Source
const (
	UserIdTypeUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	I18nKeyZhCn = "zh_cn" // 中文
	I18nKeyEnUs = "en_us" // 英文
	I18nKeyJaJp = "ja_jp" // 日文
)
View Source
const (
	UserIdTypeGetApplicationUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetApplicationUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetApplicationOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	I18nKeyPatchApplicationZhCn = "zh_cn" // 中文
	I18nKeyPatchApplicationEnUs = "en_us" // 英文
	I18nKeyPatchApplicationJaJp = "ja_jp" // 日文
)
View Source
const (
	I18nKeyUnderauditlistApplicationZhCn = "zh_cn" // 中文
	I18nKeyUnderauditlistApplicationEnUs = "en_us" // 英文
	I18nKeyUnderauditlistApplicationJaJp = "ja_jp" // 日文
)
View Source
const (
	UserIdTypeUnderauditlistApplicationUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUnderauditlistApplicationUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeUnderauditlistApplicationOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	CycleTypeDay   = 1 // 日活
	CycleTypeWeek  = 2 // 周活, date字段应该填自然周周一的日期
	CycleTypeMonth = 3 // 月活, date字段应该填自然月1号的日期

)
View Source
const (
	AbilityApp = "app" // 返回应用整体的数据
	AbilityMp  = "mp"  // 返回小程序的数据
	AbilityH5  = "h5"  // 返回网页的数据
	AbilityBot = "bot" // 返回机器人的数据
)
View Source
const (
	DepartmentIdTypeDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	I18nKeyGetApplicationAppVersionZhCn = "zh_cn" // 中文
	I18nKeyGetApplicationAppVersionEnUs = "en_us" // 英文
	I18nKeyGetApplicationAppVersionJaJp = "ja_jp" // 日文
)
View Source
const (
	UserIdTypeGetApplicationAppVersionUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetApplicationAppVersionUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetApplicationAppVersionOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	I18nKeyListApplicationAppVersionZhCn = "zh_cn" // 中文
	I18nKeyListApplicationAppVersionEnUs = "en_us" // 英文
	I18nKeyListApplicationAppVersionJaJp = "ja_jp" // 日文
)
View Source
const (
	UserIdTypeListApplicationAppVersionUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListApplicationAppVersionUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListApplicationAppVersionOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	AppVersionStatusUnknown    = 0 // 未知状态
	AppVersionStatusAudited    = 1 // 审核通过
	AppVersionStatusReject     = 2 // 审核拒绝
	AppVersionStatusUnderAudit = 3 // 审核中
	AppVersionStatusUnaudit    = 4 // 未提交审核

)
View Source
const (
	UserIdTypePatchApplicationAppVersionUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypePatchApplicationAppVersionUnionId = "union_id" // 以union_id来识别用户
	UserIdTypePatchApplicationAppVersionOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	OpenFeedbackTypeFault  = 1 // 故障反馈
	OpenFeedbackTypeAdvice = 2 // 产品建议

)
View Source
const (
	OpenMarkStatusUnmarked   = 0 // 反馈未处理
	OpenMarkStatusMarked     = 1 // 反馈已处理
	OpenMarkStatusProcessing = 2 // 反馈处理中
	OpenMarkStatusClosed     = 3 // 反馈已关闭

)
View Source
const (
	UserIdTypeListApplicationFeedbackOpenId  = "open_id"  // 用户的 open id
	UserIdTypeListApplicationFeedbackUnionId = "union_id" // 用户的 union id
	UserIdTypeListApplicationFeedbackUserId  = "user_id"  // 用户的 user id
)
View Source
const (
	UserIdTypePatchApplicationFeedbackOpenId  = "open_id"  // 用户的 open id
	UserIdTypePatchApplicationFeedbackUnionId = "union_id" // 用户的 union id
	UserIdTypePatchApplicationFeedbackUserId  = "user_id"  // 用户的 user id
)
View Source
const (
	OpenMarkStatusPatchApplicationFeedbackUnmarked   = 0 // 反馈未处理
	OpenMarkStatusPatchApplicationFeedbackMarked     = 1 // 反馈已处理
	OpenMarkStatusPatchApplicationFeedbackProcessing = 2 // 反馈处理中
	OpenMarkStatusPatchApplicationFeedbackClosed     = 3 // 反馈已关闭

)

Variables

This section is empty.

Functions

This section is empty.

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"`         // 加号菜单
}

type AppAbilityBuilder

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

func NewAppAbilityBuilder

func NewAppAbilityBuilder() *AppAbilityBuilder

func (*AppAbilityBuilder) Bot

func (builder *AppAbilityBuilder) Bot(bot *Bot) *AppAbilityBuilder

机器人能力

示例值:

func (*AppAbilityBuilder) Build

func (builder *AppAbilityBuilder) Build() *AppAbility

func (*AppAbilityBuilder) CloudDoc

func (builder *AppAbilityBuilder) CloudDoc(cloudDoc *CloudDoc) *AppAbilityBuilder

云文档应用

示例值:

func (*AppAbilityBuilder) DocsBlocks

func (builder *AppAbilityBuilder) DocsBlocks(docsBlocks []*DocsBlock) *AppAbilityBuilder

云文档小组件

示例值:

func (*AppAbilityBuilder) Gadget

func (builder *AppAbilityBuilder) Gadget(gadget *Gadget) *AppAbilityBuilder

小程序能力

示例值:

func (*AppAbilityBuilder) MessageAction

func (builder *AppAbilityBuilder) MessageAction(messageAction *MessageAction) *AppAbilityBuilder

消息快捷操作

示例值:

func (*AppAbilityBuilder) Navigate

func (builder *AppAbilityBuilder) Navigate(navigate *Navigate) *AppAbilityBuilder

主导航小程序

示例值:

func (*AppAbilityBuilder) PlusMenu

func (builder *AppAbilityBuilder) PlusMenu(plusMenu *PlusMenu) *AppAbilityBuilder

加号菜单

示例值:

func (*AppAbilityBuilder) WebApp

func (builder *AppAbilityBuilder) WebApp(webApp *WebApp) *AppAbilityBuilder

网页能力

示例值:

func (*AppAbilityBuilder) WorkplaceWidgets

func (builder *AppAbilityBuilder) WorkplaceWidgets(workplaceWidgets []*WorkplaceWidget) *AppAbilityBuilder

小组件能力

示例值:

type AppAdminUser

type AppAdminUser struct {
	AdminType []string `json:"admin_type,omitempty"` // 管理员类型列表,如果该管理员同时是超级管理员 又是管理员,则同时返回两个角色。 ""super_admin"":超级管理员 ""admin"":管理员 返回示例:[""super_admin"",""admin""]"
	UserId    *string  `json:"user_id,omitempty"`    // 反馈用户id,租户内用户的唯一标识 ,ID值与查询参数中的user_id_type对应
}

type AppAdminUserBuilder

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

func NewAppAdminUserBuilder

func NewAppAdminUserBuilder() *AppAdminUserBuilder

func (*AppAdminUserBuilder) AdminType

func (builder *AppAdminUserBuilder) AdminType(adminType []string) *AppAdminUserBuilder

管理员类型列表,如果该管理员同时是超级管理员 又是管理员,则同时返回两个角色。 ""super_admin"":超级管理员 ""admin"":管理员 返回示例:[""super_admin"",""admin""]"

示例值:["admin","super_admin"]

func (*AppAdminUserBuilder) Build

func (builder *AppAdminUserBuilder) Build() *AppAdminUser

func (*AppAdminUserBuilder) UserId

func (builder *AppAdminUserBuilder) UserId(userId string) *AppAdminUserBuilder

反馈用户id,租户内用户的唯一标识 ,ID值与查询参数中的user_id_type对应

示例值:6865121785549946899

type AppBadge

type AppBadge struct {
	UserId  *string         `json:"user_id,omitempty"` // 用户ID
	Version *string         `json:"version,omitempty"` // badge数据版本号
	Extra   *string         `json:"extra,omitempty"`   // badge extra 信息
	Pc      *ClientBadgeNum `json:"pc,omitempty"`      // pc端badge数量
	Mobile  *ClientBadgeNum `json:"mobile,omitempty"`  // 移动端badge数量
}

type AppBadgeBuilder

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

func NewAppBadgeBuilder

func NewAppBadgeBuilder() *AppBadgeBuilder

func (*AppBadgeBuilder) Build

func (builder *AppBadgeBuilder) Build() *AppBadge

func (*AppBadgeBuilder) Extra

func (builder *AppBadgeBuilder) Extra(extra string) *AppBadgeBuilder

badge extra 信息

示例值:{}

func (*AppBadgeBuilder) Mobile

func (builder *AppBadgeBuilder) Mobile(mobile *ClientBadgeNum) *AppBadgeBuilder

移动端badge数量

示例值:

func (*AppBadgeBuilder) Pc

pc端badge数量

示例值:

func (*AppBadgeBuilder) UserId

func (builder *AppBadgeBuilder) UserId(userId string) *AppBadgeBuilder

用户ID

示例值:ou_d317f090b7258ad0372aa53963cda70d

func (*AppBadgeBuilder) Version

func (builder *AppBadgeBuilder) Version(version string) *AppBadgeBuilder

badge数据版本号

示例值:1664360599355

type AppCommonCategory

type AppCommonCategory struct {
	I18nKey  *string `json:"i18n_key,omitempty"` // 国际化语言的 key
	Category *string `json:"category,omitempty"` // 应用分类
}

type AppCommonCategoryBuilder

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

func NewAppCommonCategoryBuilder

func NewAppCommonCategoryBuilder() *AppCommonCategoryBuilder

func (*AppCommonCategoryBuilder) Build

func (builder *AppCommonCategoryBuilder) Build() *AppCommonCategory

func (*AppCommonCategoryBuilder) Category

func (builder *AppCommonCategoryBuilder) Category(category string) *AppCommonCategoryBuilder

应用分类

示例值:分析工具

func (*AppCommonCategoryBuilder) I18nKey

func (builder *AppCommonCategoryBuilder) I18nKey(i18nKey string) *AppCommonCategoryBuilder

国际化语言的 key

示例值:zh_cn

type AppCustomCategory

type AppCustomCategory struct {
	I18nKey     *string  `json:"i18n_key,omitempty"`    // 国际化语言的 key
	Description *string  `json:"description,omitempty"` // 应用权限的国际化描述
	AppIds      []string `json:"app_ids,omitempty"`     // 在该分组下的应用 id 列表
}

type AppCustomCategoryBuilder

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

func NewAppCustomCategoryBuilder

func NewAppCustomCategoryBuilder() *AppCustomCategoryBuilder

func (*AppCustomCategoryBuilder) AppIds

func (builder *AppCustomCategoryBuilder) AppIds(appIds []string) *AppCustomCategoryBuilder

在该分组下的应用 id 列表

示例值:

func (*AppCustomCategoryBuilder) Build

func (builder *AppCustomCategoryBuilder) Build() *AppCustomCategory

func (*AppCustomCategoryBuilder) Description

func (builder *AppCustomCategoryBuilder) Description(description string) *AppCustomCategoryBuilder

应用权限的国际化描述

示例值:获取应用信息

func (*AppCustomCategoryBuilder) I18nKey

func (builder *AppCustomCategoryBuilder) I18nKey(i18nKey string) *AppCustomCategoryBuilder

国际化语言的 key

示例值:zh_cn

type AppCustomCategoryI18nInfo

type AppCustomCategoryI18nInfo struct {
	I18nKey *string `json:"i18n_key,omitempty"` // 国际化语言的 key
	Name    *string `json:"name,omitempty"`     // 自定义分组的国际化名称
}

type AppCustomCategoryI18nInfoBuilder

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

func NewAppCustomCategoryI18nInfoBuilder

func NewAppCustomCategoryI18nInfoBuilder() *AppCustomCategoryI18nInfoBuilder

func (*AppCustomCategoryI18nInfoBuilder) Build

func (*AppCustomCategoryI18nInfoBuilder) I18nKey

国际化语言的 key

示例值:zh_cn

func (*AppCustomCategoryI18nInfoBuilder) Name

自定义分组的国际化名称

示例值:名称

type AppI18nInfo

type AppI18nInfo struct {
	I18nKey     *string `json:"i18n_key,omitempty"`    // 国际化语言的 key
	Name        *string `json:"name,omitempty"`        // 应用国际化名称
	Description *string `json:"description,omitempty"` // 应用国际化描述(副标题)
	HelpUse     *string `json:"help_use,omitempty"`    // 帮助国际化文档链接
}

type AppI18nInfoBuilder

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

func NewAppI18nInfoBuilder

func NewAppI18nInfoBuilder() *AppI18nInfoBuilder

func (*AppI18nInfoBuilder) Build

func (builder *AppI18nInfoBuilder) Build() *AppI18nInfo

func (*AppI18nInfoBuilder) Description

func (builder *AppI18nInfoBuilder) Description(description string) *AppI18nInfoBuilder

应用国际化描述(副标题)

示例值:应用描述

func (*AppI18nInfoBuilder) HelpUse

func (builder *AppI18nInfoBuilder) HelpUse(helpUse string) *AppI18nInfoBuilder

帮助国际化文档链接

示例值:https://www.example.com

func (*AppI18nInfoBuilder) I18nKey

func (builder *AppI18nInfoBuilder) I18nKey(i18nKey string) *AppI18nInfoBuilder

国际化语言的 key

示例值:zh_cn

func (*AppI18nInfoBuilder) Name

func (builder *AppI18nInfoBuilder) Name(name string) *AppI18nInfoBuilder

应用国际化名称

示例值:应用名称

type AppMessageTrendItem

type AppMessageTrendItem struct {
	ChatType    *string           `json:"chat_type,omitempty"`    // 聊天类型,private:私聊;group:群聊
	EventType   *string           `json:"event_type,omitempty"`   // 消息事件类型,message_send:已发送消息;bot_notify_get_message:bot 通知收到消息;message_read:消息已读
	MessageType *string           `json:"message_type,omitempty"` // 消息类型,大小写不敏感,text:文本消息;image:图片消息;interactive:卡片消息;post:富文本消息;share_chat:群名片
	Trend       []*UsageTrendItem `json:"trend,omitempty"`        //
}

type AppMessageTrendItemBuilder

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

func NewAppMessageTrendItemBuilder

func NewAppMessageTrendItemBuilder() *AppMessageTrendItemBuilder

func (*AppMessageTrendItemBuilder) Build

func (*AppMessageTrendItemBuilder) ChatType

func (builder *AppMessageTrendItemBuilder) ChatType(chatType string) *AppMessageTrendItemBuilder

聊天类型,private:私聊;group:群聊

示例值:

func (*AppMessageTrendItemBuilder) EventType

func (builder *AppMessageTrendItemBuilder) EventType(eventType string) *AppMessageTrendItemBuilder

消息事件类型,message_send:已发送消息;bot_notify_get_message:bot 通知收到消息;message_read:消息已读

示例值:

func (*AppMessageTrendItemBuilder) MessageType

func (builder *AppMessageTrendItemBuilder) MessageType(messageType string) *AppMessageTrendItemBuilder

消息类型,大小写不敏感,text:文本消息;image:图片消息;interactive:卡片消息;post:富文本消息;share_chat:群名片

示例值:

func (*AppMessageTrendItemBuilder) Trend

示例值:

type AppRecommendRule added in v3.0.3

type AppRecommendRule struct {
	Id                            *string                         `json:"id,omitempty"`                               // 推荐规则 ID
	Name                          *string                         `json:"name,omitempty"`                             // 推荐规则名称
	Status                        *string                         `json:"status,omitempty"`                           // 推荐规则启用状态
	VisibilityInfo                *AppRecommendRuleVisibilityInfo `json:"visibility_info,omitempty"`                  // 推荐规则可见性信息
	RecommendItemInfos            []*AppRecommendRuleItemInfo     `json:"recommend_item_infos,omitempty"`             // 不可移除推荐应用项列表
	DistributedRecommendItemInfos []*AppRecommendRuleItemInfo     `json:"distributed_recommend_item_infos,omitempty"` // 可移除推荐应用项列表
}

type AppRecommendRuleBuilder added in v3.0.3

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

func NewAppRecommendRuleBuilder added in v3.0.3

func NewAppRecommendRuleBuilder() *AppRecommendRuleBuilder

func (*AppRecommendRuleBuilder) Build added in v3.0.3

func (builder *AppRecommendRuleBuilder) Build() *AppRecommendRule

func (*AppRecommendRuleBuilder) DistributedRecommendItemInfos added in v3.0.3

func (builder *AppRecommendRuleBuilder) DistributedRecommendItemInfos(distributedRecommendItemInfos []*AppRecommendRuleItemInfo) *AppRecommendRuleBuilder

可移除推荐应用项列表

示例值:

func (*AppRecommendRuleBuilder) Id added in v3.0.3

推荐规则 ID

示例值:7137896480337641492

func (*AppRecommendRuleBuilder) Name added in v3.0.3

推荐规则名称

示例值:管理员小白的推荐规则

func (*AppRecommendRuleBuilder) RecommendItemInfos added in v3.0.3

func (builder *AppRecommendRuleBuilder) RecommendItemInfos(recommendItemInfos []*AppRecommendRuleItemInfo) *AppRecommendRuleBuilder

不可移除推荐应用项列表

示例值:

func (*AppRecommendRuleBuilder) Status added in v3.0.3

func (builder *AppRecommendRuleBuilder) Status(status string) *AppRecommendRuleBuilder

推荐规则启用状态

示例值:open

func (*AppRecommendRuleBuilder) VisibilityInfo added in v3.0.3

func (builder *AppRecommendRuleBuilder) VisibilityInfo(visibilityInfo *AppRecommendRuleVisibilityInfo) *AppRecommendRuleBuilder

推荐规则可见性信息

示例值:

type AppRecommendRuleItemInfo added in v3.0.3

type AppRecommendRuleItemInfo struct {
	ItemId        *string                           `json:"item_id,omitempty"`        // 推荐应用项 ID
	ItemType      *string                           `json:"item_type,omitempty"`      // 推荐应用项类型
	Name          *string                           `json:"name,omitempty"`           // 推荐应用项名称
	Description   *string                           `json:"description,omitempty"`    // 推荐应用项描述
	LinkUrl       *string                           `json:"link_url,omitempty"`       // 链接类型应用项的跳转链接(应用类型该字段为空)
	ClientId      *string                           `json:"client_id,omitempty"`      // 应用类型应用项的 app id(链接类型该字段为空)
	IconUrl       *string                           `json:"icon_url,omitempty"`       // 应用项图标链接
	DefaultLocale *string                           `json:"default_locale,omitempty"` // 链接类型应用项的默认展示语种(应用类型该字段为空)
	I18nName      *AppRecommendRuleItemInfoI18nName `json:"i18n_name,omitempty"`      // 应用项的多语种名称
}

type AppRecommendRuleItemInfoBuilder added in v3.0.3

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

func NewAppRecommendRuleItemInfoBuilder added in v3.0.3

func NewAppRecommendRuleItemInfoBuilder() *AppRecommendRuleItemInfoBuilder

func (*AppRecommendRuleItemInfoBuilder) Build added in v3.0.3

func (*AppRecommendRuleItemInfoBuilder) ClientId added in v3.0.3

应用类型应用项的 app id(链接类型该字段为空)

示例值:cli_a274440757b8901c

func (*AppRecommendRuleItemInfoBuilder) DefaultLocale added in v3.0.3

func (builder *AppRecommendRuleItemInfoBuilder) DefaultLocale(defaultLocale string) *AppRecommendRuleItemInfoBuilder

链接类型应用项的默认展示语种(应用类型该字段为空)

示例值:zh_cn

func (*AppRecommendRuleItemInfoBuilder) Description added in v3.0.3

func (builder *AppRecommendRuleItemInfoBuilder) Description(description string) *AppRecommendRuleItemInfoBuilder

推荐应用项描述

示例值:审批应用的描述

func (*AppRecommendRuleItemInfoBuilder) I18nName added in v3.0.3

应用项的多语种名称

示例值:

func (*AppRecommendRuleItemInfoBuilder) ItemId added in v3.0.3

推荐应用项 ID

示例值:7137896480337625108

func (*AppRecommendRuleItemInfoBuilder) ItemType added in v3.0.3

推荐应用项类型

示例值:application

func (*AppRecommendRuleItemInfoBuilder) LinkUrl added in v3.0.3

链接类型应用项的跳转链接(应用类型该字段为空)

示例值:http://www.example.com

func (*AppRecommendRuleItemInfoBuilder) Name added in v3.0.3

推荐应用项名称

示例值:审批

type AppRecommendRuleItemInfoI18nName added in v3.0.3

type AppRecommendRuleItemInfoI18nName struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 应用项的简体中文名称
	ZhHk *string `json:"zh_hk,omitempty"` // 应用项的繁体中文(中国香港)名称
	ZhTw *string `json:"zh_tw,omitempty"` // 应用项的繁体中文(中国台湾)名称
	EnUs *string `json:"en_us,omitempty"` // 应用项的英文名称
	JaJp *string `json:"ja_jp,omitempty"` // 应用项的日文名称
}

type AppRecommendRuleItemInfoI18nNameBuilder added in v3.0.3

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

func NewAppRecommendRuleItemInfoI18nNameBuilder added in v3.0.3

func NewAppRecommendRuleItemInfoI18nNameBuilder() *AppRecommendRuleItemInfoI18nNameBuilder

func (*AppRecommendRuleItemInfoI18nNameBuilder) Build added in v3.0.3

func (*AppRecommendRuleItemInfoI18nNameBuilder) EnUs added in v3.0.3

应用项的英文名称

示例值:Approval

func (*AppRecommendRuleItemInfoI18nNameBuilder) JaJp added in v3.0.3

应用项的日文名称

示例值:承認

func (*AppRecommendRuleItemInfoI18nNameBuilder) ZhCn added in v3.0.3

应用项的简体中文名称

示例值:审批

func (*AppRecommendRuleItemInfoI18nNameBuilder) ZhHk added in v3.0.3

应用项的繁体中文(中国香港)名称

示例值:審批

func (*AppRecommendRuleItemInfoI18nNameBuilder) ZhTw added in v3.0.3

应用项的繁体中文(中国台湾)名称

示例值:審批

type AppRecommendRuleVisibilityInfo added in v3.0.3

type AppRecommendRuleVisibilityInfo struct {
	IsAll         *bool    `json:"is_all,omitempty"`         // 是否全员可见
	DepartmentIds []string `json:"department_ids,omitempty"` // 可见部门 ID 列表
	UserIds       []string `json:"user_ids,omitempty"`       // 可见用户 ID 列表
	GroupIds      []string `json:"group_ids,omitempty"`      // 可见用户组 ID 列表
}

type AppRecommendRuleVisibilityInfoBuilder added in v3.0.3

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

func NewAppRecommendRuleVisibilityInfoBuilder added in v3.0.3

func NewAppRecommendRuleVisibilityInfoBuilder() *AppRecommendRuleVisibilityInfoBuilder

func (*AppRecommendRuleVisibilityInfoBuilder) Build added in v3.0.3

func (*AppRecommendRuleVisibilityInfoBuilder) DepartmentIds added in v3.0.3

可见部门 ID 列表

示例值:od-fef5204d44fa03fad66278cb8e8036e4

func (*AppRecommendRuleVisibilityInfoBuilder) GroupIds added in v3.0.3

可见用户组 ID 列表

示例值:7137608198773686291

func (*AppRecommendRuleVisibilityInfoBuilder) IsAll added in v3.0.3

是否全员可见

示例值:true

func (*AppRecommendRuleVisibilityInfoBuilder) UserIds added in v3.0.3

可见用户 ID 列表

示例值:ou_35101d538d5b3ad10a5f3480f4c27972

type AppScope

type AppScope struct {
	Scope       *string `json:"scope,omitempty"`       // 应用权限
	Description *string `json:"description,omitempty"` // 应用权限的国际化描述
	Level       *int    `json:"level,omitempty"`       // 权限等级描述
}

type AppScopeBuilder

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

func NewAppScopeBuilder

func NewAppScopeBuilder() *AppScopeBuilder

func (*AppScopeBuilder) Build

func (builder *AppScopeBuilder) Build() *AppScope

func (*AppScopeBuilder) Description

func (builder *AppScopeBuilder) Description(description string) *AppScopeBuilder

应用权限的国际化描述

示例值:获取应用信息

func (*AppScopeBuilder) Level

func (builder *AppScopeBuilder) Level(level int) *AppScopeBuilder

权限等级描述

示例值:1

func (*AppScopeBuilder) Scope

func (builder *AppScopeBuilder) Scope(scope string) *AppScopeBuilder

应用权限

示例值:contact:user.base

type AppScopeI18nInfo

type AppScopeI18nInfo struct {
	I18nKey     *string `json:"i18n_key,omitempty"`    // 国际化语言的 key
	Description *string `json:"description,omitempty"` // 应用权限的国际化描述
}

type AppScopeI18nInfoBuilder

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

func NewAppScopeI18nInfoBuilder

func NewAppScopeI18nInfoBuilder() *AppScopeI18nInfoBuilder

func (*AppScopeI18nInfoBuilder) Build

func (builder *AppScopeI18nInfoBuilder) Build() *AppScopeI18nInfo

func (*AppScopeI18nInfoBuilder) Description

func (builder *AppScopeI18nInfoBuilder) Description(description string) *AppScopeI18nInfoBuilder

应用权限的国际化描述

示例值:获取应用信息

func (*AppScopeI18nInfoBuilder) I18nKey

func (builder *AppScopeI18nInfoBuilder) I18nKey(i18nKey string) *AppScopeI18nInfoBuilder

国际化语言的 key

示例值:zh_cn

type AppScopes

type AppScopes struct {
	HighLevelScopes []string `json:"high_level_scopes,omitempty"` // 应用高级权限列表
	LowLevelScopes  []string `json:"low_level_scopes,omitempty"`  // 应用低级权限列表
}

type AppScopesBuilder

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

func NewAppScopesBuilder

func NewAppScopesBuilder() *AppScopesBuilder

func (*AppScopesBuilder) Build

func (builder *AppScopesBuilder) Build() *AppScopes

func (*AppScopesBuilder) HighLevelScopes

func (builder *AppScopesBuilder) HighLevelScopes(highLevelScopes []string) *AppScopesBuilder

应用高级权限列表

示例值:

func (*AppScopesBuilder) LowLevelScopes

func (builder *AppScopesBuilder) LowLevelScopes(lowLevelScopes []string) *AppScopesBuilder

应用低级权限列表

示例值:

type AppUsageTrendItems

type AppUsageTrendItems struct {
	Id    *string           `json:"id,omitempty"`    // 部门号
	Trend []*UsageTrendItem `json:"trend,omitempty"` // 趋势统计
}

type AppUsageTrendItemsBuilder

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

func NewAppUsageTrendItemsBuilder

func NewAppUsageTrendItemsBuilder() *AppUsageTrendItemsBuilder

func (*AppUsageTrendItemsBuilder) Build

func (*AppUsageTrendItemsBuilder) Id

部门号

示例值:

func (*AppUsageTrendItemsBuilder) Trend

趋势统计

示例值:

type AppVersionId

type AppVersionId struct {
	Version   *string `json:"version,omitempty"`    // 开发者填入的应用版本 ID
	VersionId *string `json:"version_id,omitempty"` // 唯一标识应用版本的 ID
}

type AppVersionIdBuilder

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

func NewAppVersionIdBuilder

func NewAppVersionIdBuilder() *AppVersionIdBuilder

func (*AppVersionIdBuilder) Build

func (builder *AppVersionIdBuilder) Build() *AppVersionId

func (*AppVersionIdBuilder) Version

func (builder *AppVersionIdBuilder) Version(version string) *AppVersionIdBuilder

开发者填入的应用版本 ID

示例值:1.0.0

func (*AppVersionIdBuilder) VersionId

func (builder *AppVersionIdBuilder) VersionId(versionId string) *AppVersionIdBuilder

唯一标识应用版本的 ID

示例值:oav_d317f090b7258ad0372aa53963cda70d

type AppVersionRemark

type AppVersionRemark struct {
	Remark       *string        `json:"remark,omitempty"`        // 备注说明
	UpdateRemark *string        `json:"update_remark,omitempty"` // 更新说明
	Visibility   *AppVisibility `json:"visibility,omitempty"`    // 应用当前版本开发者编辑的可见性建议,若开发者未编辑可见性建议,则该字段无内容
}

type AppVersionRemarkBuilder

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

func NewAppVersionRemarkBuilder

func NewAppVersionRemarkBuilder() *AppVersionRemarkBuilder

func (*AppVersionRemarkBuilder) Build

func (builder *AppVersionRemarkBuilder) Build() *AppVersionRemark

func (*AppVersionRemarkBuilder) Remark

func (builder *AppVersionRemarkBuilder) Remark(remark string) *AppVersionRemarkBuilder

备注说明

示例值:备注说明

func (*AppVersionRemarkBuilder) UpdateRemark

func (builder *AppVersionRemarkBuilder) UpdateRemark(updateRemark string) *AppVersionRemarkBuilder

更新说明

示例值:更新说明

func (*AppVersionRemarkBuilder) Visibility

func (builder *AppVersionRemarkBuilder) Visibility(visibility *AppVisibility) *AppVersionRemarkBuilder

应用当前版本开发者编辑的可见性建议,若开发者未编辑可见性建议,则该字段无内容

示例值:

type AppVersionRemarkEvent

type AppVersionRemarkEvent struct {
	Remark       *string             `json:"remark,omitempty"`        // 备注说明
	UpdateRemark *string             `json:"update_remark,omitempty"` // 更新说明
	Visibility   *AppVisibilityEvent `json:"visibility,omitempty"`    // 可见性名单
}

type AppVersionRemarkEventBuilder

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

func NewAppVersionRemarkEventBuilder

func NewAppVersionRemarkEventBuilder() *AppVersionRemarkEventBuilder

func (*AppVersionRemarkEventBuilder) Build

func (*AppVersionRemarkEventBuilder) Remark

备注说明

示例值:备注说明

func (*AppVersionRemarkEventBuilder) UpdateRemark

func (builder *AppVersionRemarkEventBuilder) UpdateRemark(updateRemark string) *AppVersionRemarkEventBuilder

更新说明

示例值:更新说明

func (*AppVersionRemarkEventBuilder) Visibility

可见性名单

示例值:

type AppVisibility

type AppVisibility struct {
	IsAll         *bool           `json:"is_all,omitempty"`         // 是否全员可见
	VisibleList   *AppVisibleList `json:"visible_list,omitempty"`   // 可见名单
	InvisibleList *AppVisibleList `json:"invisible_list,omitempty"` // 不可见名单
}

type AppVisibilityBuilder

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

func NewAppVisibilityBuilder

func NewAppVisibilityBuilder() *AppVisibilityBuilder

func (*AppVisibilityBuilder) Build

func (builder *AppVisibilityBuilder) Build() *AppVisibility

func (*AppVisibilityBuilder) InvisibleList

func (builder *AppVisibilityBuilder) InvisibleList(invisibleList *AppVisibleList) *AppVisibilityBuilder

不可见名单

示例值:

func (*AppVisibilityBuilder) IsAll

func (builder *AppVisibilityBuilder) IsAll(isAll bool) *AppVisibilityBuilder

是否全员可见

示例值:false

func (*AppVisibilityBuilder) VisibleList

func (builder *AppVisibilityBuilder) VisibleList(visibleList *AppVisibleList) *AppVisibilityBuilder

可见名单

示例值:

type AppVisibilityEvent

type AppVisibilityEvent struct {
	IsAll         *bool                `json:"is_all,omitempty"`         // 是否全员可见
	VisibleList   *AppVisibleListEvent `json:"visible_list,omitempty"`   // 可见名单
	InvisibleList *AppVisibleListEvent `json:"invisible_list,omitempty"` // 不可见名单
}

type AppVisibilityEventBuilder

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

func NewAppVisibilityEventBuilder

func NewAppVisibilityEventBuilder() *AppVisibilityEventBuilder

func (*AppVisibilityEventBuilder) Build

func (*AppVisibilityEventBuilder) InvisibleList

func (builder *AppVisibilityEventBuilder) InvisibleList(invisibleList *AppVisibleListEvent) *AppVisibilityEventBuilder

不可见名单

示例值:

func (*AppVisibilityEventBuilder) IsAll

是否全员可见

示例值:false

func (*AppVisibilityEventBuilder) VisibleList

func (builder *AppVisibilityEventBuilder) VisibleList(visibleList *AppVisibleListEvent) *AppVisibilityEventBuilder

可见名单

示例值:

type AppVisibilityItem

type AppVisibilityItem struct {
	UserId       *string `json:"user_id,omitempty"`       // 租户内用户的唯一标识,ID值与查询参数中的user_id_type 对应
	DepartmentId *string `json:"department_id,omitempty"` // 用户所属部门的ID,ID值与查询参数中的department_id_type 对应
	GroupId      *string `json:"group_id,omitempty"`      // 用户组 ID group_id 用来标识租户内一个唯一的用户组
}

type AppVisibilityItemBuilder

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

func NewAppVisibilityItemBuilder

func NewAppVisibilityItemBuilder() *AppVisibilityItemBuilder

func (*AppVisibilityItemBuilder) Build

func (builder *AppVisibilityItemBuilder) Build() *AppVisibilityItem

func (*AppVisibilityItemBuilder) DepartmentId

func (builder *AppVisibilityItemBuilder) DepartmentId(departmentId string) *AppVisibilityItemBuilder

用户所属部门的ID,ID值与查询参数中的department_id_type 对应

示例值:od-aa2c50a04769feefededb7a05b7525a8

func (*AppVisibilityItemBuilder) GroupId

func (builder *AppVisibilityItemBuilder) GroupId(groupId string) *AppVisibilityItemBuilder

用户组 ID group_id 用来标识租户内一个唯一的用户组

示例值:

func (*AppVisibilityItemBuilder) UserId

func (builder *AppVisibilityItemBuilder) UserId(userId string) *AppVisibilityItemBuilder

租户内用户的唯一标识,ID值与查询参数中的user_id_type 对应

示例值:ou_d317f090b7258ad0372aa53963cda70d

type AppVisibleList

type AppVisibleList struct {
	OpenIds       []string `json:"open_ids,omitempty"`       // 可见性成员 open_id 列表
	DepartmentIds []string `json:"department_ids,omitempty"` // 可见性部门的 id 列表
}

type AppVisibleListBuilder

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

func NewAppVisibleListBuilder

func NewAppVisibleListBuilder() *AppVisibleListBuilder

func (*AppVisibleListBuilder) Build

func (builder *AppVisibleListBuilder) Build() *AppVisibleList

func (*AppVisibleListBuilder) DepartmentIds

func (builder *AppVisibleListBuilder) DepartmentIds(departmentIds []string) *AppVisibleListBuilder

可见性部门的 id 列表

示例值:

func (*AppVisibleListBuilder) OpenIds

func (builder *AppVisibleListBuilder) OpenIds(openIds []string) *AppVisibleListBuilder

可见性成员 open_id 列表

示例值:

type AppVisibleListEvent

type AppVisibleListEvent struct {
	OpenIds       []*UserId `json:"open_ids,omitempty"`       // 可见性成员 id 列表
	DepartmentIds []string  `json:"department_ids,omitempty"` // 可见性部门的 id 列表
}

type AppVisibleListEventBuilder

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

func NewAppVisibleListEventBuilder

func NewAppVisibleListEventBuilder() *AppVisibleListEventBuilder

func (*AppVisibleListEventBuilder) Build

func (*AppVisibleListEventBuilder) DepartmentIds

func (builder *AppVisibleListEventBuilder) DepartmentIds(departmentIds []string) *AppVisibleListEventBuilder

可见性部门的 id 列表

示例值:

func (*AppVisibleListEventBuilder) OpenIds

func (builder *AppVisibleListEventBuilder) OpenIds(openIds []*UserId) *AppVisibleListEventBuilder

可见性成员 id 列表

示例值:

type Application

type Application struct {
	AppId            *string           `json:"app_id,omitempty"`             // 应用的 app_id
	CreatorId        *string           `json:"creator_id,omitempty"`         // 应用创建者(所有者)
	Status           *int              `json:"status,omitempty"`             // 应用状态
	SceneType        *int              `json:"scene_type,omitempty"`         // 应用类型
	PaymentType      *int              `json:"payment_type,omitempty"`       // 付费类型
	RedirectUrls     []string          `json:"redirect_urls,omitempty"`      // 安全设置中的重定向 URL
	OnlineVersionId  *string           `json:"online_version_id,omitempty"`  // 发布在线上的应用版本 ID,若没有则为空
	UnauditVersionId *string           `json:"unaudit_version_id,omitempty"` // 在审核中的版本 ID,若没有则为空
	AppName          *string           `json:"app_name,omitempty"`           // 应用名称
	AvatarUrl        *string           `json:"avatar_url,omitempty"`         // 应用图标 url
	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"`  // 应用分类的国际化描述
	Owner            *ApplicationOwner `json:"owner,omitempty"`              // 应用的所有者信息
}

type ApplicationAppUsage

type ApplicationAppUsage struct {
	MetricName  *string `json:"metric_name,omitempty"`  // 指标名称
	MetricValue *int    `json:"metric_value,omitempty"` // 指标值
}

type ApplicationAppUsageBuilder

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

func NewApplicationAppUsageBuilder

func NewApplicationAppUsageBuilder() *ApplicationAppUsageBuilder

func (*ApplicationAppUsageBuilder) Build

func (*ApplicationAppUsageBuilder) MetricName

func (builder *ApplicationAppUsageBuilder) MetricName(metricName string) *ApplicationAppUsageBuilder

指标名称

示例值:pv

func (*ApplicationAppUsageBuilder) MetricValue

func (builder *ApplicationAppUsageBuilder) MetricValue(metricValue int) *ApplicationAppUsageBuilder

指标值

示例值:100

type ApplicationAppVersion

type ApplicationAppVersion struct {
	AppId            *string           `json:"app_id,omitempty"`            // 应用 id
	Version          *string           `json:"version,omitempty"`           // 在开发者后台填入的应用版本号
	VersionId        *string           `json:"version_id,omitempty"`        // 唯一标识应用版本的 ID
	AppName          *string           `json:"app_name,omitempty"`          // 应用默认名称
	AvatarUrl        *string           `json:"avatar_url,omitempty"`        // 应用头像 url
	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       *string           `json:"create_time,omitempty"`       // 版本创建时间(单位:s)
	PublishTime      *string           `json:"publish_time,omitempty"`      // 版本发布时间(单位:s)
	Ability          *AppAbility       `json:"ability,omitempty"`           // 当前版本下应用开启的能力
	Remark           *AppVersionRemark `json:"remark,omitempty"`            // 跟随应用版本的信息
}

type ApplicationAppVersionBuilder

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

func NewApplicationAppVersionBuilder

func NewApplicationAppVersionBuilder() *ApplicationAppVersionBuilder

func (*ApplicationAppVersionBuilder) Ability

当前版本下应用开启的能力

示例值:

func (*ApplicationAppVersionBuilder) AppId

应用 id

示例值:cli_9f3ca975326b501b

func (*ApplicationAppVersionBuilder) AppName

应用默认名称

示例值:应用名称

func (*ApplicationAppVersionBuilder) AvatarUrl

func (builder *ApplicationAppVersionBuilder) AvatarUrl(avatarUrl string) *ApplicationAppVersionBuilder

应用头像 url

示例值:https://www.example.com

func (*ApplicationAppVersionBuilder) BackHomeUrl

func (builder *ApplicationAppVersionBuilder) BackHomeUrl(backHomeUrl string) *ApplicationAppVersionBuilder

后台主页地址

示例值:https://www.example.com

func (*ApplicationAppVersionBuilder) Build

func (*ApplicationAppVersionBuilder) CommonCategories

func (builder *ApplicationAppVersionBuilder) CommonCategories(commonCategories []string) *ApplicationAppVersionBuilder

应用分类的国际化描述

示例值:

func (*ApplicationAppVersionBuilder) CreateTime

func (builder *ApplicationAppVersionBuilder) CreateTime(createTime string) *ApplicationAppVersionBuilder

版本创建时间(单位:s)

示例值:1610462759

func (*ApplicationAppVersionBuilder) Description

func (builder *ApplicationAppVersionBuilder) Description(description string) *ApplicationAppVersionBuilder

应用默认描述

示例值:应用描述

func (*ApplicationAppVersionBuilder) Events

应用已订阅开放平台事件列表

示例值:

func (*ApplicationAppVersionBuilder) I18n

应用的国际化信息列表

示例值:

func (*ApplicationAppVersionBuilder) PublishTime

func (builder *ApplicationAppVersionBuilder) PublishTime(publishTime string) *ApplicationAppVersionBuilder

版本发布时间(单位:s)

示例值:1610462759

func (*ApplicationAppVersionBuilder) Remark

跟随应用版本的信息

示例值:

func (*ApplicationAppVersionBuilder) Scopes

应用权限列表

示例值:

func (*ApplicationAppVersionBuilder) Status

版本状态

示例值:1

func (*ApplicationAppVersionBuilder) Version

在开发者后台填入的应用版本号

示例值:1.0.0

func (*ApplicationAppVersionBuilder) VersionId

func (builder *ApplicationAppVersionBuilder) VersionId(versionId string) *ApplicationAppVersionBuilder

唯一标识应用版本的 ID

示例值:oav_d317f090b7258ad0372aa53963cda70d

type ApplicationAppVersionEvent

type ApplicationAppVersionEvent struct {
	AppId            *string                `json:"app_id,omitempty"`            // 应用 id
	Version          *string                `json:"version,omitempty"`           // 开发者填入的应用版本 ID
	VersionId        *string                `json:"version_id,omitempty"`        // 唯一标识应用版本的 ID
	AppName          *string                `json:"app_name,omitempty"`          // 应用默认名称
	AvatarUrl        *string                `json:"avatar_url,omitempty"`        // 应用头像 url
	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       *string                `json:"create_time,omitempty"`       // 版本创建时间(单位:s)
	PublishTime      *string                `json:"publish_time,omitempty"`      // 版本发布时间(单位:s)
	Ability          *AppAbility            `json:"ability,omitempty"`           // 当前版本下应用开启的能力
	Remark           *AppVersionRemarkEvent `json:"remark,omitempty"`            // 跟随应用版本的信息
}

type ApplicationAppVersionEventBuilder

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

func NewApplicationAppVersionEventBuilder

func NewApplicationAppVersionEventBuilder() *ApplicationAppVersionEventBuilder

func (*ApplicationAppVersionEventBuilder) Ability

当前版本下应用开启的能力

示例值:

func (*ApplicationAppVersionEventBuilder) AppId

应用 id

示例值:cli_9f3ca975326b501b

func (*ApplicationAppVersionEventBuilder) AppName

应用默认名称

示例值:应用名称

func (*ApplicationAppVersionEventBuilder) AvatarUrl

应用头像 url

示例值:https://www.example.com

func (*ApplicationAppVersionEventBuilder) BackHomeUrl

后台主页地址

示例值:https://www.example.com

func (*ApplicationAppVersionEventBuilder) Build

func (*ApplicationAppVersionEventBuilder) CommonCategories

func (builder *ApplicationAppVersionEventBuilder) CommonCategories(commonCategories []string) *ApplicationAppVersionEventBuilder

应用分类的国际化描述

示例值:

func (*ApplicationAppVersionEventBuilder) CreateTime

版本创建时间(单位:s)

示例值:1610462759

func (*ApplicationAppVersionEventBuilder) Description

应用默认描述

示例值:应用描述

func (*ApplicationAppVersionEventBuilder) Events

应用已订阅开放平台事件列表

示例值:

func (*ApplicationAppVersionEventBuilder) I18n

应用的国际化信息列表

示例值:

func (*ApplicationAppVersionEventBuilder) PublishTime

版本发布时间(单位:s)

示例值:1610462759

func (*ApplicationAppVersionEventBuilder) Remark

跟随应用版本的信息

示例值:

func (*ApplicationAppVersionEventBuilder) Scopes

应用权限列表

示例值:

func (*ApplicationAppVersionEventBuilder) Status

版本状态

示例值:1

func (*ApplicationAppVersionEventBuilder) Version

开发者填入的应用版本 ID

示例值:1.0.0

func (*ApplicationAppVersionEventBuilder) VersionId

唯一标识应用版本的 ID

示例值:oav_d317f090b7258ad0372aa53963cda70d

type ApplicationBuilder

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

func NewApplicationBuilder

func NewApplicationBuilder() *ApplicationBuilder

func (*ApplicationBuilder) AppId

func (builder *ApplicationBuilder) AppId(appId string) *ApplicationBuilder

应用的 app_id

示例值:cli_9b445f5258795107

func (*ApplicationBuilder) AppName

func (builder *ApplicationBuilder) AppName(appName string) *ApplicationBuilder

应用名称

示例值:应用名称

func (*ApplicationBuilder) AvatarUrl

func (builder *ApplicationBuilder) AvatarUrl(avatarUrl string) *ApplicationBuilder

应用图标 url

示例值:https://sf1-ttcdn-tos.pstatp.com/img/avatar/d279000ca4d3f7f6aaff~72x72.jpg

func (*ApplicationBuilder) BackHomeUrl

func (builder *ApplicationBuilder) BackHomeUrl(backHomeUrl string) *ApplicationBuilder

后台主页地址

示例值:https://www.example.com

func (*ApplicationBuilder) Build

func (builder *ApplicationBuilder) Build() *Application

func (*ApplicationBuilder) CommonCategories

func (builder *ApplicationBuilder) CommonCategories(commonCategories []string) *ApplicationBuilder

应用分类的国际化描述

示例值:["办公效率"]

func (*ApplicationBuilder) CreatorId

func (builder *ApplicationBuilder) CreatorId(creatorId string) *ApplicationBuilder

应用创建者(所有者)

示例值:ou_d317f090b7258ad0372aa53963cda70d

func (*ApplicationBuilder) Description

func (builder *ApplicationBuilder) Description(description string) *ApplicationBuilder

应用默认描述

示例值:应用描述

func (*ApplicationBuilder) I18n

func (builder *ApplicationBuilder) I18n(i18n []*AppI18nInfo) *ApplicationBuilder

应用的国际化信息列表

示例值:

func (*ApplicationBuilder) OnlineVersionId

func (builder *ApplicationBuilder) OnlineVersionId(onlineVersionId string) *ApplicationBuilder

发布在线上的应用版本 ID,若没有则为空

示例值:oav_d317f090b7258ad0372aa53963cda70d

func (*ApplicationBuilder) Owner added in v3.0.1

func (builder *ApplicationBuilder) Owner(owner *ApplicationOwner) *ApplicationBuilder

应用的所有者信息

示例值:

func (*ApplicationBuilder) PaymentType added in v3.0.1

func (builder *ApplicationBuilder) PaymentType(paymentType int) *ApplicationBuilder

付费类型

示例值:0

func (*ApplicationBuilder) PrimaryLanguage

func (builder *ApplicationBuilder) PrimaryLanguage(primaryLanguage string) *ApplicationBuilder

应用主语言

示例值:zh_cn

func (*ApplicationBuilder) RedirectUrls

func (builder *ApplicationBuilder) RedirectUrls(redirectUrls []string) *ApplicationBuilder

安全设置中的重定向 URL

示例值:

func (*ApplicationBuilder) SceneType

func (builder *ApplicationBuilder) SceneType(sceneType int) *ApplicationBuilder

应用类型

示例值:0

func (*ApplicationBuilder) Scopes

func (builder *ApplicationBuilder) Scopes(scopes []*AppScope) *ApplicationBuilder

应用权限列表

示例值:

func (*ApplicationBuilder) Status

func (builder *ApplicationBuilder) Status(status int) *ApplicationBuilder

应用状态

示例值:1

func (*ApplicationBuilder) UnauditVersionId

func (builder *ApplicationBuilder) UnauditVersionId(unauditVersionId string) *ApplicationBuilder

在审核中的版本 ID,若没有则为空

示例值:oav_d317f090b7258ad0372aa53963cda70d

type ApplicationDepartmentAppUsage

type ApplicationDepartmentAppUsage struct {
	DepartmentId *string                `json:"department_id,omitempty"` // 租户内部门的唯一标识,ID值与查询参数中的department_id_type 对应。
	App          []*ApplicationAppUsage `json:"app,omitempty"`           // 应用整体使用情况,指标值包括:uv:活跃用户数,total_users:累计用户数,new_users:新增用户数,pv:在应用(小程序或网页)中访问的页面数,lifecycle:打开应用(小程序或网页)的次数
	Gadget       []*ApplicationAppUsage `json:"gadget,omitempty"`        // 小程序使用情况,没有小程序形态时为null,指标值包括:uv(小程序活跃用户数)、pv(用户在小程序中的访问页面数)、lifecycle(小程序的打开次数)
	Webapp       []*ApplicationAppUsage `json:"webapp,omitempty"`        // 网页应用使用情况,没有网页应用形态时为null,指标值包括:uv(网页应用活跃用户数)、pv(用户在网页应用中的访问页面数)、lifecycle(网页应用的打开次数)
	Bot          []*ApplicationAppUsage `json:"bot,omitempty"`           // 机器人使用情况,没有机器人形态时为null,;指标值包括:uv(机器人的活跃用户数)
}

type ApplicationDepartmentAppUsageBuilder

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

func NewApplicationDepartmentAppUsageBuilder

func NewApplicationDepartmentAppUsageBuilder() *ApplicationDepartmentAppUsageBuilder

func (*ApplicationDepartmentAppUsageBuilder) App

应用整体使用情况,指标值包括:uv:活跃用户数,total_users:累计用户数,new_users:新增用户数,pv:在应用(小程序或网页)中访问的页面数,lifecycle:打开应用(小程序或网页)的次数

示例值:

func (*ApplicationDepartmentAppUsageBuilder) Bot

机器人使用情况,没有机器人形态时为null,;指标值包括:uv(机器人的活跃用户数)

示例值:

func (*ApplicationDepartmentAppUsageBuilder) Build

func (*ApplicationDepartmentAppUsageBuilder) DepartmentId

租户内部门的唯一标识,ID值与查询参数中的department_id_type 对应。

示例值:

func (*ApplicationDepartmentAppUsageBuilder) Gadget

小程序使用情况,没有小程序形态时为null,指标值包括:uv(小程序活跃用户数)、pv(用户在小程序中的访问页面数)、lifecycle(小程序的打开次数)

示例值:

func (*ApplicationDepartmentAppUsageBuilder) Webapp

网页应用使用情况,没有网页应用形态时为null,指标值包括:uv(网页应用活跃用户数)、pv(用户在网页应用中的访问页面数)、lifecycle(网页应用的打开次数)

示例值:

type ApplicationEventOwner added in v3.0.1

type ApplicationEventOwner struct {
	Type     *int    `json:"type,omitempty"`      // 应用所有者类型,可选值有:0:飞书科技(海外是另个名字企业),1:飞书合作伙伴,2:企业内成员
	Name     *string `json:"name,omitempty"`      // 应用开发商名称,仅商店应用返回
	HelpDesk *string `json:"help_desk,omitempty"` // 应用开发商的服务台链接,进商店应用返回。仅当应用商店配置了这种联系方式时才会返回
	Email    *string `json:"email,omitempty"`     // 应用开发商的邮箱,仅商店应用返回。仅当应用商店配置了这种联系方式时才会返回
	Phone    *string `json:"phone,omitempty"`     // 应用开发商的手机号,进商店应用返回。仅当应用商店配置了这种联系方式时才会返回
}

type ApplicationEventOwnerBuilder added in v3.0.1

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

func NewApplicationEventOwnerBuilder added in v3.0.1

func NewApplicationEventOwnerBuilder() *ApplicationEventOwnerBuilder

func (*ApplicationEventOwnerBuilder) Build added in v3.0.1

func (*ApplicationEventOwnerBuilder) Email added in v3.0.1

应用开发商的邮箱,仅商店应用返回。仅当应用商店配置了这种联系方式时才会返回

示例值:

func (*ApplicationEventOwnerBuilder) HelpDesk added in v3.0.1

应用开发商的服务台链接,进商店应用返回。仅当应用商店配置了这种联系方式时才会返回

示例值:

func (*ApplicationEventOwnerBuilder) Name added in v3.0.1

应用开发商名称,仅商店应用返回

示例值:应用名称

func (*ApplicationEventOwnerBuilder) Phone added in v3.0.1

应用开发商的手机号,进商店应用返回。仅当应用商店配置了这种联系方式时才会返回

示例值:

func (*ApplicationEventOwnerBuilder) Type added in v3.0.1

应用所有者类型,可选值有:0:飞书科技(海外是另个名字企业),1:飞书合作伙伴,2:企业内成员

示例值:0

type ApplicationFeedback

type ApplicationFeedback struct {
	FeedbackId   *string  `json:"feedback_id,omitempty"`   // 应用反馈 ID,应用反馈记录唯一标识
	AppId        *string  `json:"app_id,omitempty"`        // 被反馈应用ID
	FeedbackTime *string  `json:"feedback_time,omitempty"` // 反馈提交时间,格式为yyyy-mm-dd hh:mm:ss
	TenantName   *string  `json:"tenant_name,omitempty"`   // 反馈用户的租户名, 查询 isv 应用时返回
	FeedbackType *int     `json:"feedback_type,omitempty"` // 反馈类型
	Status       *int     `json:"status,omitempty"`        // 反馈处理状态
	FaultType    []int    `json:"fault_type,omitempty"`    // 故障类型列表:1: 黑屏 2: 白屏 3: 无法打开小程序  4: 卡顿 5: 小程序闪退 6: 页面加载慢 7: 死机 8: 其他异常
	FaultTime    *string  `json:"fault_time,omitempty"`    // 故障时间,格式为yyyy-mm-dd hh:mm:ss
	Source       *int     `json:"source,omitempty"`        // 反馈来源:1: 小程序 2:网页应用 3:机器人 4:webSDK
	Contact      *string  `json:"contact,omitempty"`       // 用户联系方式,只有用户填写联系方式后返回
	UpdateTime   *string  `json:"update_time,omitempty"`   // 反馈处理时间,格式为yyyy-mm-dd hh:mm:ss
	Description  *string  `json:"description,omitempty"`   // 反馈问题描述
	UserId       *string  `json:"user_id,omitempty"`       // 反馈用户id,租户内用户的唯一标识 ,ID值与查询参数中的user_id_type对应
	OperatorId   *string  `json:"operator_id,omitempty"`   // 操作者id,租户内用户的唯一标识, ID值与查询参数中的user_id_type 对应
	Images       []string `json:"images,omitempty"`        // 反馈图片url列表,url 过期时间三天
	FeedbackPath *string  `json:"feedback_path,omitempty"` // 反馈页面路径;- 如触发反馈的应用类型为小程序,则上报小程序当前页面的path信息;- 如触发反馈的应用类型为网页或网页应用,则上报当前网页的url信息;- 如为其他应用类型,则字段返回值为空
}

type ApplicationFeedbackBuilder

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

func NewApplicationFeedbackBuilder

func NewApplicationFeedbackBuilder() *ApplicationFeedbackBuilder

func (*ApplicationFeedbackBuilder) AppId

被反馈应用ID

示例值:cli_9b445f5258795107

func (*ApplicationFeedbackBuilder) Build

func (*ApplicationFeedbackBuilder) Contact

用户联系方式,只有用户填写联系方式后返回

示例值:wang@bytedance.com

func (*ApplicationFeedbackBuilder) Description

func (builder *ApplicationFeedbackBuilder) Description(description string) *ApplicationFeedbackBuilder

反馈问题描述

示例值:反馈描述

func (*ApplicationFeedbackBuilder) FaultTime

func (builder *ApplicationFeedbackBuilder) FaultTime(faultTime string) *ApplicationFeedbackBuilder

故障时间,格式为yyyy-mm-dd hh:mm:ss

示例值:2022-01-30 11:30:12

func (*ApplicationFeedbackBuilder) FaultType

func (builder *ApplicationFeedbackBuilder) FaultType(faultType []int) *ApplicationFeedbackBuilder

故障类型列表:1: 黑屏 2: 白屏 3: 无法打开小程序 4: 卡顿 5: 小程序闪退 6: 页面加载慢 7: 死机 8: 其他异常

示例值:[1,2,3]

func (*ApplicationFeedbackBuilder) FeedbackId

func (builder *ApplicationFeedbackBuilder) FeedbackId(feedbackId string) *ApplicationFeedbackBuilder

应用反馈 ID,应用反馈记录唯一标识

示例值:7057888018203574291

func (*ApplicationFeedbackBuilder) FeedbackPath added in v3.0.1

func (builder *ApplicationFeedbackBuilder) FeedbackPath(feedbackPath string) *ApplicationFeedbackBuilder

反馈页面路径;- 如触发反馈的应用类型为小程序,则上报小程序当前页面的path信息;- 如触发反馈的应用类型为网页或网页应用,则上报当前网页的url信息;- 如为其他应用类型,则字段返回值为空

示例值:index/page

func (*ApplicationFeedbackBuilder) FeedbackTime

func (builder *ApplicationFeedbackBuilder) FeedbackTime(feedbackTime string) *ApplicationFeedbackBuilder

反馈提交时间,格式为yyyy-mm-dd hh:mm:ss

示例值:2022-01-30 11:30:12

func (*ApplicationFeedbackBuilder) FeedbackType

func (builder *ApplicationFeedbackBuilder) FeedbackType(feedbackType int) *ApplicationFeedbackBuilder

反馈类型

示例值:1

func (*ApplicationFeedbackBuilder) Images

反馈图片url列表,url 过期时间三天

示例值:

func (*ApplicationFeedbackBuilder) OperatorId

func (builder *ApplicationFeedbackBuilder) OperatorId(operatorId string) *ApplicationFeedbackBuilder

操作者id,租户内用户的唯一标识, ID值与查询参数中的user_id_type 对应

示例值:ou_9565b69967831233761cc2f11b4c089f

func (*ApplicationFeedbackBuilder) Source

反馈来源:1: 小程序 2:网页应用 3:机器人 4:webSDK

示例值:1

func (*ApplicationFeedbackBuilder) Status

反馈处理状态

示例值:0

func (*ApplicationFeedbackBuilder) TenantName

func (builder *ApplicationFeedbackBuilder) TenantName(tenantName string) *ApplicationFeedbackBuilder

反馈用户的租户名, 查询 isv 应用时返回

示例值:字节跳动

func (*ApplicationFeedbackBuilder) UpdateTime

func (builder *ApplicationFeedbackBuilder) UpdateTime(updateTime string) *ApplicationFeedbackBuilder

反馈处理时间,格式为yyyy-mm-dd hh:mm:ss

示例值:2022-01-30 11:30:12

func (*ApplicationFeedbackBuilder) UserId

反馈用户id,租户内用户的唯一标识 ,ID值与查询参数中的user_id_type对应

示例值:ou_9565b69967831233761cc2f11b4c089f

type ApplicationOwner added in v3.0.1

type ApplicationOwner struct {
	Type     *int    `json:"type,omitempty"`      // 应用所有者类型
	OwnerId  *string `json:"owner_id,omitempty"`  // 应用所有者ID
	Name     *string `json:"name,omitempty"`      // 应用开发商名称(仅商店应用返回)
	HelpDesk *string `json:"help_desk,omitempty"` // 应用开发商服务台链接(仅商店应用返回)
	Email    *string `json:"email,omitempty"`     // 应用开发商的邮箱(仅商店应用返回)
	Phone    *string `json:"phone,omitempty"`     // 应用开发商的手机号(仅商店应用返回)
}

type ApplicationOwnerBuilder added in v3.0.1

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

func NewApplicationOwnerBuilder added in v3.0.1

func NewApplicationOwnerBuilder() *ApplicationOwnerBuilder

func (*ApplicationOwnerBuilder) Build added in v3.0.1

func (builder *ApplicationOwnerBuilder) Build() *ApplicationOwner

func (*ApplicationOwnerBuilder) Email added in v3.0.1

应用开发商的邮箱(仅商店应用返回)

示例值:test123@163.com

func (*ApplicationOwnerBuilder) HelpDesk added in v3.0.1

func (builder *ApplicationOwnerBuilder) HelpDesk(helpDesk string) *ApplicationOwnerBuilder

应用开发商服务台链接(仅商店应用返回)

示例值:https://applink.feishu.cn/client/helpdesk/open?id=6940534140529803284

func (*ApplicationOwnerBuilder) Name added in v3.0.1

应用开发商名称(仅商店应用返回)

示例值:test tenant

func (*ApplicationOwnerBuilder) OwnerId added in v3.0.1

func (builder *ApplicationOwnerBuilder) OwnerId(ownerId string) *ApplicationOwnerBuilder

应用所有者ID

示例值:ou_d317f090b7258ad0372aa53963cda70d

func (*ApplicationOwnerBuilder) Phone added in v3.0.1

应用开发商的手机号(仅商店应用返回)

示例值:1234534234234

func (*ApplicationOwnerBuilder) Type added in v3.0.1

func (builder *ApplicationOwnerBuilder) Type(type_ int) *ApplicationOwnerBuilder

应用所有者类型

示例值:0

type ApplicationService

type ApplicationService struct {
	AppRecommendRule      *appRecommendRule      // 推荐规则
	Application           *application           // 应用
	ApplicationAppUsage   *applicationAppUsage   // 应用使用情况
	ApplicationAppVersion *applicationAppVersion // 事件
	ApplicationFeedback   *applicationFeedback   // 应用反馈
	ApplicationVisibility *applicationVisibility // 事件
	// contains filtered or unexported fields
}

func NewService

func NewService(config *larkcore.Config) *ApplicationService

type ApplicationVisibility

type ApplicationVisibility struct {
	IsAll         *bool           `json:"is_all,omitempty"`         // 是否全员可见
	VisibleList   *AppVisibleList `json:"visible_list,omitempty"`   // 可见名单
	InvisibleList *AppVisibleList `json:"invisible_list,omitempty"` // 不可见名单
}

type ApplicationVisibilityBuilder

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

func NewApplicationVisibilityBuilder

func NewApplicationVisibilityBuilder() *ApplicationVisibilityBuilder

func (*ApplicationVisibilityBuilder) Build

func (*ApplicationVisibilityBuilder) InvisibleList

func (builder *ApplicationVisibilityBuilder) InvisibleList(invisibleList *AppVisibleList) *ApplicationVisibilityBuilder

不可见名单

示例值:

func (*ApplicationVisibilityBuilder) IsAll

是否全员可见

示例值:false

func (*ApplicationVisibilityBuilder) VisibleList

func (builder *ApplicationVisibilityBuilder) VisibleList(visibleList *AppVisibleList) *ApplicationVisibilityBuilder

可见名单

示例值:

type Block

type Block struct {
	BlockTypeId   *string          `json:"block_type_id,omitempty"`   // BlockTypeID
	VersionId     *string          `json:"version_id,omitempty"`      // 上传 block 小程序的 version id
	I18n          []*BlockI18nInfo `json:"i18n,omitempty"`            // block 的国际化信息
	MobileIconUrl *string          `json:"mobile_icon_url,omitempty"` // 移动端 icon 链接
	PcIconUrl     *string          `json:"pc_icon_url,omitempty"`     // pc 端口 icon 链接
}

type BlockBuilder

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

func NewBlockBuilder

func NewBlockBuilder() *BlockBuilder

func (*BlockBuilder) BlockTypeId

func (builder *BlockBuilder) BlockTypeId(blockTypeId string) *BlockBuilder

BlockTypeID

示例值:blk_4fb61568435880110854c1d0

func (*BlockBuilder) Build

func (builder *BlockBuilder) Build() *Block

func (*BlockBuilder) I18n

func (builder *BlockBuilder) I18n(i18n []*BlockI18nInfo) *BlockBuilder

block 的国际化信息

示例值:

func (*BlockBuilder) MobileIconUrl

func (builder *BlockBuilder) MobileIconUrl(mobileIconUrl string) *BlockBuilder

移动端 icon 链接

示例值:https://www.example.com

func (*BlockBuilder) PcIconUrl

func (builder *BlockBuilder) PcIconUrl(pcIconUrl string) *BlockBuilder

pc 端口 icon 链接

示例值:https://www.example.com

func (*BlockBuilder) VersionId

func (builder *BlockBuilder) VersionId(versionId string) *BlockBuilder

上传 block 小程序的 version id

示例值:1.0.0

type BlockI18nInfo

type BlockI18nInfo struct {
	I18nKey *string `json:"i18n_key,omitempty"` // 国际化语言的 key
	Name    *string `json:"name,omitempty"`     // 名称
}

type BlockI18nInfoBuilder

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

func NewBlockI18nInfoBuilder

func NewBlockI18nInfoBuilder() *BlockI18nInfoBuilder

func (*BlockI18nInfoBuilder) Build

func (builder *BlockI18nInfoBuilder) Build() *BlockI18nInfo

func (*BlockI18nInfoBuilder) I18nKey

func (builder *BlockI18nInfoBuilder) I18nKey(i18nKey string) *BlockI18nInfoBuilder

国际化语言的 key

示例值:zh_cn

func (*BlockI18nInfoBuilder) Name

func (builder *BlockI18nInfoBuilder) Name(name string) *BlockI18nInfoBuilder

名称

示例值:名称

type Bot

type Bot struct {
	CardRequestUrl *string `json:"card_request_url,omitempty"` // 消息卡片回调地址
}

type BotBuilder

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

func NewBotBuilder

func NewBotBuilder() *BotBuilder

func (*BotBuilder) Build

func (builder *BotBuilder) Build() *Bot

func (*BotBuilder) CardRequestUrl

func (builder *BotBuilder) CardRequestUrl(cardRequestUrl string) *BotBuilder

消息卡片回调地址

示例值:https://www.example.com

type ClientBadgeNum

type ClientBadgeNum struct {
	WebApp *int `json:"web_app,omitempty"` // h5能力的badge数量
	Gadget *int `json:"gadget,omitempty"`  // 小程序能力的badge数量
}

type ClientBadgeNumBuilder

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

func NewClientBadgeNumBuilder

func NewClientBadgeNumBuilder() *ClientBadgeNumBuilder

func (*ClientBadgeNumBuilder) Build

func (builder *ClientBadgeNumBuilder) Build() *ClientBadgeNum

func (*ClientBadgeNumBuilder) Gadget

func (builder *ClientBadgeNumBuilder) Gadget(gadget int) *ClientBadgeNumBuilder

小程序能力的badge数量

示例值:2

func (*ClientBadgeNumBuilder) WebApp

func (builder *ClientBadgeNumBuilder) WebApp(webApp int) *ClientBadgeNumBuilder

h5能力的badge数量

示例值:1

type CloudDoc

type CloudDoc struct {
	SpaceUrl *string             `json:"space_url,omitempty"` // 云空间重定向 url
	I18n     []*CloudDocI18nInfo `json:"i18n,omitempty"`      // 国际化信息
	IconUrl  *string             `json:"icon_url,omitempty"`  // 图标链接
	Mode     *int                `json:"mode,omitempty"`      // 云文档支持模式
}

type CloudDocBuilder

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

func NewCloudDocBuilder

func NewCloudDocBuilder() *CloudDocBuilder

func (*CloudDocBuilder) Build

func (builder *CloudDocBuilder) Build() *CloudDoc

func (*CloudDocBuilder) I18n

func (builder *CloudDocBuilder) I18n(i18n []*CloudDocI18nInfo) *CloudDocBuilder

国际化信息

示例值:

func (*CloudDocBuilder) IconUrl

func (builder *CloudDocBuilder) IconUrl(iconUrl string) *CloudDocBuilder

图标链接

示例值:https://www.example.com

func (*CloudDocBuilder) Mode

func (builder *CloudDocBuilder) Mode(mode int) *CloudDocBuilder

云文档支持模式

示例值:1

func (*CloudDocBuilder) SpaceUrl

func (builder *CloudDocBuilder) SpaceUrl(spaceUrl string) *CloudDocBuilder

云空间重定向 url

示例值:https://www.example.com

type CloudDocI18nInfo

type CloudDocI18nInfo struct {
	I18nKey          *string `json:"i18n_key,omitempty"`          // 国际化语言的 key
	Name             *string `json:"name,omitempty"`              // 云文档国际化名称
	ReadDescription  *string `json:"read_description,omitempty"`  // 云文档国际化读权限说明
	WriteDescription *string `json:"write_description,omitempty"` // 云文档国际化写权限说明
}

type CloudDocI18nInfoBuilder

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

func NewCloudDocI18nInfoBuilder

func NewCloudDocI18nInfoBuilder() *CloudDocI18nInfoBuilder

func (*CloudDocI18nInfoBuilder) Build

func (builder *CloudDocI18nInfoBuilder) Build() *CloudDocI18nInfo

func (*CloudDocI18nInfoBuilder) I18nKey

func (builder *CloudDocI18nInfoBuilder) I18nKey(i18nKey string) *CloudDocI18nInfoBuilder

国际化语言的 key

示例值:zh_cn

func (*CloudDocI18nInfoBuilder) Name

云文档国际化名称

示例值:名称

func (*CloudDocI18nInfoBuilder) ReadDescription

func (builder *CloudDocI18nInfoBuilder) ReadDescription(readDescription string) *CloudDocI18nInfoBuilder

云文档国际化读权限说明

示例值:读权限说明

func (*CloudDocI18nInfoBuilder) WriteDescription

func (builder *CloudDocI18nInfoBuilder) WriteDescription(writeDescription string) *CloudDocI18nInfoBuilder

云文档国际化写权限说明

示例值:写权限说明

type DocsBlock

type DocsBlock struct {
	BlockTypeId   *string          `json:"block_type_id,omitempty"`   // BlockTypeID
	I18n          []*BlockI18nInfo `json:"i18n,omitempty"`            // block 的国际化信息
	MobileIconUrl *string          `json:"mobile_icon_url,omitempty"` // 移动端 icon 链接
	PcIconUrl     *string          `json:"pc_icon_url,omitempty"`     // pc 端口 icon 链接
}

type DocsBlockBuilder

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

func NewDocsBlockBuilder

func NewDocsBlockBuilder() *DocsBlockBuilder

func (*DocsBlockBuilder) BlockTypeId

func (builder *DocsBlockBuilder) BlockTypeId(blockTypeId string) *DocsBlockBuilder

BlockTypeID

示例值:blk_4fb61568435880110854c1d0

func (*DocsBlockBuilder) Build

func (builder *DocsBlockBuilder) Build() *DocsBlock

func (*DocsBlockBuilder) I18n

func (builder *DocsBlockBuilder) I18n(i18n []*BlockI18nInfo) *DocsBlockBuilder

block 的国际化信息

示例值:

func (*DocsBlockBuilder) MobileIconUrl

func (builder *DocsBlockBuilder) MobileIconUrl(mobileIconUrl string) *DocsBlockBuilder

移动端 icon 链接

示例值:https://www.example.com

func (*DocsBlockBuilder) PcIconUrl

func (builder *DocsBlockBuilder) PcIconUrl(pcIconUrl string) *DocsBlockBuilder

pc 端口 icon 链接

示例值:https://www.example.com

type Gadget

type Gadget struct {
	EnablePcMode         *int     `json:"enable_pc_mode,omitempty"`          // pc 支持的小程序模式,bit 位表示
	SchemaUrls           []string `json:"schema_urls,omitempty"`             // schema url 列表
	PcUseMobilePkg       *bool    `json:"pc_use_mobile_pkg,omitempty"`       // pc 端是否使用小程序版本
	PcVersion            *string  `json:"pc_version,omitempty"`              // pc 的小程序版本号
	MobileVersion        *string  `json:"mobile_version,omitempty"`          // 移动端小程序版本号
	MobileMinLarkVersion *string  `json:"mobile_min_lark_version,omitempty"` // 移动端兼容的最低飞书版本
	PcMinLarkVersion     *string  `json:"pc_min_lark_version,omitempty"`     // pc 端兼容的最低飞书版本
}

type GadgetBuilder

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

func NewGadgetBuilder

func NewGadgetBuilder() *GadgetBuilder

func (*GadgetBuilder) Build

func (builder *GadgetBuilder) Build() *Gadget

func (*GadgetBuilder) EnablePcMode

func (builder *GadgetBuilder) EnablePcMode(enablePcMode int) *GadgetBuilder

pc 支持的小程序模式,bit 位表示

示例值:1

func (*GadgetBuilder) MobileMinLarkVersion

func (builder *GadgetBuilder) MobileMinLarkVersion(mobileMinLarkVersion string) *GadgetBuilder

移动端兼容的最低飞书版本

示例值:2.0

func (*GadgetBuilder) MobileVersion

func (builder *GadgetBuilder) MobileVersion(mobileVersion string) *GadgetBuilder

移动端小程序版本号

示例值:1.0.0

func (*GadgetBuilder) PcMinLarkVersion

func (builder *GadgetBuilder) PcMinLarkVersion(pcMinLarkVersion string) *GadgetBuilder

pc 端兼容的最低飞书版本

示例值:2.0

func (*GadgetBuilder) PcUseMobilePkg

func (builder *GadgetBuilder) PcUseMobilePkg(pcUseMobilePkg bool) *GadgetBuilder

pc 端是否使用小程序版本

示例值:false

func (*GadgetBuilder) PcVersion

func (builder *GadgetBuilder) PcVersion(pcVersion string) *GadgetBuilder

pc 的小程序版本号

示例值:1.0.0

func (*GadgetBuilder) SchemaUrls

func (builder *GadgetBuilder) SchemaUrls(schemaUrls []string) *GadgetBuilder

schema url 列表

示例值:

type GetApplicationAppVersionReq

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

type GetApplicationAppVersionReqBuilder

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

func NewGetApplicationAppVersionReqBuilder

func NewGetApplicationAppVersionReqBuilder() *GetApplicationAppVersionReqBuilder

func (*GetApplicationAppVersionReqBuilder) AppId

应用的 app_id,需要查询其他应用版本信息时,必须申请[获取应用版本信息](https://open.feishu.cn/document/ukTMukTMukTM/uQjN3QjL0YzN04CN2cDN)权限,仅查询本应用版本信息时,可填入 "me" 或者应用自身 app_id

示例值:cli_9f3ca975326b501b

func (*GetApplicationAppVersionReqBuilder) Build

func (*GetApplicationAppVersionReqBuilder) Lang

应用信息的语言版本

示例值:zh_cn

func (*GetApplicationAppVersionReqBuilder) UserIdType

此次调用中使用的用户ID的类型

示例值:

func (*GetApplicationAppVersionReqBuilder) VersionId

唯一标识应用版本的 ID

示例值:oav_d317f090b7258ad0372aa53963cda70d

type GetApplicationAppVersionResp

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

func (*GetApplicationAppVersionResp) Success

func (resp *GetApplicationAppVersionResp) Success() bool

type GetApplicationAppVersionRespData

type GetApplicationAppVersionRespData struct {
	AppVersion *ApplicationAppVersion `json:"app_version,omitempty"` // 应用版本信息
}

type GetApplicationReq

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

type GetApplicationReqBuilder

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

func NewGetApplicationReqBuilder

func NewGetApplicationReqBuilder() *GetApplicationReqBuilder

func (*GetApplicationReqBuilder) AppId

应用的 app_id,需要查询其他应用信息时,必须申请[获取应用信息](https://open.feishu.cn/document/ukTMukTMukTM/uQjN3QjL0YzN04CN2cDN)权限,仅查询本应用信息时,可填入 "me" 或者应用自身 app_id

示例值:cli_9b445f5258795107

func (*GetApplicationReqBuilder) Build

func (builder *GetApplicationReqBuilder) Build() *GetApplicationReq

func (*GetApplicationReqBuilder) Lang

指定获取应用在该语言下的信息

示例值:zh_cn

func (*GetApplicationReqBuilder) UserIdType

func (builder *GetApplicationReqBuilder) UserIdType(userIdType string) *GetApplicationReqBuilder

此次调用中使用的用户ID的类型

示例值:

type GetApplicationResp

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

func (*GetApplicationResp) Success

func (resp *GetApplicationResp) Success() bool

type GetApplicationRespData

type GetApplicationRespData struct {
	App *Application `json:"app,omitempty"` // 应用数据
}

type ListAppRecommendRuleIterator added in v3.0.8

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

func (*ListAppRecommendRuleIterator) Next added in v3.0.8

func (*ListAppRecommendRuleIterator) NextPageToken added in v3.0.8

func (iterator *ListAppRecommendRuleIterator) NextPageToken() *string

type ListAppRecommendRuleReq added in v3.0.8

type ListAppRecommendRuleReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListAppRecommendRuleReqBuilder added in v3.0.8

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

func NewListAppRecommendRuleReqBuilder added in v3.0.8

func NewListAppRecommendRuleReqBuilder() *ListAppRecommendRuleReqBuilder

func (*ListAppRecommendRuleReqBuilder) Build added in v3.0.8

func (*ListAppRecommendRuleReqBuilder) Limit added in v3.0.8

最大返回多少记录,当使用迭代器访问时才有效

func (*ListAppRecommendRuleReqBuilder) PageSize added in v3.0.8

分页大小

示例值:10

func (*ListAppRecommendRuleReqBuilder) PageToken added in v3.0.8

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:new-e11ee058b4a8ed2881da11ac7e37c4fc

func (*ListAppRecommendRuleReqBuilder) UserIdType added in v3.0.8

func (builder *ListAppRecommendRuleReqBuilder) UserIdType(userIdType string) *ListAppRecommendRuleReqBuilder

此次调用中使用的用户ID的类型

示例值:

type ListAppRecommendRuleResp added in v3.0.8

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

func (*ListAppRecommendRuleResp) Success added in v3.0.8

func (resp *ListAppRecommendRuleResp) Success() bool

type ListAppRecommendRuleRespData added in v3.0.8

type ListAppRecommendRuleRespData struct {
	Rules     []*AppRecommendRule `json:"rules,omitempty"`      // 推荐规则列表
	PageToken *string             `json:"page_token,omitempty"` // 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token
	HasMore   *bool               `json:"has_more,omitempty"`   // 是否还有更多项
}

type ListApplicationAppVersionIterator added in v3.0.3

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

func (*ListApplicationAppVersionIterator) Next added in v3.0.3

func (*ListApplicationAppVersionIterator) NextPageToken added in v3.0.3

func (iterator *ListApplicationAppVersionIterator) NextPageToken() *string

type ListApplicationAppVersionReq added in v3.0.3

type ListApplicationAppVersionReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListApplicationAppVersionReqBuilder added in v3.0.3

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

func NewListApplicationAppVersionReqBuilder added in v3.0.3

func NewListApplicationAppVersionReqBuilder() *ListApplicationAppVersionReqBuilder

func (*ListApplicationAppVersionReqBuilder) AppId added in v3.0.3

应用的 app_id,需要查询其他应用版本信息时,必须申请[获取应用版本信息](https://open.feishu.cn/document/ukTMukTMukTM/uQjN3QjL0YzN04CN2cDN)权限,仅查询本应用版本信息时,可填入 "me" 或者应用自身 app_id

示例值:cli_9b445f5258795107

func (*ListApplicationAppVersionReqBuilder) Build added in v3.0.3

func (*ListApplicationAppVersionReqBuilder) Lang added in v3.0.3

应用信息的语言版本

示例值:zh_cn

func (*ListApplicationAppVersionReqBuilder) Limit added in v3.0.3

最大返回多少记录,当使用迭代器访问时才有效

func (*ListApplicationAppVersionReqBuilder) Order added in v3.0.3

0:按照时间倒序 1:按照时间正序

示例值:0

func (*ListApplicationAppVersionReqBuilder) PageSize added in v3.0.3

分页大小

示例值:10

func (*ListApplicationAppVersionReqBuilder) PageToken added in v3.0.3

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:new-e3c5a0627cdf0c2e057da7257b90376a

func (*ListApplicationAppVersionReqBuilder) UserIdType added in v3.0.3

此次调用中使用的用户ID的类型

示例值:

type ListApplicationAppVersionResp added in v3.0.3

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

func (*ListApplicationAppVersionResp) Success added in v3.0.3

func (resp *ListApplicationAppVersionResp) Success() bool

type ListApplicationAppVersionRespData added in v3.0.3

type ListApplicationAppVersionRespData struct {
	Items     []*ApplicationAppVersion `json:"items,omitempty"`      // 应用版本列表
	PageToken *string                  `json:"page_token,omitempty"` // 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token
	HasMore   *bool                    `json:"has_more,omitempty"`   // 是否还有更多项
}

type ListApplicationFeedbackReq

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

type ListApplicationFeedbackReqBuilder

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

func NewListApplicationFeedbackReqBuilder

func NewListApplicationFeedbackReqBuilder() *ListApplicationFeedbackReqBuilder

func (*ListApplicationFeedbackReqBuilder) AppId

目标应用 ID(本租户创建的所有应用)

示例值:cli_9f115af860f7901b

func (*ListApplicationFeedbackReqBuilder) Build

func (*ListApplicationFeedbackReqBuilder) FeedbackType

func (builder *ListApplicationFeedbackReqBuilder) FeedbackType(feedbackType int) *ListApplicationFeedbackReqBuilder

反馈类型,不填写则表示查询所有反馈类型。

示例值:1

func (*ListApplicationFeedbackReqBuilder) FromDate

查询的起始日期,格式为yyyy-mm-dd。不填则默认为当前日期减去180天。

示例值:2022-01-30

func (*ListApplicationFeedbackReqBuilder) PageSize

本次拉取反馈列表最大个数

示例值:100

func (*ListApplicationFeedbackReqBuilder) PageToken

分页拉取反馈列表起始位置标示,不填表示从头开始

示例值:"7064688334618378259"

func (*ListApplicationFeedbackReqBuilder) Status

反馈处理状态,不填写则表示查询所有处理类型。

示例值:0

func (*ListApplicationFeedbackReqBuilder) ToDate

查询的结束日期,格式为yyyy-mm-dd。不填默认为当前日期。;只能查询 180 天内的数据。

示例值:2022-01-30

func (*ListApplicationFeedbackReqBuilder) UserIdType

示例值:open_id

type ListApplicationFeedbackResp

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

func (*ListApplicationFeedbackResp) Success

func (resp *ListApplicationFeedbackResp) Success() bool

type ListApplicationFeedbackRespData

type ListApplicationFeedbackRespData struct {
	FeedbackList []*ApplicationFeedback `json:"feedback_list,omitempty"` // 应用的反馈列表
	HasMore      *bool                  `json:"has_more,omitempty"`      // 是否还有更多用户反馈列表,true:是,false:否
	PageToken    *string                `json:"page_token,omitempty"`    // 拉取下一页应用反馈列表时使用的 page_token
}

type MessageAction

type MessageAction struct {
	PcAppLink     *string                  `json:"pc_app_link,omitempty"`     // pc 端链接
	MobileAppLink *string                  `json:"mobile_app_link,omitempty"` // 移动端链接
	I18n          []*MessageActionI18nInfo `json:"i18n,omitempty"`            // 国际化信息
}

type MessageActionBuilder

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

func NewMessageActionBuilder

func NewMessageActionBuilder() *MessageActionBuilder

func (*MessageActionBuilder) Build

func (builder *MessageActionBuilder) Build() *MessageAction

func (*MessageActionBuilder) I18n

国际化信息

示例值:

func (builder *MessageActionBuilder) MobileAppLink(mobileAppLink string) *MessageActionBuilder

移动端链接

示例值:https://www.example.com

func (builder *MessageActionBuilder) PcAppLink(pcAppLink string) *MessageActionBuilder

pc 端链接

示例值:https://www.example.com

type MessageActionI18nInfo

type MessageActionI18nInfo struct {
	I18nKey *string `json:"i18n_key,omitempty"` // 国际化语言的 key
	Name    *string `json:"name,omitempty"`     // 国际化名称
}

type MessageActionI18nInfoBuilder

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

func NewMessageActionI18nInfoBuilder

func NewMessageActionI18nInfoBuilder() *MessageActionI18nInfoBuilder

func (*MessageActionI18nInfoBuilder) Build

func (*MessageActionI18nInfoBuilder) I18nKey

国际化语言的 key

示例值:zh_cn

func (*MessageActionI18nInfoBuilder) Name

国际化名称

示例值:名称

type MessageOverviewItem

type MessageOverviewItem struct {
	PageView      *string `json:"page_view,omitempty"`      // 用户访问量
	UniqueVisitor *string `json:"unique_visitor,omitempty"` // unique 访问量
	ChatType      *string `json:"chat_type,omitempty"`      // 聊天类型,大小写不敏感,private:私聊;group:群聊
	MessageType   *string `json:"message_type,omitempty"`   // 消息类型,大小写不敏感,text:文本消息;image:图片消息;interactive:卡片消息;post:富文本消息;share_chat:群名片
	EventType     *string `json:"event_type,omitempty"`     // 事件类型
}

type MessageOverviewItemBuilder

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

func NewMessageOverviewItemBuilder

func NewMessageOverviewItemBuilder() *MessageOverviewItemBuilder

func (*MessageOverviewItemBuilder) Build

func (*MessageOverviewItemBuilder) ChatType

func (builder *MessageOverviewItemBuilder) ChatType(chatType string) *MessageOverviewItemBuilder

聊天类型,大小写不敏感,private:私聊;group:群聊

示例值:

func (*MessageOverviewItemBuilder) EventType

func (builder *MessageOverviewItemBuilder) EventType(eventType string) *MessageOverviewItemBuilder

事件类型

示例值:

func (*MessageOverviewItemBuilder) MessageType

func (builder *MessageOverviewItemBuilder) MessageType(messageType string) *MessageOverviewItemBuilder

消息类型,大小写不敏感,text:文本消息;image:图片消息;interactive:卡片消息;post:富文本消息;share_chat:群名片

示例值:

func (*MessageOverviewItemBuilder) PageView

func (builder *MessageOverviewItemBuilder) PageView(pageView string) *MessageOverviewItemBuilder

用户访问量

示例值:

func (*MessageOverviewItemBuilder) UniqueVisitor

func (builder *MessageOverviewItemBuilder) UniqueVisitor(uniqueVisitor string) *MessageOverviewItemBuilder

unique 访问量

示例值:

type Miniprogram

type Miniprogram struct {
	EnablePcMode         *int     `json:"enable_pc_mode,omitempty"`          // pc 支持的小程序模式,bit 位表示
	SchemaUrls           []string `json:"schema_urls,omitempty"`             // schema url 列表
	PcUseMobilePkg       *bool    `json:"pc_use_mobile_pkg,omitempty"`       // pc 端是否使用小程序版本
	PcVersionId          *string  `json:"pc_version_id,omitempty"`           // pc 的小程序版本号
	MobileVersionId      *string  `json:"mobile_version_id,omitempty"`       // 移动端小程序版本号
	MobileMinLarkVersion *string  `json:"mobile_min_lark_version,omitempty"` // 移动端兼容的最低飞书版本
	PcMinLarkVersion     *string  `json:"pc_min_lark_version,omitempty"`     // pc 端兼容的最低飞书版本
}

type MiniprogramBuilder

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

func NewMiniprogramBuilder

func NewMiniprogramBuilder() *MiniprogramBuilder

func (*MiniprogramBuilder) Build

func (builder *MiniprogramBuilder) Build() *Miniprogram

func (*MiniprogramBuilder) EnablePcMode

func (builder *MiniprogramBuilder) EnablePcMode(enablePcMode int) *MiniprogramBuilder

pc 支持的小程序模式,bit 位表示

示例值:1

func (*MiniprogramBuilder) MobileMinLarkVersion

func (builder *MiniprogramBuilder) MobileMinLarkVersion(mobileMinLarkVersion string) *MiniprogramBuilder

移动端兼容的最低飞书版本

示例值:2.0

func (*MiniprogramBuilder) MobileVersionId

func (builder *MiniprogramBuilder) MobileVersionId(mobileVersionId string) *MiniprogramBuilder

移动端小程序版本号

示例值:1.0.0

func (*MiniprogramBuilder) PcMinLarkVersion

func (builder *MiniprogramBuilder) PcMinLarkVersion(pcMinLarkVersion string) *MiniprogramBuilder

pc 端兼容的最低飞书版本

示例值:2.0

func (*MiniprogramBuilder) PcUseMobilePkg

func (builder *MiniprogramBuilder) PcUseMobilePkg(pcUseMobilePkg bool) *MiniprogramBuilder

pc 端是否使用小程序版本

示例值:false

func (*MiniprogramBuilder) PcVersionId

func (builder *MiniprogramBuilder) PcVersionId(pcVersionId string) *MiniprogramBuilder

pc 的小程序版本号

示例值:1.0.0

func (*MiniprogramBuilder) SchemaUrls

func (builder *MiniprogramBuilder) SchemaUrls(schemaUrls []string) *MiniprogramBuilder

schema url 列表

示例值:

type MsgAction

type MsgAction struct {
	PcAppLink     *string              `json:"pc_app_link,omitempty"`     // pc 端链接
	MobileAppLink *string              `json:"mobile_app_link,omitempty"` // 移动端链接
	I18n          []*MsgActionI18nInfo `json:"i18n,omitempty"`            // 国际化信息
}

type MsgActionBuilder

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

func NewMsgActionBuilder

func NewMsgActionBuilder() *MsgActionBuilder

func (*MsgActionBuilder) Build

func (builder *MsgActionBuilder) Build() *MsgAction

func (*MsgActionBuilder) I18n

func (builder *MsgActionBuilder) I18n(i18n []*MsgActionI18nInfo) *MsgActionBuilder

国际化信息

示例值:

func (builder *MsgActionBuilder) MobileAppLink(mobileAppLink string) *MsgActionBuilder

移动端链接

示例值:https://www.example.com

func (builder *MsgActionBuilder) PcAppLink(pcAppLink string) *MsgActionBuilder

pc 端链接

示例值:https://www.example.com

type MsgActionI18nInfo

type MsgActionI18nInfo struct {
	I18nKey *string `json:"i18n_key,omitempty"` // 国际化语言的 key
	Name    *string `json:"name,omitempty"`     // 国际化名称
}

type MsgActionI18nInfoBuilder

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

func NewMsgActionI18nInfoBuilder

func NewMsgActionI18nInfoBuilder() *MsgActionI18nInfoBuilder

func (*MsgActionI18nInfoBuilder) Build

func (builder *MsgActionI18nInfoBuilder) Build() *MsgActionI18nInfo

func (*MsgActionI18nInfoBuilder) I18nKey

func (builder *MsgActionI18nInfoBuilder) I18nKey(i18nKey string) *MsgActionI18nInfoBuilder

国际化语言的 key

示例值:zh_cn

func (*MsgActionI18nInfoBuilder) Name

国际化名称

示例值:名称

type Navigate struct {
	Pc     *NavigateMeta `json:"pc,omitempty"`     // pc 端主导航信息
	Mobile *NavigateMeta `json:"mobile,omitempty"` // 移动端主导航信息
}
type NavigateBuilder struct {
	// contains filtered or unexported fields
}

func NewNavigateBuilder

func NewNavigateBuilder() *NavigateBuilder
func (builder *NavigateBuilder) Build() *Navigate
func (builder *NavigateBuilder) Mobile(mobile *NavigateMeta) *NavigateBuilder

移动端主导航信息

示例值:

func (builder *NavigateBuilder) Pc(pc *NavigateMeta) *NavigateBuilder

pc 端主导航信息

示例值:

type NavigateMeta struct {
	Version       *string `json:"version,omitempty"`         // 主导航小程序版本号
	ImageUrl      *string `json:"image_url,omitempty"`       // 默认图片 url
	HoverImageUrl *string `json:"hover_image_url,omitempty"` // 选中态图片 url
}
type NavigateMetaBuilder struct {
	// contains filtered or unexported fields
}

func NewNavigateMetaBuilder

func NewNavigateMetaBuilder() *NavigateMetaBuilder
func (builder *NavigateMetaBuilder) Build() *NavigateMeta
func (builder *NavigateMetaBuilder) HoverImageUrl(hoverImageUrl string) *NavigateMetaBuilder

选中态图片 url

示例值:https://www.example.com

func (builder *NavigateMetaBuilder) ImageUrl(imageUrl string) *NavigateMetaBuilder

默认图片 url

示例值:https://www.example.com

func (builder *NavigateMetaBuilder) Version(version string) *NavigateMetaBuilder

主导航小程序版本号

示例值:1.0.0

type OverviewApplicationAppUsagePathReqBodyBuilder

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

func NewOverviewApplicationAppUsagePathReqBodyBuilder

func NewOverviewApplicationAppUsagePathReqBodyBuilder() *OverviewApplicationAppUsagePathReqBodyBuilder

func (*OverviewApplicationAppUsagePathReqBodyBuilder) Ability

能力类型,按能力类型进行筛选,返回对应能力的活跃数据

示例值:app

func (*OverviewApplicationAppUsagePathReqBodyBuilder) Build

func (*OverviewApplicationAppUsagePathReqBodyBuilder) CycleType

活跃周期的统计类型

示例值:1

func (*OverviewApplicationAppUsagePathReqBodyBuilder) Date

查询日期,格式为yyyy-mm-dd,若cycle_type为1,date可以为任何自然日;若cycle_type为2,则输入的date必须为周一; 若cycle_type为3,则输入的date必须为每月1号

示例值:2021-07-08

func (*OverviewApplicationAppUsagePathReqBodyBuilder) DepartmentId

查询的部门id,获取方法可参考[部门ID概述](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview);- 若部门id为空,则返回当前租户的使用数据;若填写部门id,则返回当前部门的使用数据(包含子部门的用户); ;- 若路径参数中department_id_type为空或者为open_department_id,则此处应该填写部门的 open_department_id;若路径参数中department_id_type为department_id,则此处应该填写部门的 department_id。

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

type OverviewApplicationAppUsageReq

type OverviewApplicationAppUsageReq struct {
	Body *OverviewApplicationAppUsageReqBody `body:""`
	// contains filtered or unexported fields
}

type OverviewApplicationAppUsageReqBody

type OverviewApplicationAppUsageReqBody struct {
	Date         *string `json:"date,omitempty"`          // 查询日期,格式为yyyy-mm-dd,若cycle_type为1,date可以为任何自然日;若cycle_type为2,则输入的date必须为周一; 若cycle_type为3,则输入的date必须为每月1号
	CycleType    *int    `json:"cycle_type,omitempty"`    // 活跃周期的统计类型
	DepartmentId *string `json:"department_id,omitempty"` // 查询的部门id,获取方法可参考[部门ID概述](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview);-  若部门id为空,则返回当前租户的使用数据;若填写部门id,则返回当前部门的使用数据(包含子部门的用户); ;-  若路径参数中department_id_type为空或者为open_department_id,则此处应该填写部门的 open_department_id;若路径参数中department_id_type为department_id,则此处应该填写部门的 department_id。
	Ability      *string `json:"ability,omitempty"`       // 能力类型,按能力类型进行筛选,返回对应能力的活跃数据
}

type OverviewApplicationAppUsageReqBodyBuilder

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

func NewOverviewApplicationAppUsageReqBodyBuilder

func NewOverviewApplicationAppUsageReqBodyBuilder() *OverviewApplicationAppUsageReqBodyBuilder

func (*OverviewApplicationAppUsageReqBodyBuilder) Ability

能力类型,按能力类型进行筛选,返回对应能力的活跃数据

示例值:app

func (*OverviewApplicationAppUsageReqBodyBuilder) Build

func (*OverviewApplicationAppUsageReqBodyBuilder) CycleType

活跃周期的统计类型

示例值:1

func (*OverviewApplicationAppUsageReqBodyBuilder) Date

查询日期,格式为yyyy-mm-dd,若cycle_type为1,date可以为任何自然日;若cycle_type为2,则输入的date必须为周一; 若cycle_type为3,则输入的date必须为每月1号

示例值:2021-07-08

func (*OverviewApplicationAppUsageReqBodyBuilder) DepartmentId

查询的部门id,获取方法可参考[部门ID概述](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview);- 若部门id为空,则返回当前租户的使用数据;若填写部门id,则返回当前部门的使用数据(包含子部门的用户); ;- 若路径参数中department_id_type为空或者为open_department_id,则此处应该填写部门的 open_department_id;若路径参数中department_id_type为department_id,则此处应该填写部门的 department_id。

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

type OverviewApplicationAppUsageReqBuilder

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

func NewOverviewApplicationAppUsageReqBuilder

func NewOverviewApplicationAppUsageReqBuilder() *OverviewApplicationAppUsageReqBuilder

func (*OverviewApplicationAppUsageReqBuilder) AppId

目标应用 ID

示例值:cli_9f115af860f7901b

func (*OverviewApplicationAppUsageReqBuilder) Body

查看应用在某一天/某一周/某一个月的使用数据,可以查看租户整体对应用的使用情况,也可以分部门查看。

func (*OverviewApplicationAppUsageReqBuilder) Build

func (*OverviewApplicationAppUsageReqBuilder) DepartmentIdType

func (builder *OverviewApplicationAppUsageReqBuilder) DepartmentIdType(departmentIdType string) *OverviewApplicationAppUsageReqBuilder

调用中使用的部门ID的类型

示例值:open_department_id

type OverviewApplicationAppUsageResp

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

func (*OverviewApplicationAppUsageResp) Success

func (resp *OverviewApplicationAppUsageResp) Success() bool

type OverviewApplicationAppUsageRespData

type OverviewApplicationAppUsageRespData struct {
	Items []*ApplicationAppUsage `json:"items,omitempty"` // 员工使用应用概览数据
}

type P1AppOpenApplicantV6

type P1AppOpenApplicantV6 struct {
	OpenID string `json:"open_id,omitempty"` // 用户对此应用的唯一标识,同一用户对不同应用的open_id不同
}

type P1AppOpenInstallerEmployeeV6

type P1AppOpenInstallerEmployeeV6 struct {
	OpenID string `json:"open_id,omitempty"` // 用户对此应用的唯一标识,同一用户对不同应用的open_id不同
}

type P1AppOpenInstallerV6

type P1AppOpenInstallerV6 struct {
	OpenID string `json:"open_id,omitempty"` // 用户对此应用的唯一标识,同一用户对不同应用的open_id不同
}

type P1AppOpenV6

type P1AppOpenV6 struct {
	*larkevent.EventReq
	*larkevent.EventBase
	Event *P1AppOpenV6Data `json:"event"`
}

func (*P1AppOpenV6) RawReq

func (m *P1AppOpenV6) RawReq(req *larkevent.EventReq)

type P1AppOpenV6Data

type P1AppOpenV6Data struct {
	AppID             string                        `json:"app_id,omitempty"`             // App ID
	TenantKey         string                        `json:"tenant_key,omitempty"`         // 企业标识
	Type              string                        `json:"type,omitempty"`               // 事件类型
	Applicants        []*P1AppOpenApplicantV6       `json:"applicants,omitempty"`         // 应用的申请者,可能有多个
	Installer         *P1AppOpenInstallerV6         `json:"installer,omitempty"`          // 当应用被管理员安装时,返回此字段。如果是自动安装或由普通成员获取时,没有此字段
	InstallerEmployee *P1AppOpenInstallerEmployeeV6 `json:"installer_employee,omitempty"` // 当应用被普通成员安装时,返回此字段
}

type P1AppOpenV6Handler

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

func NewP1AppOpenV6Handler

func NewP1AppOpenV6Handler(handler func(context.Context, *P1AppOpenV6) error) *P1AppOpenV6Handler

func (*P1AppOpenV6Handler) Event

func (h *P1AppOpenV6Handler) Event() interface{}

func (*P1AppOpenV6Handler) Handle

func (h *P1AppOpenV6Handler) Handle(ctx context.Context, event interface{}) error

type P1AppStatusChangeOperatorV6

type P1AppStatusChangeOperatorV6 struct {
	OpenID  string `json:"open_id,omitempty"`  // 用户对此应用的唯一标识,同一用户对不同应用的open_id不同
	UserID  string `json:"user_id,omitempty"`  // 仅自建应用才会返回
	UnionId string `json:"union_id,omitempty"` // 用户在ISV下的唯一标识
}

type P1AppStatusChangedV6

type P1AppStatusChangedV6 struct {
	*larkevent.EventReq
	*larkevent.EventBase
	Event *P1AppStatusChangedV6Data `json:"event"`
}

func (*P1AppStatusChangedV6) RawReq

func (m *P1AppStatusChangedV6) RawReq(req *larkevent.EventReq)

type P1AppStatusChangedV6Data

type P1AppStatusChangedV6Data struct {
	AppID     string                       `json:"app_id,omitempty"`     // App ID
	TenantKey string                       `json:"tenant_key,omitempty"` // 企业标识
	Type      string                       `json:"type,omitempty"`       // 事件类型
	Status    string                       `json:"status,omitempty"`     //应用状态 start_by_tenant: 租户启用; stop_by_tenant: 租户停用; stop_by_platform: 平台停用
	Operator  *P1AppStatusChangeOperatorV6 `json:"operator,omitempty"`   // 仅status=start_by_tenant时有此字段
}

type P1AppStatusChangedV6Handler

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

func NewP1AppStatusChangedV6Handler

func NewP1AppStatusChangedV6Handler(handler func(context.Context, *P1AppStatusChangedV6) error) *P1AppStatusChangedV6Handler

func (*P1AppStatusChangedV6Handler) Event

func (h *P1AppStatusChangedV6Handler) Event() interface{}

func (*P1AppStatusChangedV6Handler) Handle

func (h *P1AppStatusChangedV6Handler) Handle(ctx context.Context, event interface{}) error

type P1AppUninstalledV6

type P1AppUninstalledV6 struct {
	*larkevent.EventReq
	*larkevent.EventBase
	Event *P1AppUninstalledV6Data `json:"event"`
}

func (*P1AppUninstalledV6) RawReq

func (m *P1AppUninstalledV6) RawReq(req *larkevent.EventReq)

type P1AppUninstalledV6Data

type P1AppUninstalledV6Data struct {
	AppID     string `json:"app_id,omitempty"`     // APP ID
	TenantKey string `json:"tenant_key,omitempty"` // 企业标识
	Type      string `json:"type,omitempty"`       // 事件类型
}

type P1AppUninstalledV6Handler

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

func NewP1AppUninstalledV6Handler

func NewP1AppUninstalledV6Handler(handler func(context.Context, *P1AppUninstalledV6) error) *P1AppUninstalledV6Handler

func (*P1AppUninstalledV6Handler) Event

func (h *P1AppUninstalledV6Handler) Event() interface{}

func (*P1AppUninstalledV6Handler) Handle

func (h *P1AppUninstalledV6Handler) Handle(ctx context.Context, event interface{}) error

type P1OrderPaidV6

type P1OrderPaidV6 struct {
	*larkevent.EventReq
	*larkevent.EventBase
	Event *P1OrderPaidV6Data `json:"event"`
}

func (*P1OrderPaidV6) RawReq

func (m *P1OrderPaidV6) RawReq(req *larkevent.EventReq)

type P1OrderPaidV6Data

type P1OrderPaidV6Data struct {
	Type          string `json:"type,omitempty"`            // 事件类型
	AppID         string `json:"app_id,omitempty"`          // APP ID
	OrderID       string `json:"order_id,omitempty"`        // 用户购买付费方案时对订单ID 可作为唯一标识
	PricePlanID   string `json:"price_plan_id,omitempty"`   // 付费方案ID
	PricePlanType string `json:"price_plan_type,omitempty"` // 用户购买方案类型 "trial" -试用;"permanent"-免费;"per_year"-企业年付费;"per_month"-企业月付费;"per_seat_per_year"-按人按年付费;"per_seat_per_month"-按人按月付费;"permanent_count"-按次付费
	BuyCount      int64  `json:"buy_count,omitempty"`       // 套餐购买数量 目前都为1
	Seats         int64  `json:"seats,omitempty"`           // 表示购买了多少人份
	CreateTime    string `json:"create_time,omitempty"`     //
	PayTime       string `json:"pay_time,omitempty"`        //
	BuyType       string `json:"buy_type,omitempty"`        // 购买类型 buy普通购买 upgrade为升级购买 renew为续费购买
	SrcOrderID    string `json:"src_order_id,omitempty"`    // 当前为升级购买时(buy_type 为upgrade),该字段表示原订单ID,升级后原订单失效,状态变为已升级(业务方需要处理)
	OrderPayPrice int64  `json:"order_pay_price,omitempty"` // 订单支付价格 单位分,
	TenantKey     string `json:"tenant_key,omitempty"`      // 企业标识
}

type P1OrderPaidV6Handler

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

func NewP1OrderPaidV6Handler

func NewP1OrderPaidV6Handler(handler func(context.Context, *P1OrderPaidV6) error) *P1OrderPaidV6Handler

func (*P1OrderPaidV6Handler) Event

func (h *P1OrderPaidV6Handler) Event() interface{}

func (*P1OrderPaidV6Handler) Handle

func (h *P1OrderPaidV6Handler) Handle(ctx context.Context, event interface{}) error

type P2ApplicationAppVersionAuditV6

type P2ApplicationAppVersionAuditV6 struct {
	*larkevent.EventV2Base                                     // 事件基础数据
	*larkevent.EventReq                                        // 请求原生数据
	Event                  *P2ApplicationAppVersionAuditV6Data `json:"event"` // 事件内容
}

func (*P2ApplicationAppVersionAuditV6) RawReq

func (m *P2ApplicationAppVersionAuditV6) RawReq(req *larkevent.EventReq)

type P2ApplicationAppVersionAuditV6Data

type P2ApplicationAppVersionAuditV6Data struct {
	OperatorId  *UserId `json:"operator_id,omitempty"`  // 通过 / 拒绝应用审核的管理员 id
	VersionId   *string `json:"version_id,omitempty"`   // 被审核的应用版本 id
	CreatorId   *UserId `json:"creator_id,omitempty"`   // 应用创建者的 id
	AppId       *string `json:"app_id,omitempty"`       // 撤回应用的 id
	Operation   *string `json:"operation,omitempty"`    // 审核通过 / 拒绝
	Remark      *string `json:"remark,omitempty"`       // 审核信息,当审核拒绝时,管理员填写的拒绝理由
	AuditSource *string `json:"audit_source,omitempty"` // 应用审核的方式
}

type P2ApplicationAppVersionAuditV6Handler

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

消息处理器定义

func (*P2ApplicationAppVersionAuditV6Handler) Event

func (h *P2ApplicationAppVersionAuditV6Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ApplicationAppVersionAuditV6Handler) Handle

func (h *P2ApplicationAppVersionAuditV6Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2ApplicationAppVersionPublishApplyV6

type P2ApplicationAppVersionPublishApplyV6 struct {
	*larkevent.EventV2Base                                            // 事件基础数据
	*larkevent.EventReq                                               // 请求原生数据
	Event                  *P2ApplicationAppVersionPublishApplyV6Data `json:"event"` // 事件内容
}

func (*P2ApplicationAppVersionPublishApplyV6) RawReq

func (m *P2ApplicationAppVersionPublishApplyV6) RawReq(req *larkevent.EventReq)

type P2ApplicationAppVersionPublishApplyV6Data

type P2ApplicationAppVersionPublishApplyV6Data struct {
	OperatorId        *UserId                     `json:"operator_id,omitempty"`         // 用户 ID
	OnlineVersion     *ApplicationAppVersionEvent `json:"online_version,omitempty"`      // 当前线上版本信息
	UnderAuditVersion *ApplicationAppVersionEvent `json:"under_audit_version,omitempty"` // 当前在审核的应用版本
	AppStatus         *int                        `json:"app_status,omitempty"`          // 应用状态
}

type P2ApplicationAppVersionPublishApplyV6Handler

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

消息处理器定义

func (*P2ApplicationAppVersionPublishApplyV6Handler) Event

func (h *P2ApplicationAppVersionPublishApplyV6Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ApplicationAppVersionPublishApplyV6Handler) Handle

func (h *P2ApplicationAppVersionPublishApplyV6Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2ApplicationAppVersionPublishRevokeV6

type P2ApplicationAppVersionPublishRevokeV6 struct {
	*larkevent.EventV2Base                                             // 事件基础数据
	*larkevent.EventReq                                                // 请求原生数据
	Event                  *P2ApplicationAppVersionPublishRevokeV6Data `json:"event"` // 事件内容
}

func (*P2ApplicationAppVersionPublishRevokeV6) RawReq

func (m *P2ApplicationAppVersionPublishRevokeV6) RawReq(req *larkevent.EventReq)

type P2ApplicationAppVersionPublishRevokeV6Data

type P2ApplicationAppVersionPublishRevokeV6Data struct {
	OperatorId *UserId `json:"operator_id,omitempty"` // 用户 ID
	CreatorId  *UserId `json:"creator_id,omitempty"`  // 用户 ID
	AppId      *string `json:"app_id,omitempty"`      // 撤回应用的 id
	VersionId  *string `json:"version_id,omitempty"`  // 撤回应用的版本 id
}

type P2ApplicationAppVersionPublishRevokeV6Handler

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

消息处理器定义

func (*P2ApplicationAppVersionPublishRevokeV6Handler) Event

func (h *P2ApplicationAppVersionPublishRevokeV6Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ApplicationAppVersionPublishRevokeV6Handler) Handle

func (h *P2ApplicationAppVersionPublishRevokeV6Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2ApplicationCreatedV6

type P2ApplicationCreatedV6 struct {
	*larkevent.EventV2Base                             // 事件基础数据
	*larkevent.EventReq                                // 请求原生数据
	Event                  *P2ApplicationCreatedV6Data `json:"event"` // 事件内容
}

func (*P2ApplicationCreatedV6) RawReq

func (m *P2ApplicationCreatedV6) RawReq(req *larkevent.EventReq)

type P2ApplicationCreatedV6Data

type P2ApplicationCreatedV6Data struct {
	OperatorId      *UserId `json:"operator_id,omitempty"`      // 用户 ID
	AppId           *string `json:"app_id,omitempty"`           // 应用 ID
	Name            *string `json:"name,omitempty"`             // 应用名称
	Description     *string `json:"description,omitempty"`      // 应用描述
	Avatar          *string `json:"avatar,omitempty"`           // 应用图标链接
	AppSceneType    *int    `json:"app_scene_type,omitempty"`   // 应用类型,0: 自建应用,1: 应用商店应用
	PrimaryLanguage *string `json:"primary_language,omitempty"` // 应用主语言
}

type P2ApplicationCreatedV6Handler

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

消息处理器定义

func (*P2ApplicationCreatedV6Handler) Event

func (h *P2ApplicationCreatedV6Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ApplicationCreatedV6Handler) Handle

func (h *P2ApplicationCreatedV6Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2ApplicationFeedbackCreatedV6

type P2ApplicationFeedbackCreatedV6 struct {
	*larkevent.EventV2Base                                     // 事件基础数据
	*larkevent.EventReq                                        // 请求原生数据
	Event                  *P2ApplicationFeedbackCreatedV6Data `json:"event"` // 事件内容
}

func (*P2ApplicationFeedbackCreatedV6) RawReq

func (m *P2ApplicationFeedbackCreatedV6) RawReq(req *larkevent.EventReq)

type P2ApplicationFeedbackCreatedV6Data

type P2ApplicationFeedbackCreatedV6Data struct {
	UserId       *UserId  `json:"user_id,omitempty"`       // 用户 ID
	AppId        *string  `json:"app_id,omitempty"`        // 被反馈应用 ID
	FeedbackTime *string  `json:"feedback_time,omitempty"` // 反馈提交时间,格式为yyyy-mm-dd hh:mm:ss
	TenantName   *string  `json:"tenant_name,omitempty"`   // 反馈用户的租户名
	FeedbackType *int     `json:"feedback_type,omitempty"` // 反馈类型(枚举值,1:故障反馈,2:产品建议)
	FaultType    []int    `json:"fault_type,omitempty"`    // 故障类型列表:1: 黑屏 2: 白屏 3: 无法打开小程序  4: 卡顿 5: 小程序闪退 6: 页面加载慢 7: 死机 8: 其他异常
	FaultTime    *string  `json:"fault_time,omitempty"`    // 故障时间,格式为yyyy-mm-dd hh:mm:ss
	Source       *int     `json:"source,omitempty"`        // 反馈来源:1: 小程序 2:网页应用 3:机器人 4:webSDK
	Contact      *string  `json:"contact,omitempty"`       // 用户填写的联系方式
	Description  *string  `json:"description,omitempty"`   // 反馈详情
	Images       []string `json:"images,omitempty"`        // 反馈图片url列表,url 过期时间三天
	FeedbackId   *string  `json:"feedback_id,omitempty"`   // 应用反馈 ID,应用反馈记录唯一标识
	FeedbackPath *string  `json:"feedback_path,omitempty"` // 反馈页面路径
}

type P2ApplicationFeedbackCreatedV6Handler

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

消息处理器定义

func (*P2ApplicationFeedbackCreatedV6Handler) Event

func (h *P2ApplicationFeedbackCreatedV6Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ApplicationFeedbackCreatedV6Handler) Handle

func (h *P2ApplicationFeedbackCreatedV6Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2ApplicationFeedbackUpdatedV6

type P2ApplicationFeedbackUpdatedV6 struct {
	*larkevent.EventV2Base                                     // 事件基础数据
	*larkevent.EventReq                                        // 请求原生数据
	Event                  *P2ApplicationFeedbackUpdatedV6Data `json:"event"` // 事件内容
}

func (*P2ApplicationFeedbackUpdatedV6) RawReq

func (m *P2ApplicationFeedbackUpdatedV6) RawReq(req *larkevent.EventReq)

type P2ApplicationFeedbackUpdatedV6Data

type P2ApplicationFeedbackUpdatedV6Data struct {
	FeedbackIds []string `json:"feedback_ids,omitempty"` // 反馈id列表
	Status      *int     `json:"status,omitempty"`       // 反馈处理状态(枚举值,0: 未处理  1: 已处理  2: 处理中 3: 已关闭)
	AppId       *string  `json:"app_id,omitempty"`       // 应用的 app_id
	UpdateTime  *string  `json:"update_time,omitempty"`  // 反馈处理时间,格式为yyyy-mm-dd hh:mm:ss
	OperatorId  *UserId  `json:"operator_id,omitempty"`  // 操作者用户 ID
}

type P2ApplicationFeedbackUpdatedV6Handler

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

消息处理器定义

func (*P2ApplicationFeedbackUpdatedV6Handler) Event

func (h *P2ApplicationFeedbackUpdatedV6Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ApplicationFeedbackUpdatedV6Handler) Handle

func (h *P2ApplicationFeedbackUpdatedV6Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type P2ApplicationVisibilityAddedV6

type P2ApplicationVisibilityAddedV6 struct {
	*larkevent.EventV2Base                                     // 事件基础数据
	*larkevent.EventReq                                        // 请求原生数据
	Event                  *P2ApplicationVisibilityAddedV6Data `json:"event"` // 事件内容
}

func (*P2ApplicationVisibilityAddedV6) RawReq

func (m *P2ApplicationVisibilityAddedV6) RawReq(req *larkevent.EventReq)

type P2ApplicationVisibilityAddedV6Data

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

type P2ApplicationVisibilityAddedV6Handler

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

消息处理器定义

func (*P2ApplicationVisibilityAddedV6Handler) Event

func (h *P2ApplicationVisibilityAddedV6Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2ApplicationVisibilityAddedV6Handler) Handle

func (h *P2ApplicationVisibilityAddedV6Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

type PatchApplicationAppVersionReq

type PatchApplicationAppVersionReq struct {
	ApplicationAppVersion *ApplicationAppVersion `body:""`
	// contains filtered or unexported fields
}

type PatchApplicationAppVersionReqBuilder

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

func NewPatchApplicationAppVersionReqBuilder

func NewPatchApplicationAppVersionReqBuilder() *PatchApplicationAppVersionReqBuilder

func (*PatchApplicationAppVersionReqBuilder) AppId

应用 id

示例值:cli_9f3ca975326b501b

func (*PatchApplicationAppVersionReqBuilder) ApplicationAppVersion

func (builder *PatchApplicationAppVersionReqBuilder) ApplicationAppVersion(applicationAppVersion *ApplicationAppVersion) *PatchApplicationAppVersionReqBuilder

通过接口来更新应用版本的审核结果:通过后应用可以直接上架;拒绝后则开发者可以看到拒绝理由,并在修改后再次申请发布。

func (*PatchApplicationAppVersionReqBuilder) Build

func (*PatchApplicationAppVersionReqBuilder) OperatorId

操作者的 open_id

示例值:ou_4065981088f8ef67a504ba8bd6b24d85

func (*PatchApplicationAppVersionReqBuilder) RejectReason

当修改版本状态为被驳回时,这一项必填

示例值:拒绝理由

func (*PatchApplicationAppVersionReqBuilder) UserIdType

此次调用中使用的用户ID的类型

示例值:

func (*PatchApplicationAppVersionReqBuilder) VersionId

唯一标识应用版本的 ID

示例值:oav_d317f090b7258ad0372aa53963cda70d

type PatchApplicationAppVersionResp

type PatchApplicationAppVersionResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchApplicationAppVersionResp) Success

func (resp *PatchApplicationAppVersionResp) Success() bool

type PatchApplicationFeedbackReq

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

type PatchApplicationFeedbackReqBuilder

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

func NewPatchApplicationFeedbackReqBuilder

func NewPatchApplicationFeedbackReqBuilder() *PatchApplicationFeedbackReqBuilder

func (*PatchApplicationFeedbackReqBuilder) AppId

目标应用 ID(本租户创建的所有应用)

示例值:cli_9f115af860f7901b

func (*PatchApplicationFeedbackReqBuilder) Build

func (*PatchApplicationFeedbackReqBuilder) FeedbackId

应用反馈记录id

示例值:7057888018203574291

func (*PatchApplicationFeedbackReqBuilder) OperatorId

反馈处理人员id,租户内用户的唯一标识, ID值与查询参数中的user_id_type 对应

示例值:ou_9565b69967831233761cc2f11b4c089f

func (*PatchApplicationFeedbackReqBuilder) Status

反馈处理状态

示例值:1

func (*PatchApplicationFeedbackReqBuilder) UserIdType

示例值:open_id

type PatchApplicationFeedbackResp

type PatchApplicationFeedbackResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchApplicationFeedbackResp) Success

func (resp *PatchApplicationFeedbackResp) Success() bool

type PatchApplicationReq

type PatchApplicationReq struct {
	Application *Application `body:""`
	// contains filtered or unexported fields
}

type PatchApplicationReqBuilder

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

func NewPatchApplicationReqBuilder

func NewPatchApplicationReqBuilder() *PatchApplicationReqBuilder

func (*PatchApplicationReqBuilder) AppId

应用的 id

示例值:cli_9b445f5258795107

func (*PatchApplicationReqBuilder) Application

func (builder *PatchApplicationReqBuilder) Application(application *Application) *PatchApplicationReqBuilder

更新应用的分组信息(分组会影响应用在工作台中的分类情况,请谨慎更新)

func (*PatchApplicationReqBuilder) Build

func (*PatchApplicationReqBuilder) Lang

指定返回的语言

示例值:zh_cn

type PatchApplicationResp

type PatchApplicationResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*PatchApplicationResp) Success

func (resp *PatchApplicationResp) Success() bool

type PlusMenu

type PlusMenu struct {
	PcAppLink     *string `json:"pc_app_link,omitempty"`     // pc 端链接
	MobileAppLink *string `json:"mobile_app_link,omitempty"` // 移动端链接
}

type PlusMenuBuilder

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

func NewPlusMenuBuilder

func NewPlusMenuBuilder() *PlusMenuBuilder

func (*PlusMenuBuilder) Build

func (builder *PlusMenuBuilder) Build() *PlusMenu
func (builder *PlusMenuBuilder) MobileAppLink(mobileAppLink string) *PlusMenuBuilder

移动端链接

示例值:https://www.example.com

func (builder *PlusMenuBuilder) PcAppLink(pcAppLink string) *PlusMenuBuilder

pc 端链接

示例值:https://www.example.com

type Scope

type Scope struct {
	ScopeName   *string `json:"scope_name,omitempty"`   // 权限名称,形如 user.phone:readonly
	GrantStatus *int    `json:"grant_status,omitempty"` // 租户应用权限授予状态
}

type ScopeBuilder

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

func NewScopeBuilder

func NewScopeBuilder() *ScopeBuilder

func (*ScopeBuilder) Build

func (builder *ScopeBuilder) Build() *Scope

func (*ScopeBuilder) GrantStatus

func (builder *ScopeBuilder) GrantStatus(grantStatus int) *ScopeBuilder

租户应用权限授予状态

示例值:

func (*ScopeBuilder) ScopeName

func (builder *ScopeBuilder) ScopeName(scopeName string) *ScopeBuilder

权限名称,形如 user.phone:readonly

示例值:

type UnderauditlistApplicationIterator

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

func (*UnderauditlistApplicationIterator) Next

func (*UnderauditlistApplicationIterator) NextPageToken

func (iterator *UnderauditlistApplicationIterator) NextPageToken() *string

type UnderauditlistApplicationReq

type UnderauditlistApplicationReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type UnderauditlistApplicationReqBuilder

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

func NewUnderauditlistApplicationReqBuilder

func NewUnderauditlistApplicationReqBuilder() *UnderauditlistApplicationReqBuilder

func (*UnderauditlistApplicationReqBuilder) Build

func (*UnderauditlistApplicationReqBuilder) Lang

指定返回的语言

示例值:zh_cn

func (*UnderauditlistApplicationReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*UnderauditlistApplicationReqBuilder) PageSize

示例值:10

func (*UnderauditlistApplicationReqBuilder) PageToken

示例值:new-e3c5a0627cdf0c2e057da7257b90376a

func (*UnderauditlistApplicationReqBuilder) UserIdType

此次调用中使用的用户ID的类型

示例值:

type UnderauditlistApplicationResp

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

func (*UnderauditlistApplicationResp) Success

func (resp *UnderauditlistApplicationResp) Success() bool

type UnderauditlistApplicationRespData

type UnderauditlistApplicationRespData struct {
	Items     []*Application `json:"items,omitempty"`      // 待审核应用列表
	HasMore   *bool          `json:"has_more,omitempty"`   // 是否有下一页数据
	PageToken *string        `json:"page_token,omitempty"` // 下一页分页的token
}

type UsageOverviewItem

type UsageOverviewItem struct {
	PageView      *string `json:"page_view,omitempty"`      // 应用使用pv
	UniqueVisitor *string `json:"unique_visitor,omitempty"` // 应用使用uv
	DepartmentId  *string `json:"department_id,omitempty"`  // 部门号
}

type UsageOverviewItemBuilder

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

func NewUsageOverviewItemBuilder

func NewUsageOverviewItemBuilder() *UsageOverviewItemBuilder

func (*UsageOverviewItemBuilder) Build

func (builder *UsageOverviewItemBuilder) Build() *UsageOverviewItem

func (*UsageOverviewItemBuilder) DepartmentId

func (builder *UsageOverviewItemBuilder) DepartmentId(departmentId string) *UsageOverviewItemBuilder

部门号

示例值:

func (*UsageOverviewItemBuilder) PageView

func (builder *UsageOverviewItemBuilder) PageView(pageView string) *UsageOverviewItemBuilder

应用使用pv

示例值:

func (*UsageOverviewItemBuilder) UniqueVisitor

func (builder *UsageOverviewItemBuilder) UniqueVisitor(uniqueVisitor string) *UsageOverviewItemBuilder

应用使用uv

示例值:

type UsageTrendItem

type UsageTrendItem struct {
	Timestamp     *string `json:"timestamp,omitempty"`      // 时间戳
	PageView      *string `json:"page_view,omitempty"`      // 应用使用pv
	UniqueVisitor *string `json:"unique_visitor,omitempty"` // 应用使用uv
}

type UsageTrendItemBuilder

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

func NewUsageTrendItemBuilder

func NewUsageTrendItemBuilder() *UsageTrendItemBuilder

func (*UsageTrendItemBuilder) Build

func (builder *UsageTrendItemBuilder) Build() *UsageTrendItem

func (*UsageTrendItemBuilder) PageView

func (builder *UsageTrendItemBuilder) PageView(pageView string) *UsageTrendItemBuilder

应用使用pv

示例值:

func (*UsageTrendItemBuilder) Timestamp

func (builder *UsageTrendItemBuilder) Timestamp(timestamp string) *UsageTrendItemBuilder

时间戳

示例值:

func (*UsageTrendItemBuilder) UniqueVisitor

func (builder *UsageTrendItemBuilder) UniqueVisitor(uniqueVisitor string) *UsageTrendItemBuilder

应用使用uv

示例值:

type UsageUser

type UsageUser struct {
	UserId *string `json:"user_id,omitempty"` // 用户id
}

type UsageUserBuilder

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

func NewUsageUserBuilder

func NewUsageUserBuilder() *UsageUserBuilder

func (*UsageUserBuilder) Build

func (builder *UsageUserBuilder) Build() *UsageUser

func (*UsageUserBuilder) UserId

func (builder *UsageUserBuilder) UserId(userId string) *UsageUserBuilder

用户id

示例值:

type User

type User struct {
	UserId *UserId `json:"user_id,omitempty"` // user_id
}

type UserBuilder

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

func NewUserBuilder

func NewUserBuilder() *UserBuilder

func (*UserBuilder) Build

func (builder *UserBuilder) Build() *User

func (*UserBuilder) UserId

func (builder *UserBuilder) UserId(userId *UserId) *UserBuilder

user_id

示例值:

type UserId

type UserId struct {
	UserId  *string `json:"user_id,omitempty"`  //
	OpenId  *string `json:"open_id,omitempty"`  //
	UnionId *string `json:"union_id,omitempty"` //
}

type UserIdBuilder

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

func NewUserIdBuilder

func NewUserIdBuilder() *UserIdBuilder

func (*UserIdBuilder) Build

func (builder *UserIdBuilder) Build() *UserId

func (*UserIdBuilder) OpenId

func (builder *UserIdBuilder) OpenId(openId string) *UserIdBuilder

示例值:

func (*UserIdBuilder) UnionId

func (builder *UserIdBuilder) UnionId(unionId string) *UserIdBuilder

示例值:

func (*UserIdBuilder) UserId

func (builder *UserIdBuilder) UserId(userId string) *UserIdBuilder

示例值:

type WebApp

type WebApp struct {
	PcUrl     *string `json:"pc_url,omitempty"`     // pc 端 url
	MobileUrl *string `json:"mobile_url,omitempty"` // 移动端 url
}

type WebAppBuilder

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

func NewWebAppBuilder

func NewWebAppBuilder() *WebAppBuilder

func (*WebAppBuilder) Build

func (builder *WebAppBuilder) Build() *WebApp

func (*WebAppBuilder) MobileUrl

func (builder *WebAppBuilder) MobileUrl(mobileUrl string) *WebAppBuilder

移动端 url

示例值:https://www.example.com

func (*WebAppBuilder) PcUrl

func (builder *WebAppBuilder) PcUrl(pcUrl string) *WebAppBuilder

pc 端 url

示例值:https://www.example.com

type Widget

type Widget struct {
}

type WorkplaceWidget

type WorkplaceWidget struct {
	MinLarkVersion *string `json:"min_lark_version,omitempty"` // 最低兼容飞书版本号
}

type WorkplaceWidgetBuilder

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

func NewWorkplaceWidgetBuilder

func NewWorkplaceWidgetBuilder() *WorkplaceWidgetBuilder

func (*WorkplaceWidgetBuilder) Build

func (builder *WorkplaceWidgetBuilder) Build() *WorkplaceWidget

func (*WorkplaceWidgetBuilder) MinLarkVersion

func (builder *WorkplaceWidgetBuilder) MinLarkVersion(minLarkVersion string) *WorkplaceWidgetBuilder

最低兼容飞书版本号

示例值:1.0.0

Jump to

Keyboard shortcuts

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