larkapplication

package
v3.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 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 (
	UserIdTypeListAppRecommendRuleUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListAppRecommendRuleUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListAppRecommendRuleOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeContactsRangeConfigurationApplicationUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeContactsRangeConfigurationApplicationUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeContactsRangeConfigurationApplicationOpenId  = "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 (
	DepartmentIdTypeDepartmentOverviewApplicationAppUsageDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeDepartmentOverviewApplicationAppUsageOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	MessagePushOverviewApplicationAppUsageCycleTypeDay   = 1 // 日活
	MessagePushOverviewApplicationAppUsageCycleTypeWeek  = 2 // 周活, date字段应该填自然周周一的日期
	MessagePushOverviewApplicationAppUsageCycleTypeMonth = 3 // 月活, date字段应该填自然月1号的日期

)
View Source
const (
	MessagePushOverviewApplicationAppUsageDepartmentIdTypeDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	MessagePushOverviewApplicationAppUsageDepartmentIdTypeOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	CycleTypeOverviewApplicationAppUsageDay   = 1 // 日活
	CycleTypeOverviewApplicationAppUsageWeek  = 2 // 周活, date字段应该填自然周周一的日期
	CycleTypeOverviewApplicationAppUsageMonth = 3 // 月活, date字段应该填自然月1号的日期

)
View Source
const (
	AbilityApp = "app" // 返回应用整体的数据
	AbilityMp  = "mp"  // 返回小程序的数据
	AbilityH5  = "h5"  // 返回网页的数据
	AbilityBot = "bot" // 返回机器人的数据
)
View Source
const (
	DepartmentIdTypeOverviewApplicationAppUsageDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeOverviewApplicationAppUsageOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	DepartmentIdTypeContactsRangeSuggestApplicationAppVersionDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeContactsRangeSuggestApplicationAppVersionOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeContactsRangeSuggestApplicationAppVersionUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeContactsRangeSuggestApplicationAppVersionUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeContactsRangeSuggestApplicationAppVersionOpenId  = "open_id"  // 以open_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 (
	ContactsRangeTypeEqualToAvailability = "equal_to_availability" // 与应用可用范围一致
	ContactsRangeTypeSome                = "some"                  // 修改部分成员
	ContactsRangeTypeAll                 = "all"                   // 全部成员范围
)
View Source
const (
	UserIdTypePatchApplicationContactsRangeOpenId  = "open_id"  // 以open_id 标识成员
	UserIdTypePatchApplicationContactsRangeUserId  = "user_id"  // 以user_id 标识用户
	UserIdTypePatchApplicationContactsRangeUnionId = "union_id" // 以union_id 标识用户
)
View Source
const (
	DepartmentIdTypePatchApplicationContactsRangeOpenDepartmentId = "open_department_id" // 以open_department_id标识部门
	DepartmentIdTypePatchApplicationContactsRangeDepartmentId     = "department_id"      // 以department_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 // 反馈已关闭

)
View Source
const (
	UserIdTypeCheckWhiteBlackListApplicationVisibilityUserId  = "user_id"  // 以user_id来标识用户
	UserIdTypeCheckWhiteBlackListApplicationVisibilityUnionId = "union_id" // 以union_id来标识用户
	UserIdTypeCheckWhiteBlackListApplicationVisibilityOpenId  = "open_id"  // 以open_id来标识用户
)
View Source
const (
	DepartmentIdTypeCheckWhiteBlackListApplicationVisibilityDepartmentId     = "department_id"      // 以department_id来标识部门
	DepartmentIdTypeCheckWhiteBlackListApplicationVisibilityOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	DepartmentIdTypePatchApplicationVisibilityOpenDepartmentId = "open_department_id" // 以open_department_id标识部门
	DepartmentIdTypePatchApplicationVisibilityDepartmentId     = "department_id"      // 以department_id标识部门
)
View Source
const (
	UserIdTypePatchApplicationVisibilityOpenId  = "open_id"  // 以open_id 标识用户
	UserIdTypePatchApplicationVisibilityUserId  = "user_id"  // 以user_id 标识用户
	UserIdTypePatchApplicationVisibilityUnionId = "union_id" // 以union_id 标识用户
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Accessibility added in v3.0.30

type Accessibility struct {
	Reason *string `json:"reason,omitempty"` // 更新访问状态原因说明,停用OpenAPI时将作为OpenAPI错误消息返回;若设置停用,则该字段必填.
	State  *string `json:"state,omitempty"`  // 访问状态,取值"Enable"或"Disable"
}

type AccessibilityBuilder added in v3.0.30

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

func NewAccessibilityBuilder added in v3.0.30

func NewAccessibilityBuilder() *AccessibilityBuilder

func (*AccessibilityBuilder) Build added in v3.0.30

func (builder *AccessibilityBuilder) Build() *Accessibility

func (*AccessibilityBuilder) Reason added in v3.0.30

func (builder *AccessibilityBuilder) Reason(reason string) *AccessibilityBuilder

更新访问状态原因说明,停用OpenAPI时将作为OpenAPI错误消息返回;若设置停用,则该字段必填.

示例值:应用发送消息过于频繁,暂停应用调用发送OpenAPI

func (*AccessibilityBuilder) State added in v3.0.30

func (builder *AccessibilityBuilder) State(state string) *AccessibilityBuilder

访问状态,取值"Enable"或"Disable"

示例值:Enable

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 AppAbilityBot added in v3.1.2

type AppAbilityBot struct {
	Enable                 *bool                `json:"enable,omitempty"`                    // 是否开启
	MessageCardCallbackUrl *string              `json:"message_card_callback_url,omitempty"` // 消息卡片的回调地址
	I18ns                  []*AppAbilityBotI18n `json:"i18ns,omitempty"`                     // 国际化内容
}

type AppAbilityBotBuilder added in v3.1.2

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

func NewAppAbilityBotBuilder added in v3.1.2

func NewAppAbilityBotBuilder() *AppAbilityBotBuilder

func (*AppAbilityBotBuilder) Build added in v3.1.2

func (builder *AppAbilityBotBuilder) Build() *AppAbilityBot

func (*AppAbilityBotBuilder) Enable added in v3.1.2

func (builder *AppAbilityBotBuilder) Enable(enable bool) *AppAbilityBotBuilder

是否开启

示例值:true

func (*AppAbilityBotBuilder) I18ns added in v3.1.2

国际化内容

示例值:

func (*AppAbilityBotBuilder) MessageCardCallbackUrl added in v3.1.2

func (builder *AppAbilityBotBuilder) MessageCardCallbackUrl(messageCardCallbackUrl string) *AppAbilityBotBuilder

消息卡片的回调地址

示例值:https://open.feishu.cn

type AppAbilityBotI18n added in v3.1.2

type AppAbilityBotI18n struct {
	I18nKey        *string `json:"i18n_key,omitempty"`         // 语种类型
	GetStartedDesc *string `json:"get_started_desc,omitempty"` // 如何开始使用描述文案
}

type AppAbilityBotI18nBuilder added in v3.1.2

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

func NewAppAbilityBotI18nBuilder added in v3.1.2

func NewAppAbilityBotI18nBuilder() *AppAbilityBotI18nBuilder

func (*AppAbilityBotI18nBuilder) Build added in v3.1.2

func (builder *AppAbilityBotI18nBuilder) Build() *AppAbilityBotI18n

func (*AppAbilityBotI18nBuilder) GetStartedDesc added in v3.1.2

func (builder *AppAbilityBotI18nBuilder) GetStartedDesc(getStartedDesc string) *AppAbilityBotI18nBuilder

如何开始使用描述文案

示例值:如何使用机器人

func (*AppAbilityBotI18nBuilder) I18nKey added in v3.1.2

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

语种类型

示例值:zh_cn

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 AppAbilityWeb added in v3.1.2

type AppAbilityWeb struct {
	Enable            *bool   `json:"enable,omitempty"`                // 是否开启网页应用能力
	PcUrl             *string `json:"pc_url,omitempty"`                // PC端链接
	PcNewPageOpenMode *string `json:"pc_new_page_open_mode,omitempty"` // PC端新页面打开方式
	MobileUrl         *string `json:"mobile_url,omitempty"`            // 移动端链接
}

type AppAbilityWebBuilder added in v3.1.2

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

func NewAppAbilityWebBuilder added in v3.1.2

func NewAppAbilityWebBuilder() *AppAbilityWebBuilder

func (*AppAbilityWebBuilder) Build added in v3.1.2

func (builder *AppAbilityWebBuilder) Build() *AppAbilityWeb

func (*AppAbilityWebBuilder) Enable added in v3.1.2

func (builder *AppAbilityWebBuilder) Enable(enable bool) *AppAbilityWebBuilder

是否开启网页应用能力

示例值:true

func (*AppAbilityWebBuilder) MobileUrl added in v3.1.2

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

移动端链接

示例值:https://open.feishu.cn/

func (*AppAbilityWebBuilder) PcNewPageOpenMode added in v3.1.2

func (builder *AppAbilityWebBuilder) PcNewPageOpenMode(pcNewPageOpenMode string) *AppAbilityWebBuilder

PC端新页面打开方式

示例值:new_tab

func (*AppAbilityWebBuilder) PcUrl added in v3.1.2

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

PC端链接

示例值:https://open.feishu.cn/

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 AppCollaborator added in v3.1.2

type AppCollaborator struct {
	Type   *string `json:"type,omitempty"`    // 人员类型
	UserId *string `json:"user_id,omitempty"` // 用户ID
}

type AppCollaboratorBuilder added in v3.1.2

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

func NewAppCollaboratorBuilder added in v3.1.2

func NewAppCollaboratorBuilder() *AppCollaboratorBuilder

func (*AppCollaboratorBuilder) Build added in v3.1.2

func (builder *AppCollaboratorBuilder) Build() *AppCollaborator

func (*AppCollaboratorBuilder) Type added in v3.1.2

人员类型

示例值:administrator

func (*AppCollaboratorBuilder) UserId added in v3.1.2

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

用户ID

示例值:ou_d317f090b7258ad0372aa53963cda70d

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 AppConfigContactsRange added in v3.1.2

type AppConfigContactsRange struct {
	ContactsRangeType *string                 `json:"contacts_range_type,omitempty"` // 更新范围方式
	VisibleList       *AppContactsRangeIdList `json:"visible_list,omitempty"`        // 通讯录可用人员列表
}

type AppConfigContactsRangeBuilder added in v3.1.2

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

func NewAppConfigContactsRangeBuilder added in v3.1.2

func NewAppConfigContactsRangeBuilder() *AppConfigContactsRangeBuilder

func (*AppConfigContactsRangeBuilder) Build added in v3.1.2

func (*AppConfigContactsRangeBuilder) ContactsRangeType added in v3.1.2

func (builder *AppConfigContactsRangeBuilder) ContactsRangeType(contactsRangeType string) *AppConfigContactsRangeBuilder

更新范围方式

示例值:some

func (*AppConfigContactsRangeBuilder) VisibleList added in v3.1.2

通讯录可用人员列表

示例值:

type AppConfigEvent added in v3.1.2

type AppConfigEvent struct {
	SubscriptionType *string  `json:"subscription_type,omitempty"` // 订阅方式
	RequestUrl       *string  `json:"request_url,omitempty"`       // 接收事件的服务器地址
	AddEvents        []string `json:"add_events,omitempty"`        // 添加事件列表
	RemoveEvents     []string `json:"remove_events,omitempty"`     // 删除事件列表
}

type AppConfigEventBuilder added in v3.1.2

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

func NewAppConfigEventBuilder added in v3.1.2

func NewAppConfigEventBuilder() *AppConfigEventBuilder

func (*AppConfigEventBuilder) AddEvents added in v3.1.2

func (builder *AppConfigEventBuilder) AddEvents(addEvents []string) *AppConfigEventBuilder

添加事件列表

示例值:

func (*AppConfigEventBuilder) Build added in v3.1.2

func (builder *AppConfigEventBuilder) Build() *AppConfigEvent

func (*AppConfigEventBuilder) RemoveEvents added in v3.1.2

func (builder *AppConfigEventBuilder) RemoveEvents(removeEvents []string) *AppConfigEventBuilder

删除事件列表

示例值:

func (*AppConfigEventBuilder) RequestUrl added in v3.1.2

func (builder *AppConfigEventBuilder) RequestUrl(requestUrl string) *AppConfigEventBuilder

接收事件的服务器地址

示例值:https://open.feishu.cn/

func (*AppConfigEventBuilder) SubscriptionType added in v3.1.2

func (builder *AppConfigEventBuilder) SubscriptionType(subscriptionType string) *AppConfigEventBuilder

订阅方式

示例值:webhook

type AppConfigScope added in v3.1.2

type AppConfigScope struct {
	AddScopes    []*AppConfigScopeItem `json:"add_scopes,omitempty"`    // 新增权限
	RemoveScopes []*AppConfigScopeItem `json:"remove_scopes,omitempty"` // 删除权限
}

type AppConfigScopeBuilder added in v3.1.2

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

func NewAppConfigScopeBuilder added in v3.1.2

func NewAppConfigScopeBuilder() *AppConfigScopeBuilder

func (*AppConfigScopeBuilder) AddScopes added in v3.1.2

func (builder *AppConfigScopeBuilder) AddScopes(addScopes []*AppConfigScopeItem) *AppConfigScopeBuilder

新增权限

示例值:

func (*AppConfigScopeBuilder) Build added in v3.1.2

func (builder *AppConfigScopeBuilder) Build() *AppConfigScope

func (*AppConfigScopeBuilder) RemoveScopes added in v3.1.2

func (builder *AppConfigScopeBuilder) RemoveScopes(removeScopes []*AppConfigScopeItem) *AppConfigScopeBuilder

删除权限

示例值:

type AppConfigScopeItem added in v3.1.2

type AppConfigScopeItem struct {
	ScopeName *string `json:"scope_name,omitempty"` // 权限名称
	TokenType *string `json:"token_type,omitempty"` // 身份类型
}

type AppConfigScopeItemBuilder added in v3.1.2

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

func NewAppConfigScopeItemBuilder added in v3.1.2

func NewAppConfigScopeItemBuilder() *AppConfigScopeItemBuilder

func (*AppConfigScopeItemBuilder) Build added in v3.1.2

func (*AppConfigScopeItemBuilder) ScopeName added in v3.1.2

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

权限名称

示例值:im:message

func (*AppConfigScopeItemBuilder) TokenType added in v3.1.2

func (builder *AppConfigScopeItemBuilder) TokenType(tokenType string) *AppConfigScopeItemBuilder

身份类型

示例值:tenant

type AppConfigSecurity added in v3.1.2

type AppConfigSecurity struct {
	Add    *AppConfigSecurityItem `json:"add,omitempty"`    // 新增项
	Remove *AppConfigSecurityItem `json:"remove,omitempty"` // 删除列表
}

type AppConfigSecurityBuilder added in v3.1.2

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

func NewAppConfigSecurityBuilder added in v3.1.2

func NewAppConfigSecurityBuilder() *AppConfigSecurityBuilder

func (*AppConfigSecurityBuilder) Add added in v3.1.2

新增项

示例值:

func (*AppConfigSecurityBuilder) Build added in v3.1.2

func (builder *AppConfigSecurityBuilder) Build() *AppConfigSecurity

func (*AppConfigSecurityBuilder) Remove added in v3.1.2

删除列表

示例值:

type AppConfigSecurityItem added in v3.1.2

type AppConfigSecurityItem struct {
	RedirectUrls          []string `json:"redirect_urls,omitempty"`            // 重定向URL
	AllowedIps            []string `json:"allowed_ips,omitempty"`              // IP白名单 IP需要填写调用方出口公网IP地址
	H5TrustedDomains      []string `json:"h5_trusted_domains,omitempty"`       // H5可信域名仅可信域名内的 H5 可以访问 JSAPI,部分需要鉴权的 JSAPI 必填。
	WebViewTrustedDomains []string `json:"web_view_trusted_domains,omitempty"` // Web-View 可信域名
	AllowedSchemas        []string `json:"allowed_schemas,omitempty"`          // 小程序协议名白名单
	AllowedServerDomains  []string `json:"allowed_server_domains,omitempty"`   // 服务器可信域名
}

type AppConfigSecurityItemBuilder added in v3.1.2

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

func NewAppConfigSecurityItemBuilder added in v3.1.2

func NewAppConfigSecurityItemBuilder() *AppConfigSecurityItemBuilder

func (*AppConfigSecurityItemBuilder) AllowedIps added in v3.1.2

func (builder *AppConfigSecurityItemBuilder) AllowedIps(allowedIps []string) *AppConfigSecurityItemBuilder

IP白名单 IP需要填写调用方出口公网IP地址

示例值:

func (*AppConfigSecurityItemBuilder) AllowedSchemas added in v3.1.2

func (builder *AppConfigSecurityItemBuilder) AllowedSchemas(allowedSchemas []string) *AppConfigSecurityItemBuilder

小程序协议名白名单

示例值:

func (*AppConfigSecurityItemBuilder) AllowedServerDomains added in v3.1.2

func (builder *AppConfigSecurityItemBuilder) AllowedServerDomains(allowedServerDomains []string) *AppConfigSecurityItemBuilder

服务器可信域名

示例值:

func (*AppConfigSecurityItemBuilder) Build added in v3.1.2

func (*AppConfigSecurityItemBuilder) H5TrustedDomains added in v3.1.2

func (builder *AppConfigSecurityItemBuilder) H5TrustedDomains(h5TrustedDomains []string) *AppConfigSecurityItemBuilder

H5可信域名仅可信域名内的 H5 可以访问 JSAPI,部分需要鉴权的 JSAPI 必填。

示例值:

func (*AppConfigSecurityItemBuilder) RedirectUrls added in v3.1.2

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

重定向URL

示例值:

func (*AppConfigSecurityItemBuilder) WebViewTrustedDomains added in v3.1.2

func (builder *AppConfigSecurityItemBuilder) WebViewTrustedDomains(webViewTrustedDomains []string) *AppConfigSecurityItemBuilder

Web-View 可信域名

示例值:

type AppConfigVisibility added in v3.1.2

type AppConfigVisibility struct {
	IsVisibleToAll *bool                `json:"is_visible_to_all,omitempty"` // 是否全员可见,false:否;true:是;不填:继续当前状态不改变.如果可见范围为全员后添加的可用人员则无效,禁用人员仍然有效
	VisibleList    *AppVisibilityIdList `json:"visible_list,omitempty"`      // 可用人员列表
}

type AppConfigVisibilityBuilder added in v3.1.2

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

func NewAppConfigVisibilityBuilder added in v3.1.2

func NewAppConfigVisibilityBuilder() *AppConfigVisibilityBuilder

func (*AppConfigVisibilityBuilder) Build added in v3.1.2

func (*AppConfigVisibilityBuilder) IsVisibleToAll added in v3.1.2

func (builder *AppConfigVisibilityBuilder) IsVisibleToAll(isVisibleToAll bool) *AppConfigVisibilityBuilder

是否全员可见,false:否;true:是;不填:继续当前状态不改变.如果可见范围为全员后添加的可用人员则无效,禁用人员仍然有效

示例值:false

func (*AppConfigVisibilityBuilder) VisibleList added in v3.1.2

可用人员列表

示例值:

type AppContactsRangeIdList added in v3.0.30

type AppContactsRangeIdList struct {
	UserIds       []string `json:"user_ids,omitempty"`       // 成员id列表
	DepartmentIds []string `json:"department_ids,omitempty"` // 部门id列表
	GroupIds      []string `json:"group_ids,omitempty"`      // 用户组列表
}

type AppContactsRangeIdListBuilder added in v3.0.30

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

func NewAppContactsRangeIdListBuilder added in v3.0.30

func NewAppContactsRangeIdListBuilder() *AppContactsRangeIdListBuilder

func (*AppContactsRangeIdListBuilder) Build added in v3.0.30

func (*AppContactsRangeIdListBuilder) DepartmentIds added in v3.0.30

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

部门id列表

示例值:

func (*AppContactsRangeIdListBuilder) GroupIds added in v3.0.30

用户组列表

示例值:

func (*AppContactsRangeIdListBuilder) UserIds added in v3.0.30

成员id列表

示例值:

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 AppVisibilityIdList added in v3.0.30

type AppVisibilityIdList struct {
	UserIds       []string `json:"user_ids,omitempty"`       // 成员id列表(open_id/union_id/user_id)
	DepartmentIds []string `json:"department_ids,omitempty"` // 部门id列表(自定义部门id/open_department_id)
	GroupIds      []string `json:"group_ids,omitempty"`      // 用户组id
}

type AppVisibilityIdListBuilder added in v3.0.30

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

func NewAppVisibilityIdListBuilder added in v3.0.30

func NewAppVisibilityIdListBuilder() *AppVisibilityIdListBuilder

func (*AppVisibilityIdListBuilder) Build added in v3.0.30

func (*AppVisibilityIdListBuilder) DepartmentIds added in v3.0.30

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

部门id列表(自定义部门id/open_department_id)

示例值:

func (*AppVisibilityIdListBuilder) GroupIds added in v3.0.30

func (builder *AppVisibilityIdListBuilder) GroupIds(groupIds []string) *AppVisibilityIdListBuilder

用户组id

示例值:

func (*AppVisibilityIdListBuilder) UserIds added in v3.0.30

func (builder *AppVisibilityIdListBuilder) UserIds(userIds []string) *AppVisibilityIdListBuilder

成员id列表(open_id/union_id/user_id)

示例值:

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 列表
	GroupIds      []string `json:"group_ids,omitempty"`      // 可见性成员 group_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) GroupIds added in v3.0.19

func (builder *AppVisibleListBuilder) GroupIds(groupIds []string) *AppVisibleListBuilder

可见性成员 group_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"`           // 付费类型
	CreateSource         *string           `json:"create_source,omitempty"`          // 应用创建来源(目前仅Base应用返回)
	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"`                  // 应用的所有者信息
	MobileDefaultAbility *string           `json:"mobile_default_ability,omitempty"` // 移动端默认能力
	PcDefaultAbility     *string           `json:"pc_default_ability,omitempty"`     // PC端默认能力
}

type ApplicationAppContactsRange added in v3.0.19

type ApplicationAppContactsRange struct {
	ContactsScopeType *string         `json:"contacts_scope_type,omitempty"` // 通讯录可见性类型
	VisibleList       *AppVisibleList `json:"visible_list,omitempty"`        // 可用名单
}

type ApplicationAppContactsRangeBuilder added in v3.0.19

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

func NewApplicationAppContactsRangeBuilder added in v3.0.19

func NewApplicationAppContactsRangeBuilder() *ApplicationAppContactsRangeBuilder

func (*ApplicationAppContactsRangeBuilder) Build added in v3.0.19

func (*ApplicationAppContactsRangeBuilder) ContactsScopeType added in v3.0.19

func (builder *ApplicationAppContactsRangeBuilder) ContactsScopeType(contactsScopeType string) *ApplicationAppContactsRangeBuilder

通讯录可见性类型

示例值:some

func (*ApplicationAppContactsRangeBuilder) VisibleList added in v3.0.19

可用名单

示例值:

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"`            // 跟随应用版本的信息
	EventInfos       []*Event          `json:"event_infos,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) EventInfos added in v3.2.1

func (builder *ApplicationAppVersionBuilder) EventInfos(eventInfos []*Event) *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) CreateSource added in v3.0.31

func (builder *ApplicationBuilder) CreateSource(createSource string) *ApplicationBuilder

应用创建来源(目前仅Base应用返回)

示例值:base

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) MobileDefaultAbility added in v3.2.1

func (builder *ApplicationBuilder) MobileDefaultAbility(mobileDefaultAbility string) *ApplicationBuilder

移动端默认能力

示例值:gadget

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) PcDefaultAbility added in v3.2.1

func (builder *ApplicationBuilder) PcDefaultAbility(pcDefaultAbility string) *ApplicationBuilder

PC端默认能力

示例值:gadget

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"`                    // 应用开发商的手机号,进商店应用返回。仅当应用商店配置了这种联系方式时才会返回
	OwnerId                *UserId `json:"owner_id,omitempty"`                 // 应用所有者用户ID
	CustomerServiceAccount *string `json:"customer_service_account,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) CustomerServiceAccount added in v3.2.1

func (builder *ApplicationEventOwnerBuilder) CustomerServiceAccount(customerServiceAccount string) *ApplicationEventOwnerBuilder

客服账号

示例值:feishu@bytedance.com

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) OwnerId added in v3.2.1

应用所有者用户ID

示例值:ou_155184d1e73cbfb8973e5a9e698e74f2

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"`                    // 应用开发商的手机号(仅商店应用返回)
	CustomerServiceAccount *string `json:"customer_service_account,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) CustomerServiceAccount added in v3.2.1

func (builder *ApplicationOwnerBuilder) CustomerServiceAccount(customerServiceAccount string) *ApplicationOwnerBuilder

客服账号,仅当商店应用配置了这种联系方式时才会返回

示例值:feishu@bytedance.com

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 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 ApplicationVisibilityDepartmentWhiteBlackInfo added in v3.0.19

type ApplicationVisibilityDepartmentWhiteBlackInfo struct {
	DepartmentId *string `json:"department_id,omitempty"` // 部门ID
	InWhiteList  *bool   `json:"in_white_list,omitempty"` // 是否在白名单中
	InBlackList  *bool   `json:"in_black_list,omitempty"` // 是否在黑名单中
}

type ApplicationVisibilityDepartmentWhiteBlackInfoBuilder added in v3.0.19

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

func NewApplicationVisibilityDepartmentWhiteBlackInfoBuilder added in v3.0.19

func NewApplicationVisibilityDepartmentWhiteBlackInfoBuilder() *ApplicationVisibilityDepartmentWhiteBlackInfoBuilder

func (*ApplicationVisibilityDepartmentWhiteBlackInfoBuilder) Build added in v3.0.19

func (*ApplicationVisibilityDepartmentWhiteBlackInfoBuilder) DepartmentId added in v3.0.19

部门ID

示例值:od-aa2c50a04769feefededb7a05b7525a8

func (*ApplicationVisibilityDepartmentWhiteBlackInfoBuilder) InBlackList added in v3.0.19

是否在黑名单中

示例值:false

func (*ApplicationVisibilityDepartmentWhiteBlackInfoBuilder) InWhiteList added in v3.0.19

是否在白名单中

示例值:false

type ApplicationVisibilityGroupWhiteBlackInfo added in v3.0.19

type ApplicationVisibilityGroupWhiteBlackInfo struct {
	GroupId     *string `json:"group_id,omitempty"`      // 用户组ID
	InWhiteList *bool   `json:"in_white_list,omitempty"` // 是否在白名单中
	InBlackList *bool   `json:"in_black_list,omitempty"` // 是否在黑名单中
}

type ApplicationVisibilityGroupWhiteBlackInfoBuilder added in v3.0.19

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

func NewApplicationVisibilityGroupWhiteBlackInfoBuilder added in v3.0.19

func NewApplicationVisibilityGroupWhiteBlackInfoBuilder() *ApplicationVisibilityGroupWhiteBlackInfoBuilder

func (*ApplicationVisibilityGroupWhiteBlackInfoBuilder) Build added in v3.0.19

func (*ApplicationVisibilityGroupWhiteBlackInfoBuilder) GroupId added in v3.0.19

用户组ID

示例值:96815a9cd9beg8g4

func (*ApplicationVisibilityGroupWhiteBlackInfoBuilder) InBlackList added in v3.0.19

是否在黑名单中

示例值:false

func (*ApplicationVisibilityGroupWhiteBlackInfoBuilder) InWhiteList added in v3.0.19

是否在白名单中

示例值:false

type ApplicationVisibilityUserWhiteBlackInfo added in v3.0.19

type ApplicationVisibilityUserWhiteBlackInfo struct {
	UserId      *string `json:"user_id,omitempty"`       // 用户ID
	InWhiteList *bool   `json:"in_white_list,omitempty"` // 是否在白名单中
	InBlackList *bool   `json:"in_black_list,omitempty"` // 是否在黑名单中
	InPaidList  *bool   `json:"in_paid_list,omitempty"`  // 是否在付费名单中
}

type ApplicationVisibilityUserWhiteBlackInfoBuilder added in v3.0.19

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

func NewApplicationVisibilityUserWhiteBlackInfoBuilder added in v3.0.19

func NewApplicationVisibilityUserWhiteBlackInfoBuilder() *ApplicationVisibilityUserWhiteBlackInfoBuilder

func (*ApplicationVisibilityUserWhiteBlackInfoBuilder) Build added in v3.0.19

func (*ApplicationVisibilityUserWhiteBlackInfoBuilder) InBlackList added in v3.0.19

是否在黑名单中

示例值:false

func (*ApplicationVisibilityUserWhiteBlackInfoBuilder) InPaidList added in v3.0.19

是否在付费名单中

示例值:false

func (*ApplicationVisibilityUserWhiteBlackInfoBuilder) InWhiteList added in v3.0.19

是否在白名单中

示例值:false

func (*ApplicationVisibilityUserWhiteBlackInfoBuilder) UserId added in v3.0.19

用户ID

示例值:ou_d317f090b7258ad0372aa53963cda70d

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 CheckWhiteBlackListApplicationVisibilityPathReqBodyBuilder added in v3.0.20

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

func NewCheckWhiteBlackListApplicationVisibilityPathReqBodyBuilder added in v3.0.20

func NewCheckWhiteBlackListApplicationVisibilityPathReqBodyBuilder() *CheckWhiteBlackListApplicationVisibilityPathReqBodyBuilder

func (*CheckWhiteBlackListApplicationVisibilityPathReqBodyBuilder) Build added in v3.0.20

func (*CheckWhiteBlackListApplicationVisibilityPathReqBodyBuilder) DepartmentIds added in v3.0.20

部门ID列表

示例值:

func (*CheckWhiteBlackListApplicationVisibilityPathReqBodyBuilder) GroupIds added in v3.0.20

用户组ID列表

示例值:

func (*CheckWhiteBlackListApplicationVisibilityPathReqBodyBuilder) UserIds added in v3.0.20

用户ID列表

示例值:

type CheckWhiteBlackListApplicationVisibilityReq added in v3.0.20

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

type CheckWhiteBlackListApplicationVisibilityReqBody added in v3.0.20

type CheckWhiteBlackListApplicationVisibilityReqBody struct {
	UserIds       []string `json:"user_ids,omitempty"`       // 用户ID列表
	DepartmentIds []string `json:"department_ids,omitempty"` // 部门ID列表
	GroupIds      []string `json:"group_ids,omitempty"`      // 用户组ID列表
}

type CheckWhiteBlackListApplicationVisibilityReqBodyBuilder added in v3.0.20

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

func NewCheckWhiteBlackListApplicationVisibilityReqBodyBuilder added in v3.0.20

func NewCheckWhiteBlackListApplicationVisibilityReqBodyBuilder() *CheckWhiteBlackListApplicationVisibilityReqBodyBuilder

func (*CheckWhiteBlackListApplicationVisibilityReqBodyBuilder) Build added in v3.0.20

func (*CheckWhiteBlackListApplicationVisibilityReqBodyBuilder) DepartmentIds added in v3.0.20

部门ID列表

示例值:

func (*CheckWhiteBlackListApplicationVisibilityReqBodyBuilder) GroupIds added in v3.0.20

用户组ID列表

示例值:

func (*CheckWhiteBlackListApplicationVisibilityReqBodyBuilder) UserIds added in v3.0.20

用户ID列表

示例值:

type CheckWhiteBlackListApplicationVisibilityReqBuilder added in v3.0.20

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

func NewCheckWhiteBlackListApplicationVisibilityReqBuilder added in v3.0.20

func NewCheckWhiteBlackListApplicationVisibilityReqBuilder() *CheckWhiteBlackListApplicationVisibilityReqBuilder

func (*CheckWhiteBlackListApplicationVisibilityReqBuilder) AppId added in v3.0.20

目标应用ID

示例值:cli_a3a3d00b40b8d01b

func (*CheckWhiteBlackListApplicationVisibilityReqBuilder) Body added in v3.0.20

func (*CheckWhiteBlackListApplicationVisibilityReqBuilder) Build added in v3.0.20

func (*CheckWhiteBlackListApplicationVisibilityReqBuilder) DepartmentIdType added in v3.0.20

此次请求传参中的department_id的类型

示例值:department_id

func (*CheckWhiteBlackListApplicationVisibilityReqBuilder) UserIdType added in v3.0.20

此次请求传参中的user_id的类型

示例值:user_id

type CheckWhiteBlackListApplicationVisibilityResp added in v3.0.20

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

func (*CheckWhiteBlackListApplicationVisibilityResp) Success added in v3.0.20

type CheckWhiteBlackListApplicationVisibilityRespData added in v3.0.20

type CheckWhiteBlackListApplicationVisibilityRespData struct {
	UserVisibilityList       []*ApplicationVisibilityUserWhiteBlackInfo       `json:"user_visibility_list,omitempty"`       // 用户可见性信息列表
	DepartmentVisibilityList []*ApplicationVisibilityDepartmentWhiteBlackInfo `json:"department_visibility_list,omitempty"` // 部门可见性信息列表
	GroupVisibilityList      []*ApplicationVisibilityGroupWhiteBlackInfo      `json:"group_visibility_list,omitempty"`      // 用户组可见性信息列表
}

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 ContactsRangeConfigurationApplicationReq added in v3.0.20

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

type ContactsRangeConfigurationApplicationReqBuilder added in v3.0.20

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

func NewContactsRangeConfigurationApplicationReqBuilder added in v3.0.20

func NewContactsRangeConfigurationApplicationReqBuilder() *ContactsRangeConfigurationApplicationReqBuilder

func (*ContactsRangeConfigurationApplicationReqBuilder) AppId added in v3.0.20

应用的 id

示例值:cli_9b445f5258795107

func (*ContactsRangeConfigurationApplicationReqBuilder) Build added in v3.0.20

func (*ContactsRangeConfigurationApplicationReqBuilder) DepartmentIdType added in v3.0.20

返回值的部门ID的类型

示例值:department_id

func (*ContactsRangeConfigurationApplicationReqBuilder) PageSize added in v3.0.20

分页大小

示例值:20

func (*ContactsRangeConfigurationApplicationReqBuilder) PageToken added in v3.0.20

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

示例值:new-e3c5a0627cdf0c2e057da7257b90376a

func (*ContactsRangeConfigurationApplicationReqBuilder) UserIdType added in v3.0.20

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

示例值:

type ContactsRangeConfigurationApplicationResp added in v3.0.20

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

func (*ContactsRangeConfigurationApplicationResp) Success added in v3.0.20

type ContactsRangeConfigurationApplicationRespData added in v3.0.20

type ContactsRangeConfigurationApplicationRespData struct {
	ContactsRange *ApplicationAppContactsRange `json:"contacts_range,omitempty"` //
	HasMore       *bool                        `json:"has_more,omitempty"`       // 是否还有更多项
	PageToken     *string                      `json:"page_token,omitempty"`     // 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token
}

type ContactsRangeSuggestApplicationAppVersionReq added in v3.0.20

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

type ContactsRangeSuggestApplicationAppVersionReqBuilder added in v3.0.20

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

func NewContactsRangeSuggestApplicationAppVersionReqBuilder added in v3.0.20

func NewContactsRangeSuggestApplicationAppVersionReqBuilder() *ContactsRangeSuggestApplicationAppVersionReqBuilder

func (*ContactsRangeSuggestApplicationAppVersionReqBuilder) AppId added in v3.0.20

应用 id

示例值:cli_9f3ca975326b501b

func (*ContactsRangeSuggestApplicationAppVersionReqBuilder) Build added in v3.0.20

func (*ContactsRangeSuggestApplicationAppVersionReqBuilder) DepartmentIdType added in v3.0.20

返回值的部门ID的类型

示例值:department_id

func (*ContactsRangeSuggestApplicationAppVersionReqBuilder) UserIdType added in v3.0.20

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

示例值:

func (*ContactsRangeSuggestApplicationAppVersionReqBuilder) VersionId added in v3.0.20

唯一标识应用版本的 ID

示例值:oav_d317f090b7258ad0372aa53963cda70d

type ContactsRangeSuggestApplicationAppVersionResp added in v3.0.20

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

func (*ContactsRangeSuggestApplicationAppVersionResp) Success added in v3.0.20

type ContactsRangeSuggestApplicationAppVersionRespData added in v3.0.20

type ContactsRangeSuggestApplicationAppVersionRespData struct {
	ContactsRange *ApplicationAppContactsRange `json:"contacts_range,omitempty"` //
}

type DepartmentId added in v3.0.29

type DepartmentId struct {
	DepartmentId     *string `json:"department_id,omitempty"`      //
	OpenDepartmentId *string `json:"open_department_id,omitempty"` //
}

type DepartmentIdBuilder added in v3.0.29

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

func NewDepartmentIdBuilder added in v3.0.29

func NewDepartmentIdBuilder() *DepartmentIdBuilder

func (*DepartmentIdBuilder) Build added in v3.0.29

func (builder *DepartmentIdBuilder) Build() *DepartmentId

func (*DepartmentIdBuilder) DepartmentId added in v3.0.29

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

示例值:

func (*DepartmentIdBuilder) OpenDepartmentId added in v3.0.29

func (builder *DepartmentIdBuilder) OpenDepartmentId(openDepartmentId string) *DepartmentIdBuilder

示例值:

type DepartmentOverviewApplicationAppUsagePathReqBodyBuilder added in v3.0.25

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

func NewDepartmentOverviewApplicationAppUsagePathReqBodyBuilder added in v3.0.25

func NewDepartmentOverviewApplicationAppUsagePathReqBodyBuilder() *DepartmentOverviewApplicationAppUsagePathReqBodyBuilder

func (*DepartmentOverviewApplicationAppUsagePathReqBodyBuilder) Build added in v3.0.25

func (*DepartmentOverviewApplicationAppUsagePathReqBodyBuilder) CycleType added in v3.0.25

活跃周期的统计类型

示例值:1

func (*DepartmentOverviewApplicationAppUsagePathReqBodyBuilder) Date added in v3.0.25

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

示例值:2021-07-08

func (*DepartmentOverviewApplicationAppUsagePathReqBodyBuilder) DepartmentId added in v3.0.25

查询的部门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

func (*DepartmentOverviewApplicationAppUsagePathReqBodyBuilder) PageSize added in v3.0.25

分页大小,取值范围 1~20

示例值:10

func (*DepartmentOverviewApplicationAppUsagePathReqBodyBuilder) PageToken added in v3.0.25

分页标记,第一次请求不填,表示从头开始遍历;当返回的has_more为true时,会返回新的page_token,再次调用接口,传入这个page_token,将获得下一页数据。

示例值:new-1a8f509162ca3c95405838d05ccded09

func (*DepartmentOverviewApplicationAppUsagePathReqBodyBuilder) Recursion added in v3.0.25

是否需要查询部门下多层子部门的数据。未设置或为0时,仅查询department_id对应的部门。设置为n时,查询department_id及其n级子部门的数据。仅在department_id参数传递时有效,最大值为4。

示例值:0

type DepartmentOverviewApplicationAppUsageReq added in v3.0.25

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

type DepartmentOverviewApplicationAppUsageReqBody added in v3.0.25

type DepartmentOverviewApplicationAppUsageReqBody 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。;- 若不填写则返回整个租户的数据
	Recursion    *int    `json:"recursion,omitempty"`     // 是否需要查询部门下多层子部门的数据。未设置或为0时,仅查询department_id对应的部门。设置为n时,查询department_id及其n级子部门的数据。仅在department_id参数传递时有效,最大值为4。
	PageSize     *int    `json:"page_size,omitempty"`     // 分页大小,取值范围 1~20
	PageToken    *string `json:"page_token,omitempty"`    // 分页标记,第一次请求不填,表示从头开始遍历;当返回的has_more为true时,会返回新的page_token,再次调用接口,传入这个page_token,将获得下一页数据。
}

type DepartmentOverviewApplicationAppUsageReqBodyBuilder added in v3.0.25

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

func NewDepartmentOverviewApplicationAppUsageReqBodyBuilder added in v3.0.25

func NewDepartmentOverviewApplicationAppUsageReqBodyBuilder() *DepartmentOverviewApplicationAppUsageReqBodyBuilder

func (*DepartmentOverviewApplicationAppUsageReqBodyBuilder) Build added in v3.0.25

func (*DepartmentOverviewApplicationAppUsageReqBodyBuilder) CycleType added in v3.0.25

活跃周期的统计类型

示例值:1

func (*DepartmentOverviewApplicationAppUsageReqBodyBuilder) Date added in v3.0.25

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

示例值:2021-07-08

func (*DepartmentOverviewApplicationAppUsageReqBodyBuilder) DepartmentId added in v3.0.25

查询的部门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

func (*DepartmentOverviewApplicationAppUsageReqBodyBuilder) PageSize added in v3.0.25

分页大小,取值范围 1~20

示例值:10

func (*DepartmentOverviewApplicationAppUsageReqBodyBuilder) PageToken added in v3.0.25

分页标记,第一次请求不填,表示从头开始遍历;当返回的has_more为true时,会返回新的page_token,再次调用接口,传入这个page_token,将获得下一页数据。

示例值:new-1a8f509162ca3c95405838d05ccded09

func (*DepartmentOverviewApplicationAppUsageReqBodyBuilder) Recursion added in v3.0.25

是否需要查询部门下多层子部门的数据。未设置或为0时,仅查询department_id对应的部门。设置为n时,查询department_id及其n级子部门的数据。仅在department_id参数传递时有效,最大值为4。

示例值:0

type DepartmentOverviewApplicationAppUsageReqBuilder added in v3.0.25

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

func NewDepartmentOverviewApplicationAppUsageReqBuilder added in v3.0.25

func NewDepartmentOverviewApplicationAppUsageReqBuilder() *DepartmentOverviewApplicationAppUsageReqBuilder

func (*DepartmentOverviewApplicationAppUsageReqBuilder) AppId added in v3.0.25

目标应用 ID

示例值:cli_9f115af860f7901b

func (*DepartmentOverviewApplicationAppUsageReqBuilder) Body added in v3.0.25

查看应用在某一天/某一周/某一个月的使用数据,可以根据部门做多层子部门的筛选

func (*DepartmentOverviewApplicationAppUsageReqBuilder) Build added in v3.0.25

func (*DepartmentOverviewApplicationAppUsageReqBuilder) DepartmentIdType added in v3.0.25

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

示例值:open_department_id

type DepartmentOverviewApplicationAppUsageResp added in v3.0.25

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

func (*DepartmentOverviewApplicationAppUsageResp) Success added in v3.0.25

type DepartmentOverviewApplicationAppUsageRespData added in v3.0.25

type DepartmentOverviewApplicationAppUsageRespData struct {
	HasMore   *bool                            `json:"has_more,omitempty"`   // 分页查询时返回,代表是否还有更多数据
	PageToken *string                          `json:"page_token,omitempty"` // 分页标记,下一页分页的token
	Items     []*ApplicationDepartmentAppUsage `json:"items,omitempty"`      // 部门内员工使用应用的概览数据
}

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 Event added in v3.2.1

type Event struct {
	EventType        *string `json:"event_type,omitempty"`        // 事件类型,事件唯一标识
	EventName        *string `json:"event_name,omitempty"`        // 事件名称
	EventDescription *string `json:"event_description,omitempty"` // 事件描述
}

type EventAndCallbackEncryptStrategy added in v3.2.1

type EventAndCallbackEncryptStrategy struct {
	EncryptionKey     *string `json:"encryption_key,omitempty"`     // 加密key, 配置 Encrypt Key 后,开放平台将向请求地址推送加密后的事件
	VerificationToken *string `json:"verification_token,omitempty"` // 开放平台向应用推送的事件中都带有此 Token,应用可以据此 Token 验证推送的事件是否属于该应用。
}

type EventAndCallbackEncryptStrategyBuilder added in v3.2.1

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

func NewEventAndCallbackEncryptStrategyBuilder added in v3.2.1

func NewEventAndCallbackEncryptStrategyBuilder() *EventAndCallbackEncryptStrategyBuilder

func (*EventAndCallbackEncryptStrategyBuilder) Build added in v3.2.1

func (*EventAndCallbackEncryptStrategyBuilder) EncryptionKey added in v3.2.1

加密key, 配置 Encrypt Key 后,开放平台将向请求地址推送加密后的事件

示例值:xE4k2SkQgtbC8jZEviGRshiZrdPqdkRI

func (*EventAndCallbackEncryptStrategyBuilder) VerificationToken added in v3.2.1

func (builder *EventAndCallbackEncryptStrategyBuilder) VerificationToken(verificationToken string) *EventAndCallbackEncryptStrategyBuilder

开放平台向应用推送的事件中都带有此 Token,应用可以据此 Token 验证推送的事件是否属于该应用。

示例值:lVEjWtBAu6kVIgSLMV3C4f5W2sAAwvqS

type EventBuilder added in v3.2.1

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

func NewEventBuilder added in v3.2.1

func NewEventBuilder() *EventBuilder

func (*EventBuilder) Build added in v3.2.1

func (builder *EventBuilder) Build() *Event

func (*EventBuilder) EventDescription added in v3.2.1

func (builder *EventBuilder) EventDescription(eventDescription string) *EventBuilder

事件描述

示例值:群聊名称、头像、描述以及群编辑权限、群分享权限等被修改时推送事件

func (*EventBuilder) EventName added in v3.2.1

func (builder *EventBuilder) EventName(eventName string) *EventBuilder

事件名称

示例值:群配置修改事件

func (*EventBuilder) EventType added in v3.2.1

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

事件类型,事件唯一标识

示例值:im.chat.updated_v1

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 MessagePushOverviewApplicationAppUsagePathReqBodyBuilder added in v3.3.0

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

func NewMessagePushOverviewApplicationAppUsagePathReqBodyBuilder added in v3.3.0

func NewMessagePushOverviewApplicationAppUsagePathReqBodyBuilder() *MessagePushOverviewApplicationAppUsagePathReqBodyBuilder

func (*MessagePushOverviewApplicationAppUsagePathReqBodyBuilder) Build added in v3.3.0

func (*MessagePushOverviewApplicationAppUsagePathReqBodyBuilder) CycleType added in v3.3.0

枚举值:day,week,month;week指自然周,返回当前日期所在周的数据;不满一周则从周一到当前日期算。month指自然月,返回当前日期所在月的数据。

示例值:1

func (*MessagePushOverviewApplicationAppUsagePathReqBodyBuilder) Date added in v3.3.0

查询日期,若cycle_type为week,则输入的date必须为周一; 若cycle_type为month,则输入的date必须为每月1号

示例值:2021-07-08

func (*MessagePushOverviewApplicationAppUsagePathReqBodyBuilder) DepartmentId added in v3.3.0

需要查询的部门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 MessagePushOverviewApplicationAppUsageReq added in v3.3.0

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

type MessagePushOverviewApplicationAppUsageReqBody added in v3.3.0

type MessagePushOverviewApplicationAppUsageReqBody struct {
	Date         *string `json:"date,omitempty"`          // 查询日期,若cycle_type为week,则输入的date必须为周一; 若cycle_type为month,则输入的date必须为每月1号
	CycleType    *int    `json:"cycle_type,omitempty"`    // 枚举值:day,week,month;week指自然周,返回当前日期所在周的数据;不满一周则从周一到当前日期算。month指自然月,返回当前日期所在月的数据。
	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。返回当前部门的使用数据; 若不填写,则返回当前租户的使用数据
}

type MessagePushOverviewApplicationAppUsageReqBodyBuilder added in v3.3.0

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

func NewMessagePushOverviewApplicationAppUsageReqBodyBuilder added in v3.3.0

func NewMessagePushOverviewApplicationAppUsageReqBodyBuilder() *MessagePushOverviewApplicationAppUsageReqBodyBuilder

func (*MessagePushOverviewApplicationAppUsageReqBodyBuilder) Build added in v3.3.0

func (*MessagePushOverviewApplicationAppUsageReqBodyBuilder) CycleType added in v3.3.0

枚举值:day,week,month;week指自然周,返回当前日期所在周的数据;不满一周则从周一到当前日期算。month指自然月,返回当前日期所在月的数据。

示例值:1

func (*MessagePushOverviewApplicationAppUsageReqBodyBuilder) Date added in v3.3.0

查询日期,若cycle_type为week,则输入的date必须为周一; 若cycle_type为month,则输入的date必须为每月1号

示例值:2021-07-08

func (*MessagePushOverviewApplicationAppUsageReqBodyBuilder) DepartmentId added in v3.3.0

需要查询的部门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 MessagePushOverviewApplicationAppUsageReqBuilder added in v3.3.0

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

func NewMessagePushOverviewApplicationAppUsageReqBuilder added in v3.3.0

func NewMessagePushOverviewApplicationAppUsageReqBuilder() *MessagePushOverviewApplicationAppUsageReqBuilder

func (*MessagePushOverviewApplicationAppUsageReqBuilder) AppId added in v3.3.0

目标应用ID,支持自建应用

示例值:cli_9f115af860f7901b

func (*MessagePushOverviewApplicationAppUsageReqBuilder) Body added in v3.3.0

目标:查看应用在某一天/某一周/某一个月的机器人消息推送数据,可以根据部门做筛选

func (*MessagePushOverviewApplicationAppUsageReqBuilder) Build added in v3.3.0

func (*MessagePushOverviewApplicationAppUsageReqBuilder) DepartmentIdType added in v3.3.0

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

示例值:open_department_id

type MessagePushOverviewApplicationAppUsageResp added in v3.3.0

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

func (*MessagePushOverviewApplicationAppUsageResp) Success added in v3.3.0

type MessagePushOverviewApplicationAppUsageRespData added in v3.3.0

type MessagePushOverviewApplicationAppUsageRespData struct {
	Items []*ApplicationAppUsage `json:"items,omitempty"` // 消息推送情况,指标值包括:send_msg_count:消息推送数、send_user_count:消息触达人数、read_in_1h_count:消息1h阅读量、read_in_12h_count:消息12h阅读量
}

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 OpenapiOption added in v3.0.30

type OpenapiOption struct {
	HttpMethod    *string        `json:"http_method,omitempty"`   // OpenAPI HTTP method
	UrlPattern    *string        `json:"url_pattern,omitempty"`   // OpenAPI HTTP URL
	Accessibility *Accessibility `json:"accessibility,omitempty"` // 可访问性
}

type OpenapiOptionBuilder added in v3.0.30

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

func NewOpenapiOptionBuilder added in v3.0.30

func NewOpenapiOptionBuilder() *OpenapiOptionBuilder

func (*OpenapiOptionBuilder) Accessibility added in v3.0.30

func (builder *OpenapiOptionBuilder) Accessibility(accessibility *Accessibility) *OpenapiOptionBuilder

可访问性

示例值:

func (*OpenapiOptionBuilder) Build added in v3.0.30

func (builder *OpenapiOptionBuilder) Build() *OpenapiOption

func (*OpenapiOptionBuilder) HttpMethod added in v3.0.30

func (builder *OpenapiOptionBuilder) HttpMethod(httpMethod string) *OpenapiOptionBuilder

OpenAPI HTTP method

示例值:GET

func (*OpenapiOptionBuilder) UrlPattern added in v3.0.30

func (builder *OpenapiOptionBuilder) UrlPattern(urlPattern string) *OpenapiOptionBuilder

OpenAPI HTTP URL

示例值:/open-apis/contact/v3/users/:user_id

type Operator added in v3.0.12

type Operator struct {
	OperatorName *string `json:"operator_name,omitempty"` // 用户名称
	OperatorId   *UserId `json:"operator_id,omitempty"`   // 用户 ID
}

type OperatorBuilder added in v3.0.12

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

func NewOperatorBuilder added in v3.0.12

func NewOperatorBuilder() *OperatorBuilder

func (*OperatorBuilder) Build added in v3.0.12

func (builder *OperatorBuilder) Build() *Operator

func (*OperatorBuilder) OperatorId added in v3.0.12

func (builder *OperatorBuilder) OperatorId(operatorId *UserId) *OperatorBuilder

用户 ID

示例值:ou_ff0b7ba35fb********67dfc8b885136

func (*OperatorBuilder) OperatorName added in v3.0.12

func (builder *OperatorBuilder) OperatorName(operatorName string) *OperatorBuilder

用户名称

示例值:张三

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"` // 应用主语言
	CreateSource    *string `json:"create_source,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 P2BotMenuV6 added in v3.0.20

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

func (*P2BotMenuV6) RawReq added in v3.0.20

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

type P2BotMenuV6Data added in v3.0.20

type P2BotMenuV6Data struct {
	Operator  *Operator `json:"operator,omitempty"`  // 用户信息
	EventKey  *string   `json:"event_key,omitempty"` // 菜单事件的唯一标识
	Timestamp *int64    `json:"timestamp,omitempty"` // 用户点击菜单时间
}

type P2BotMenuV6Handler added in v3.0.20

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

消息处理器定义

func NewP2BotMenuV6Handler added in v3.0.20

func NewP2BotMenuV6Handler(handler func(context.Context, *P2BotMenuV6) error) *P2BotMenuV6Handler

func (*P2BotMenuV6Handler) Event added in v3.0.20

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

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

func (*P2BotMenuV6Handler) Handle added in v3.0.20

func (h *P2BotMenuV6Handler) 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 PatchApplicationContactsRangePathReqBodyBuilder added in v3.0.30

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

func NewPatchApplicationContactsRangePathReqBodyBuilder added in v3.0.30

func NewPatchApplicationContactsRangePathReqBodyBuilder() *PatchApplicationContactsRangePathReqBodyBuilder

func (*PatchApplicationContactsRangePathReqBodyBuilder) AddVisibleList added in v3.0.30

可见范围新增列表

示例值:

func (*PatchApplicationContactsRangePathReqBodyBuilder) Build added in v3.0.30

func (*PatchApplicationContactsRangePathReqBodyBuilder) ContactsRangeType added in v3.0.30

更新范围方式

示例值:some

func (*PatchApplicationContactsRangePathReqBodyBuilder) DelVisibleList added in v3.0.30

删除可用名单

示例值:

type PatchApplicationContactsRangeReq added in v3.0.30

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

type PatchApplicationContactsRangeReqBody added in v3.0.30

type PatchApplicationContactsRangeReqBody struct {
	ContactsRangeType *string                 `json:"contacts_range_type,omitempty"` // 更新范围方式
	AddVisibleList    *AppContactsRangeIdList `json:"add_visible_list,omitempty"`    // 可见范围新增列表
	DelVisibleList    *AppContactsRangeIdList `json:"del_visible_list,omitempty"`    // 删除可用名单
}

type PatchApplicationContactsRangeReqBodyBuilder added in v3.0.30

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

func NewPatchApplicationContactsRangeReqBodyBuilder added in v3.0.30

func NewPatchApplicationContactsRangeReqBodyBuilder() *PatchApplicationContactsRangeReqBodyBuilder

func (*PatchApplicationContactsRangeReqBodyBuilder) AddVisibleList added in v3.0.30

可见范围新增列表

示例值:

func (*PatchApplicationContactsRangeReqBodyBuilder) Build added in v3.0.30

func (*PatchApplicationContactsRangeReqBodyBuilder) ContactsRangeType added in v3.0.30

更新范围方式

示例值:some

func (*PatchApplicationContactsRangeReqBodyBuilder) DelVisibleList added in v3.0.30

删除可用名单

示例值:

type PatchApplicationContactsRangeReqBuilder added in v3.0.30

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

func NewPatchApplicationContactsRangeReqBuilder added in v3.0.30

func NewPatchApplicationContactsRangeReqBuilder() *PatchApplicationContactsRangeReqBuilder

func (*PatchApplicationContactsRangeReqBuilder) AppId added in v3.0.30

应用id

示例值:cli_dsfjksdfee1

func (*PatchApplicationContactsRangeReqBuilder) Body added in v3.0.30

func (*PatchApplicationContactsRangeReqBuilder) Build added in v3.0.30

func (*PatchApplicationContactsRangeReqBuilder) DepartmentIdType added in v3.0.30

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

部门id 类型

示例值:open_department_id

func (*PatchApplicationContactsRangeReqBuilder) UserIdType added in v3.0.30

成员id类型

示例值:open_id

type PatchApplicationContactsRangeResp added in v3.0.30

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

func (*PatchApplicationContactsRangeResp) Success added in v3.0.30

func (resp *PatchApplicationContactsRangeResp) 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 PatchApplicationVisibilityPathReqBodyBuilder added in v3.0.30

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

func NewPatchApplicationVisibilityPathReqBodyBuilder added in v3.0.30

func NewPatchApplicationVisibilityPathReqBodyBuilder() *PatchApplicationVisibilityPathReqBodyBuilder

func (*PatchApplicationVisibilityPathReqBodyBuilder) AddInvisibleList added in v3.0.30

添加禁用人员名单

示例值:

func (*PatchApplicationVisibilityPathReqBodyBuilder) AddVisibleList added in v3.0.30

添加可用人员名单

示例值:

func (*PatchApplicationVisibilityPathReqBodyBuilder) Build added in v3.0.30

func (*PatchApplicationVisibilityPathReqBodyBuilder) DelInvisibleList added in v3.0.30

删除禁用人员名单

示例值:

func (*PatchApplicationVisibilityPathReqBodyBuilder) DelVisibleList added in v3.0.30

删除可用人员名单

示例值:

func (*PatchApplicationVisibilityPathReqBodyBuilder) IsVisibleToAll added in v3.0.30

是否全员可见,false:否;true:是;不填:继续当前状态不改变.如果可见范围为全员后添加的可用人员则无效,禁用人员仍然有效

示例值:false

type PatchApplicationVisibilityReq added in v3.0.30

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

type PatchApplicationVisibilityReqBody added in v3.0.30

type PatchApplicationVisibilityReqBody struct {
	AddVisibleList   *AppVisibilityIdList `json:"add_visible_list,omitempty"`   // 添加可用人员名单
	DelVisibleList   *AppVisibilityIdList `json:"del_visible_list,omitempty"`   // 删除可用人员名单
	AddInvisibleList *AppVisibilityIdList `json:"add_invisible_list,omitempty"` // 添加禁用人员名单
	DelInvisibleList *AppVisibilityIdList `json:"del_invisible_list,omitempty"` // 删除禁用人员名单
	IsVisibleToAll   *bool                `json:"is_visible_to_all,omitempty"`  // 是否全员可见,false:否;true:是;不填:继续当前状态不改变.如果可见范围为全员后添加的可用人员则无效,禁用人员仍然有效
}

type PatchApplicationVisibilityReqBodyBuilder added in v3.0.30

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

func NewPatchApplicationVisibilityReqBodyBuilder added in v3.0.30

func NewPatchApplicationVisibilityReqBodyBuilder() *PatchApplicationVisibilityReqBodyBuilder

func (*PatchApplicationVisibilityReqBodyBuilder) AddInvisibleList added in v3.0.30

添加禁用人员名单

示例值:

func (*PatchApplicationVisibilityReqBodyBuilder) AddVisibleList added in v3.0.30

添加可用人员名单

示例值:

func (*PatchApplicationVisibilityReqBodyBuilder) Build added in v3.0.30

func (*PatchApplicationVisibilityReqBodyBuilder) DelInvisibleList added in v3.0.30

删除禁用人员名单

示例值:

func (*PatchApplicationVisibilityReqBodyBuilder) DelVisibleList added in v3.0.30

删除可用人员名单

示例值:

func (*PatchApplicationVisibilityReqBodyBuilder) IsVisibleToAll added in v3.0.30

是否全员可见,false:否;true:是;不填:继续当前状态不改变.如果可见范围为全员后添加的可用人员则无效,禁用人员仍然有效

示例值:false

type PatchApplicationVisibilityReqBuilder added in v3.0.30

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

func NewPatchApplicationVisibilityReqBuilder added in v3.0.30

func NewPatchApplicationVisibilityReqBuilder() *PatchApplicationVisibilityReqBuilder

func (*PatchApplicationVisibilityReqBuilder) AppId added in v3.0.30

应用id

示例值:cli_9b445f5258795107

func (*PatchApplicationVisibilityReqBuilder) Body added in v3.0.30

func (*PatchApplicationVisibilityReqBuilder) Build added in v3.0.30

func (*PatchApplicationVisibilityReqBuilder) DepartmentIdType added in v3.0.30

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

部门id 类型

示例值:open_department_id

func (*PatchApplicationVisibilityReqBuilder) UserIdType added in v3.0.30

open_id 类型

示例值:open_id

type PatchApplicationVisibilityResp added in v3.0.30

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

func (*PatchApplicationVisibilityResp) Success added in v3.0.30

func (resp *PatchApplicationVisibilityResp) 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 SetAppBadgeReq added in v3.0.31

type SetAppBadgeReq struct {
	AppBadge *AppBadge `body:""`
	// contains filtered or unexported fields
}

type SetAppBadgeReqBuilder added in v3.0.31

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

func NewSetAppBadgeReqBuilder added in v3.0.31

func NewSetAppBadgeReqBuilder() *SetAppBadgeReqBuilder

func (*SetAppBadgeReqBuilder) AppBadge added in v3.0.31

func (builder *SetAppBadgeReqBuilder) AppBadge(appBadge *AppBadge) *SetAppBadgeReqBuilder

更新应用红点信息,用于工作台场景

func (*SetAppBadgeReqBuilder) Build added in v3.0.31

func (builder *SetAppBadgeReqBuilder) Build() *SetAppBadgeReq

func (*SetAppBadgeReqBuilder) UserIdType added in v3.0.31

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

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

示例值:

type SetAppBadgeResp added in v3.0.31

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

func (*SetAppBadgeResp) Success added in v3.0.31

func (resp *SetAppBadgeResp) Success() bool

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

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

示例值: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 UpdateApplicationManagementPathReqBodyBuilder added in v3.1.3

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

func NewUpdateApplicationManagementPathReqBodyBuilder added in v3.1.3

func NewUpdateApplicationManagementPathReqBodyBuilder() *UpdateApplicationManagementPathReqBodyBuilder

func (*UpdateApplicationManagementPathReqBodyBuilder) Build added in v3.1.3

func (*UpdateApplicationManagementPathReqBodyBuilder) Enable added in v3.1.3

启用/停用应用

示例值:true

type UpdateApplicationManagementReq added in v3.1.3

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

type UpdateApplicationManagementReqBody added in v3.1.3

type UpdateApplicationManagementReqBody struct {
	Enable *bool `json:"enable,omitempty"` // 启用/停用应用
}

type UpdateApplicationManagementReqBodyBuilder added in v3.1.3

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

func NewUpdateApplicationManagementReqBodyBuilder added in v3.1.3

func NewUpdateApplicationManagementReqBodyBuilder() *UpdateApplicationManagementReqBodyBuilder

func (*UpdateApplicationManagementReqBodyBuilder) Build added in v3.1.3

func (*UpdateApplicationManagementReqBodyBuilder) Enable added in v3.1.3

启用/停用应用

示例值:true

type UpdateApplicationManagementReqBuilder added in v3.1.3

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

func NewUpdateApplicationManagementReqBuilder added in v3.1.3

func NewUpdateApplicationManagementReqBuilder() *UpdateApplicationManagementReqBuilder

func (*UpdateApplicationManagementReqBuilder) AppId added in v3.1.3

应用ID

示例值:cli_a4517c8461f8100a

func (*UpdateApplicationManagementReqBuilder) Body added in v3.1.3

func (*UpdateApplicationManagementReqBuilder) Build added in v3.1.3

type UpdateApplicationManagementResp added in v3.1.3

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

func (*UpdateApplicationManagementResp) Success added in v3.1.3

func (resp *UpdateApplicationManagementResp) Success() bool

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 V6 added in v3.1.0

type V6 struct {
	AppBadge                 *appBadge                 // 应用红点
	AppRecommendRule         *appRecommendRule         // 我的常用推荐规则
	Application              *application              // 应用
	ApplicationAppUsage      *applicationAppUsage      // 应用使用情况
	ApplicationAppVersion    *applicationAppVersion    // 事件
	ApplicationContactsRange *applicationContactsRange // application.contacts_range
	ApplicationFeedback      *applicationFeedback      // 应用反馈
	ApplicationManagement    *applicationManagement    // application.management
	ApplicationVisibility    *applicationVisibility    // 事件
	Bot                      *bot                      // 事件
}

func New added in v3.1.0

func New(config *larkcore.Config) *V6

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