larkadmin

package
v3.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DepartmentIdTypeDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeListAdminUserStatDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeListAdminUserStatOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	GrantTypeManual   = 0 // 手动选择有效期
	GrantTypeJoinTime = 1 // 匹配系统入职时间

)
View Source
const (
	UserIdTypeCreateBadgeGrantOpenId  = "open_id"  // 用户的open_id
	UserIdTypeCreateBadgeGrantUnionId = "union_id" // 用户的union_id
	UserIdTypeCreateBadgeGrantUserId  = "user_id"  // 用户的user_id
)
View Source
const (
	DepartmentIdTypeCreateBadgeGrantDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeCreateBadgeGrantOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeGetBadgeGrantOpenId  = "open_id"  // 用户的open_id
	UserIdTypeGetBadgeGrantUnionId = "union_id" // 用户的union_id
	UserIdTypeGetBadgeGrantUserId  = "user_id"  // 用户的user_id
)
View Source
const (
	DepartmentIdTypeGetBadgeGrantDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeGetBadgeGrantOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeListBadgeGrantOpenId  = "open_id"  // 用户的open_id
	UserIdTypeListBadgeGrantUnionId = "union_id" // 用户的union_id
	UserIdTypeListBadgeGrantUserId  = "user_id"  // 用户的user_id
)
View Source
const (
	DepartmentIdTypeListBadgeGrantDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeListBadgeGrantOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	GrantTypeUpdateBadgeGrantManual   = 0 // 手动选择有效期
	GrantTypeUpdateBadgeGrantJoinTime = 1 // 匹配系统入职时间

)
View Source
const (
	UserIdTypeUpdateBadgeGrantOpenId  = "open_id"  // 用户的open_id
	UserIdTypeUpdateBadgeGrantUnionId = "union_id" // 用户的union_id
	UserIdTypeUpdateBadgeGrantUserId  = "user_id"  // 用户的user_id
)
View Source
const (
	DepartmentIdTypeUpdateBadgeGrantDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeUpdateBadgeGrantOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	ImageTypeDetail = 1 // 勋章详情图
	ImageTypeShow   = 2 // 勋章挂饰图

)
View Source
const (
	UserIdTypeResetPasswordOpenId  = "open_id"  // open_id
	UserIdTypeResetPasswordUnionId = "union_id" // union_id
	UserIdTypeResetPasswordUserId  = "user_id"  // user_id
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminDeptStat

type AdminDeptStat struct {
	Date                 *string `json:"date,omitempty"`                    // 日期
	DepartmentId         *string `json:"department_id,omitempty"`           // 部门的department_id 或者open_department_id
	DepartmentName       *string `json:"department_name,omitempty"`         // 部门名字
	DepartmentPath       *string `json:"department_path,omitempty"`         // 部门路径
	TotalUserNum         *int    `json:"total_user_num,omitempty"`          // 部门总人数
	ActiveUserNum        *int    `json:"active_user_num,omitempty"`         // 激活人数
	ActiveUserRate       *string `json:"active_user_rate,omitempty"`        // 激活率
	SuiteDau             *int    `json:"suite_dau,omitempty"`               // 活跃人数
	SuiteActiveRate      *string `json:"suite_active_rate,omitempty"`       // 活跃率
	NewUserNum           *int    `json:"new_user_num,omitempty"`            // 新用户数
	NewActiveNum         *int    `json:"new_active_num,omitempty"`          // 新激活数
	ResignUserNum        *int    `json:"resign_user_num,omitempty"`         // 离职人数
	ImDau                *int    `json:"im_dau,omitempty"`                  // 消息活跃人数
	SendMessengerUserNum *int    `json:"send_messenger_user_num,omitempty"` // 发送消息人数
	SendMessengerNum     *int    `json:"send_messenger_num,omitempty"`      // 发送消息数
	AvgSendMessengerNum  *string `json:"avg_send_messenger_num,omitempty"`  // 人均发送消息数
	DocsDau              *int    `json:"docs_dau,omitempty"`                // 云文档活跃人数
	CreateDocsUserNum    *int    `json:"create_docs_user_num,omitempty"`    // 创建文件人数
	CreateDocsNum        *int    `json:"create_docs_num,omitempty"`         // 创建文件数
	AvgCreateDocsNum     *string `json:"avg_create_docs_num,omitempty"`     // 人均创建文件数
	CalDau               *int    `json:"cal_dau,omitempty"`                 // 日历活跃人数
	CreateCalUserNum     *int    `json:"create_cal_user_num,omitempty"`     // 创建日程人数
	CreateCalNum         *int    `json:"create_cal_num,omitempty"`          // 创建日程数
	AvgCreateCalNum      *string `json:"avg_create_cal_num,omitempty"`      // 人均创建日程数
	VcDau                *int    `json:"vc_dau,omitempty"`                  // 音视频会议活跃人数
	VcDuration           *int    `json:"vc_duration,omitempty"`             // 会议时长(分钟)
	AvgVcDuration        *string `json:"avg_vc_duration,omitempty"`         // 人均会议时长(分钟)
	AvgDuration          *string `json:"avg_duration,omitempty"`            // 人均飞书使用时长(分钟)
	TaskDau              *int    `json:"task_dau,omitempty"`                // 任务活跃人数
	CreateTaskUserNum    *int    `json:"create_task_user_num,omitempty"`    // 创建任务人数
	CreateTaskNum        *int    `json:"create_task_num,omitempty"`         // 创建任务数
	AvgCreateTaskNum     *string `json:"avg_create_task_num,omitempty"`     // 人均创建任务数
}

type AdminDeptStatBuilder

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

func NewAdminDeptStatBuilder

func NewAdminDeptStatBuilder() *AdminDeptStatBuilder

func (*AdminDeptStatBuilder) ActiveUserNum

func (builder *AdminDeptStatBuilder) ActiveUserNum(activeUserNum int) *AdminDeptStatBuilder

激活人数

示例值:0

func (*AdminDeptStatBuilder) ActiveUserRate

func (builder *AdminDeptStatBuilder) ActiveUserRate(activeUserRate string) *AdminDeptStatBuilder

激活率

示例值:1.00

func (*AdminDeptStatBuilder) AvgCreateCalNum

func (builder *AdminDeptStatBuilder) AvgCreateCalNum(avgCreateCalNum string) *AdminDeptStatBuilder

人均创建日程数

示例值:0.00

func (*AdminDeptStatBuilder) AvgCreateDocsNum

func (builder *AdminDeptStatBuilder) AvgCreateDocsNum(avgCreateDocsNum string) *AdminDeptStatBuilder

人均创建文件数

示例值:0.00

func (*AdminDeptStatBuilder) AvgCreateTaskNum

func (builder *AdminDeptStatBuilder) AvgCreateTaskNum(avgCreateTaskNum string) *AdminDeptStatBuilder

人均创建任务数

示例值:0.00

func (*AdminDeptStatBuilder) AvgDuration

func (builder *AdminDeptStatBuilder) AvgDuration(avgDuration string) *AdminDeptStatBuilder

人均飞书使用时长(分钟)

示例值:0.00

func (*AdminDeptStatBuilder) AvgSendMessengerNum

func (builder *AdminDeptStatBuilder) AvgSendMessengerNum(avgSendMessengerNum string) *AdminDeptStatBuilder

人均发送消息数

示例值:0.00

func (*AdminDeptStatBuilder) AvgVcDuration

func (builder *AdminDeptStatBuilder) AvgVcDuration(avgVcDuration string) *AdminDeptStatBuilder

人均会议时长(分钟)

示例值:0.00

func (*AdminDeptStatBuilder) Build

func (builder *AdminDeptStatBuilder) Build() *AdminDeptStat

func (*AdminDeptStatBuilder) CalDau

func (builder *AdminDeptStatBuilder) CalDau(calDau int) *AdminDeptStatBuilder

日历活跃人数

示例值:0

func (*AdminDeptStatBuilder) CreateCalNum

func (builder *AdminDeptStatBuilder) CreateCalNum(createCalNum int) *AdminDeptStatBuilder

创建日程数

示例值:0

func (*AdminDeptStatBuilder) CreateCalUserNum

func (builder *AdminDeptStatBuilder) CreateCalUserNum(createCalUserNum int) *AdminDeptStatBuilder

创建日程人数

示例值:0

func (*AdminDeptStatBuilder) CreateDocsNum

func (builder *AdminDeptStatBuilder) CreateDocsNum(createDocsNum int) *AdminDeptStatBuilder

创建文件数

示例值:0

func (*AdminDeptStatBuilder) CreateDocsUserNum

func (builder *AdminDeptStatBuilder) CreateDocsUserNum(createDocsUserNum int) *AdminDeptStatBuilder

创建文件人数

示例值:0

func (*AdminDeptStatBuilder) CreateTaskNum

func (builder *AdminDeptStatBuilder) CreateTaskNum(createTaskNum int) *AdminDeptStatBuilder

创建任务数

示例值:0

func (*AdminDeptStatBuilder) CreateTaskUserNum

func (builder *AdminDeptStatBuilder) CreateTaskUserNum(createTaskUserNum int) *AdminDeptStatBuilder

创建任务人数

示例值:0

func (*AdminDeptStatBuilder) Date

func (builder *AdminDeptStatBuilder) Date(date string) *AdminDeptStatBuilder

日期

示例值:2020-02-15

func (*AdminDeptStatBuilder) DepartmentId

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

部门的department_id 或者open_department_id

示例值:od-382e2793cfc9471f892e8a672987654c

func (*AdminDeptStatBuilder) DepartmentName

func (builder *AdminDeptStatBuilder) DepartmentName(departmentName string) *AdminDeptStatBuilder

部门名字

示例值:subtestkkk

func (*AdminDeptStatBuilder) DepartmentPath

func (builder *AdminDeptStatBuilder) DepartmentPath(departmentPath string) *AdminDeptStatBuilder

部门路径

示例值:testkkk/subtestkkk

func (*AdminDeptStatBuilder) DocsDau

func (builder *AdminDeptStatBuilder) DocsDau(docsDau int) *AdminDeptStatBuilder

云文档活跃人数

示例值:0

func (*AdminDeptStatBuilder) ImDau

func (builder *AdminDeptStatBuilder) ImDau(imDau int) *AdminDeptStatBuilder

消息活跃人数

示例值:0

func (*AdminDeptStatBuilder) NewActiveNum

func (builder *AdminDeptStatBuilder) NewActiveNum(newActiveNum int) *AdminDeptStatBuilder

新激活数

示例值:0

func (*AdminDeptStatBuilder) NewUserNum

func (builder *AdminDeptStatBuilder) NewUserNum(newUserNum int) *AdminDeptStatBuilder

新用户数

示例值:0

func (*AdminDeptStatBuilder) ResignUserNum

func (builder *AdminDeptStatBuilder) ResignUserNum(resignUserNum int) *AdminDeptStatBuilder

离职人数

示例值:0

func (*AdminDeptStatBuilder) SendMessengerNum

func (builder *AdminDeptStatBuilder) SendMessengerNum(sendMessengerNum int) *AdminDeptStatBuilder

发送消息数

示例值:0

func (*AdminDeptStatBuilder) SendMessengerUserNum

func (builder *AdminDeptStatBuilder) SendMessengerUserNum(sendMessengerUserNum int) *AdminDeptStatBuilder

发送消息人数

示例值:0

func (*AdminDeptStatBuilder) SuiteActiveRate

func (builder *AdminDeptStatBuilder) SuiteActiveRate(suiteActiveRate string) *AdminDeptStatBuilder

活跃率

示例值:0.00

func (*AdminDeptStatBuilder) SuiteDau

func (builder *AdminDeptStatBuilder) SuiteDau(suiteDau int) *AdminDeptStatBuilder

活跃人数

示例值:0

func (*AdminDeptStatBuilder) TaskDau

func (builder *AdminDeptStatBuilder) TaskDau(taskDau int) *AdminDeptStatBuilder

任务活跃人数

示例值:0

func (*AdminDeptStatBuilder) TotalUserNum

func (builder *AdminDeptStatBuilder) TotalUserNum(totalUserNum int) *AdminDeptStatBuilder

部门总人数

示例值:2

func (*AdminDeptStatBuilder) VcDau

func (builder *AdminDeptStatBuilder) VcDau(vcDau int) *AdminDeptStatBuilder

音视频会议活跃人数

示例值:0

func (*AdminDeptStatBuilder) VcDuration

func (builder *AdminDeptStatBuilder) VcDuration(vcDuration int) *AdminDeptStatBuilder

会议时长(分钟)

示例值:0

type AdminService

type AdminService struct {
	AdminDeptStat *adminDeptStat // 部门维度的数据报表
	AdminUserStat *adminUserStat // 用户维度的数据报表
	Badge         *badge         // 勋章
	BadgeGrant    *badgeGrant    // 勋章授予名单
	BadgeImage    *badgeImage    // 勋章图片
	Password      *password      // 密码
	// contains filtered or unexported fields
}

func NewService

func NewService(config *larkcore.Config) *AdminService

type AdminUserStat

type AdminUserStat struct {
	Date             *string `json:"date,omitempty"`               // 日期
	UserId           *string `json:"user_id,omitempty"`            // 用户ID
	UserName         *string `json:"user_name,omitempty"`          // 用户名
	DepartmentName   *string `json:"department_name,omitempty"`    // 部门名
	DepartmentPath   *string `json:"department_path,omitempty"`    // 部门路径
	CreateTime       *string `json:"create_time,omitempty"`        // 账号创建时间
	UserActiveFlag   *int    `json:"user_active_flag,omitempty"`   // 用户激活状态
	RegisterTime     *string `json:"register_time,omitempty"`      // 激活时间
	SuiteActiveFlag  *int    `json:"suite_active_flag,omitempty"`  // 用户活跃状态,用户在飞书套件任意应用登陆,即为活跃。包括飞书即时消息,文档,日历,会议,开放平台等
	LastActiveTime   *string `json:"last_active_time,omitempty"`   // 最近活跃时间
	ImActiveFlag     *int    `json:"im_active_flag,omitempty"`     // 用户消息活跃状态,发生过如下事件,则认为该用户消息活跃:;发送消息、回复消息、reaction、转发消息、阅读消息、查看会话、发送表情消息等
	SendMessengerNum *int    `json:"send_messenger_num,omitempty"` // 发送消息数
	DocsActiveFlag   *int    `json:"docs_active_flag,omitempty"`   // 用户云文档活跃状态,"发生过如下事件,则认为该用户云文档活跃: ;事件1:文档/文件打开;事件2:进入docs相关页面:如文档详情页,space的各个页面"
	CreateDocsNum    *int    `json:"create_docs_num,omitempty"`    // 创建文件数
	CalActiveFlag    *int    `json:"cal_active_flag,omitempty"`    // 用户日历活跃状态,发生过如下事件,则认为用户日历活跃,包含进入日历、创建日程、收到日程邀请等
	CreateCalNum     *int    `json:"create_cal_num,omitempty"`     // 创建日程数
	VcActiveFlag     *int    `json:"vc_active_flag,omitempty"`     // 用户音视频会议活跃状态,用户进入会中状态(不包含妙计和直播)即为活跃
	VcDuration       *int    `json:"vc_duration,omitempty"`        // 会议时长
	ActiveOs         *string `json:"active_os,omitempty"`          // 活跃设备
	CreateTaskNum    *int    `json:"create_task_num,omitempty"`    // 创建任务数
	VcNum            *int    `json:"vc_num,omitempty"`             // 会议数
	AppPackageType   *string `json:"app_package_type,omitempty"`   // 飞书的应用类型名称
	OsName           *string `json:"os_name,omitempty"`            // 操作系统名称
}

type AdminUserStatBuilder

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

func NewAdminUserStatBuilder

func NewAdminUserStatBuilder() *AdminUserStatBuilder

func (*AdminUserStatBuilder) ActiveOs

func (builder *AdminUserStatBuilder) ActiveOs(activeOs string) *AdminUserStatBuilder

活跃设备

示例值:'ios 14.2,-','ios 14.2,feishu 3.40.0-alpha'

func (*AdminUserStatBuilder) AppPackageType

func (builder *AdminUserStatBuilder) AppPackageType(appPackageType string) *AdminUserStatBuilder

飞书的应用类型名称

示例值:

func (*AdminUserStatBuilder) Build

func (builder *AdminUserStatBuilder) Build() *AdminUserStat

func (*AdminUserStatBuilder) CalActiveFlag

func (builder *AdminUserStatBuilder) CalActiveFlag(calActiveFlag int) *AdminUserStatBuilder

用户日历活跃状态,发生过如下事件,则认为用户日历活跃,包含进入日历、创建日程、收到日程邀请等

示例值:1

func (*AdminUserStatBuilder) CreateCalNum

func (builder *AdminUserStatBuilder) CreateCalNum(createCalNum int) *AdminUserStatBuilder

创建日程数

示例值:0

func (*AdminUserStatBuilder) CreateDocsNum

func (builder *AdminUserStatBuilder) CreateDocsNum(createDocsNum int) *AdminUserStatBuilder

创建文件数

示例值:1

func (*AdminUserStatBuilder) CreateTaskNum

func (builder *AdminUserStatBuilder) CreateTaskNum(createTaskNum int) *AdminUserStatBuilder

创建任务数

示例值:0

func (*AdminUserStatBuilder) CreateTime

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

账号创建时间

示例值:2020-09-04 11:17:55

func (*AdminUserStatBuilder) Date

func (builder *AdminUserStatBuilder) Date(date string) *AdminUserStatBuilder

日期

示例值:2020-02-15

func (*AdminUserStatBuilder) DepartmentName

func (builder *AdminUserStatBuilder) DepartmentName(departmentName string) *AdminUserStatBuilder

部门名

示例值:testcqlbfaaasdasdasd

func (*AdminUserStatBuilder) DepartmentPath

func (builder *AdminUserStatBuilder) DepartmentPath(departmentPath string) *AdminUserStatBuilder

部门路径

示例值:testkkk/testcqlbfaaasdasdasd

func (*AdminUserStatBuilder) DocsActiveFlag

func (builder *AdminUserStatBuilder) DocsActiveFlag(docsActiveFlag int) *AdminUserStatBuilder

用户云文档活跃状态,"发生过如下事件,则认为该用户云文档活跃: ;事件1:文档/文件打开;事件2:进入docs相关页面:如文档详情页,space的各个页面"

示例值:1

func (*AdminUserStatBuilder) ImActiveFlag

func (builder *AdminUserStatBuilder) ImActiveFlag(imActiveFlag int) *AdminUserStatBuilder

用户消息活跃状态,发生过如下事件,则认为该用户消息活跃:;发送消息、回复消息、reaction、转发消息、阅读消息、查看会话、发送表情消息等

示例值:1

func (*AdminUserStatBuilder) LastActiveTime

func (builder *AdminUserStatBuilder) LastActiveTime(lastActiveTime string) *AdminUserStatBuilder

最近活跃时间

示例值:2020-12-21 22:21:28

func (*AdminUserStatBuilder) OsName

func (builder *AdminUserStatBuilder) OsName(osName string) *AdminUserStatBuilder

操作系统名称

示例值:

func (*AdminUserStatBuilder) RegisterTime

func (builder *AdminUserStatBuilder) RegisterTime(registerTime string) *AdminUserStatBuilder

激活时间

示例值:2020-09-04 11:18:32

func (*AdminUserStatBuilder) SendMessengerNum

func (builder *AdminUserStatBuilder) SendMessengerNum(sendMessengerNum int) *AdminUserStatBuilder

发送消息数

示例值:0

func (*AdminUserStatBuilder) SuiteActiveFlag

func (builder *AdminUserStatBuilder) SuiteActiveFlag(suiteActiveFlag int) *AdminUserStatBuilder

用户活跃状态,用户在飞书套件任意应用登陆,即为活跃。包括飞书即时消息,文档,日历,会议,开放平台等

示例值:1

func (*AdminUserStatBuilder) UserActiveFlag

func (builder *AdminUserStatBuilder) UserActiveFlag(userActiveFlag int) *AdminUserStatBuilder

用户激活状态

示例值:1

func (*AdminUserStatBuilder) UserId

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

用户ID

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*AdminUserStatBuilder) UserName

func (builder *AdminUserStatBuilder) UserName(userName string) *AdminUserStatBuilder

用户名

示例值:Zhang San

func (*AdminUserStatBuilder) VcActiveFlag

func (builder *AdminUserStatBuilder) VcActiveFlag(vcActiveFlag int) *AdminUserStatBuilder

用户音视频会议活跃状态,用户进入会中状态(不包含妙计和直播)即为活跃

示例值:1

func (*AdminUserStatBuilder) VcDuration

func (builder *AdminUserStatBuilder) VcDuration(vcDuration int) *AdminUserStatBuilder

会议时长

示例值:0

func (*AdminUserStatBuilder) VcNum

func (builder *AdminUserStatBuilder) VcNum(vcNum int) *AdminUserStatBuilder

会议数

示例值:0

type Administrator

type Administrator struct {
	UserId               *string `json:"user_id,omitempty"`                //
	IsSuperAdministrator *bool   `json:"is_super_administrator,omitempty"` // 用户是否是超级管理员
	IsAdministrator      *bool   `json:"is_administrator,omitempty"`       // 用户是否是管理员
}

type AdministratorBuilder

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

func NewAdministratorBuilder

func NewAdministratorBuilder() *AdministratorBuilder

func (*AdministratorBuilder) Build

func (builder *AdministratorBuilder) Build() *Administrator

func (*AdministratorBuilder) IsAdministrator

func (builder *AdministratorBuilder) IsAdministrator(isAdministrator bool) *AdministratorBuilder

用户是否是管理员

示例值:

func (*AdministratorBuilder) IsSuperAdministrator

func (builder *AdministratorBuilder) IsSuperAdministrator(isSuperAdministrator bool) *AdministratorBuilder

用户是否是超级管理员

示例值:

func (*AdministratorBuilder) UserId

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

示例值:

type ApiAuditCommonDrawers

type ApiAuditCommonDrawers struct {
	CommonDrawInfoList []*ApiAuditDrawerInfo `json:"common_draw_info_list,omitempty"` // 扩展字段信息
}

type ApiAuditCommonDrawersBuilder

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

func NewApiAuditCommonDrawersBuilder

func NewApiAuditCommonDrawersBuilder() *ApiAuditCommonDrawersBuilder

func (*ApiAuditCommonDrawersBuilder) Build

func (*ApiAuditCommonDrawersBuilder) CommonDrawInfoList

func (builder *ApiAuditCommonDrawersBuilder) CommonDrawInfoList(commonDrawInfoList []*ApiAuditDrawerInfo) *ApiAuditCommonDrawersBuilder

扩展字段信息

示例值:

type ApiAuditDrawerInfo

type ApiAuditDrawerInfo struct {
	InfoKey    *string `json:"info_key,omitempty"`     // key信息
	InfoVal    *string `json:"info_val,omitempty"`     // val值
	KeyI18nKey *string `json:"key_i18n_key,omitempty"` // key对应的i18nkey
	ValType    *string `json:"val_type,omitempty"`     // val类型
	ValI18nKey *string `json:"val_i18n_key,omitempty"` // val对应的i18nkey
}

type ApiAuditDrawerInfoBuilder

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

func NewApiAuditDrawerInfoBuilder

func NewApiAuditDrawerInfoBuilder() *ApiAuditDrawerInfoBuilder

func (*ApiAuditDrawerInfoBuilder) Build

func (*ApiAuditDrawerInfoBuilder) InfoKey

func (builder *ApiAuditDrawerInfoBuilder) InfoKey(infoKey string) *ApiAuditDrawerInfoBuilder

key信息

示例值:

func (*ApiAuditDrawerInfoBuilder) InfoVal

func (builder *ApiAuditDrawerInfoBuilder) InfoVal(infoVal string) *ApiAuditDrawerInfoBuilder

val值

示例值:

func (*ApiAuditDrawerInfoBuilder) KeyI18nKey

func (builder *ApiAuditDrawerInfoBuilder) KeyI18nKey(keyI18nKey string) *ApiAuditDrawerInfoBuilder

key对应的i18nkey

示例值:

func (*ApiAuditDrawerInfoBuilder) ValI18nKey

func (builder *ApiAuditDrawerInfoBuilder) ValI18nKey(valI18nKey string) *ApiAuditDrawerInfoBuilder

val对应的i18nkey

示例值:

func (*ApiAuditDrawerInfoBuilder) ValType

func (builder *ApiAuditDrawerInfoBuilder) ValType(valType string) *ApiAuditDrawerInfoBuilder

val类型

示例值:

type AuditAndroidContext

type AuditAndroidContext struct {
	Udid            *string `json:"udid,omitempty"`              // UDID
	Did             *string `json:"did,omitempty"`               // 设备ID
	AppVer          *string `json:"app_ver,omitempty"`           // app的版本
	Ver             *string `json:"ver,omitempty"`               // SecSDK版本
	Region          *string `json:"region,omitempty"`            // 设备语言
	IdI             *string `json:"id_i,omitempty"`              // 安卓版本号
	IdR             *string `json:"id_r,omitempty"`              // 安卓版本
	HwBrand         *string `json:"hw_brand,omitempty"`          // Brand
	HwManuf         *string `json:"hw_manuf,omitempty"`          // 制造商
	Wifip           *string `json:"wifip,omitempty"`             // wifi ip
	RouteIip        *string `json:"route_iip,omitempty"`         // 路由IP
	RouteGip        *string `json:"route_gip,omitempty"`         // 路由网关IP
	EnvSu           *string `json:"env_su,omitempty"`            // 表示当前是否root
	EnvTz           *string `json:"env_tz,omitempty"`            // 手机系统时区
	EnvMl           *string `json:"env_ml,omitempty"`            // 手机系统语言
	Location        *string `json:"location,omitempty"`          // GPS经纬度
	ActiveIp        *string `json:"active_ip,omitempty"`         // 当前设备活跃ip
	ActiveIpDetail  *string `json:"active_ip_detail,omitempty"`  // 当前设备活跃ip对应网卡类型
	CellBaseStation *string `json:"cell_base_station,omitempty"` // 基站信息
	IP              *string `json:"IP,omitempty"`                // 公网ip
}

type AuditAndroidContextBuilder

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

func NewAuditAndroidContextBuilder

func NewAuditAndroidContextBuilder() *AuditAndroidContextBuilder

func (*AuditAndroidContextBuilder) ActiveIp

func (builder *AuditAndroidContextBuilder) ActiveIp(activeIp string) *AuditAndroidContextBuilder

当前设备活跃ip

示例值:

func (*AuditAndroidContextBuilder) ActiveIpDetail

func (builder *AuditAndroidContextBuilder) ActiveIpDetail(activeIpDetail string) *AuditAndroidContextBuilder

当前设备活跃ip对应网卡类型

示例值:

func (*AuditAndroidContextBuilder) AppVer

app的版本

示例值:

func (*AuditAndroidContextBuilder) Build

func (*AuditAndroidContextBuilder) CellBaseStation

func (builder *AuditAndroidContextBuilder) CellBaseStation(cellBaseStation string) *AuditAndroidContextBuilder

基站信息

示例值:

func (*AuditAndroidContextBuilder) Did

设备ID

示例值:

func (*AuditAndroidContextBuilder) EnvMl

手机系统语言

示例值:

func (*AuditAndroidContextBuilder) EnvSu

表示当前是否root

示例值:

func (*AuditAndroidContextBuilder) EnvTz

手机系统时区

示例值:

func (*AuditAndroidContextBuilder) HwBrand

Brand

示例值:

func (*AuditAndroidContextBuilder) HwManuf

制造商

示例值:

func (*AuditAndroidContextBuilder) IP

公网ip

示例值:

func (*AuditAndroidContextBuilder) IdI

安卓版本号

示例值:

func (*AuditAndroidContextBuilder) IdR

安卓版本

示例值:

func (*AuditAndroidContextBuilder) Location

func (builder *AuditAndroidContextBuilder) Location(location string) *AuditAndroidContextBuilder

GPS经纬度

示例值:

func (*AuditAndroidContextBuilder) Region

设备语言

示例值:

func (*AuditAndroidContextBuilder) RouteGip

func (builder *AuditAndroidContextBuilder) RouteGip(routeGip string) *AuditAndroidContextBuilder

路由网关IP

示例值:

func (*AuditAndroidContextBuilder) RouteIip

func (builder *AuditAndroidContextBuilder) RouteIip(routeIip string) *AuditAndroidContextBuilder

路由IP

示例值:

func (*AuditAndroidContextBuilder) Udid

UDID

示例值:

func (*AuditAndroidContextBuilder) Ver

SecSDK版本

示例值:

func (*AuditAndroidContextBuilder) Wifip

wifi ip

示例值:

type AuditContext

type AuditContext struct {
	TerminalType   *int                 `json:"terminal_type,omitempty"`   // 终端类型
	IosContext     *AuditIosContext     `json:"ios_context,omitempty"`     // ios的环境信息
	PcContext      *AuditPcContext      `json:"pc_context,omitempty"`      // pc的环境信息
	WebContext     *AuditWebContext     `json:"web_context,omitempty"`     // web的环境信息
	AndroidContext *AuditAndroidContext `json:"android_context,omitempty"` // android的环境信息
}

type AuditContextBuilder

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

func NewAuditContextBuilder

func NewAuditContextBuilder() *AuditContextBuilder

func (*AuditContextBuilder) AndroidContext

func (builder *AuditContextBuilder) AndroidContext(androidContext *AuditAndroidContext) *AuditContextBuilder

android的环境信息

示例值:

func (*AuditContextBuilder) Build

func (builder *AuditContextBuilder) Build() *AuditContext

func (*AuditContextBuilder) IosContext

func (builder *AuditContextBuilder) IosContext(iosContext *AuditIosContext) *AuditContextBuilder

ios的环境信息

示例值:

func (*AuditContextBuilder) PcContext

func (builder *AuditContextBuilder) PcContext(pcContext *AuditPcContext) *AuditContextBuilder

pc的环境信息

示例值:

func (*AuditContextBuilder) TerminalType

func (builder *AuditContextBuilder) TerminalType(terminalType int) *AuditContextBuilder

终端类型

示例值:

func (*AuditContextBuilder) WebContext

func (builder *AuditContextBuilder) WebContext(webContext *AuditWebContext) *AuditContextBuilder

web的环境信息

示例值:

type AuditEventExtend

type AuditEventExtend struct {
	CommentType                 *string `json:"comment_type,omitempty"`                     // 评论类型
	AppDetail                   *string `json:"app_detail,omitempty"`                       // app信息
	TwoStepValidation           *bool   `json:"two_step_validation,omitempty"`              // 是否两步验证
	LoginMethod                 *string `json:"login_method,omitempty"`                     // 登录方式
	NewPeopleNumInVideo         *int    `json:"new_people_num_in_video,omitempty"`          // 创建新的{x}人会议/通话
	ExternalPeopleNumInVideo    *int    `json:"external_people_num_in_video,omitempty"`     // 将{x}名外部用户加入/退出通话
	ExternalPeopleNumInChat     *int    `json:"external_people_num_in_chat,omitempty"`      // 将{x}名外部用户加入/退出群组
	JoinGroup                   *int    `json:"join_group,omitempty"`                       // 创建{x}人数的群组
	QuitGroup                   *int    `json:"quit_group,omitempty"`                       // 解散{x}人数的群组
	ExternalPeopleNumInDocShare *int    `json:"external_people_num_in_doc_share,omitempty"` // 分享文档给{x}名外部用户
}

type AuditEventExtendBuilder

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

func NewAuditEventExtendBuilder

func NewAuditEventExtendBuilder() *AuditEventExtendBuilder

func (*AuditEventExtendBuilder) AppDetail

func (builder *AuditEventExtendBuilder) AppDetail(appDetail string) *AuditEventExtendBuilder

app信息

示例值:

func (*AuditEventExtendBuilder) Build

func (builder *AuditEventExtendBuilder) Build() *AuditEventExtend

func (*AuditEventExtendBuilder) CommentType

func (builder *AuditEventExtendBuilder) CommentType(commentType string) *AuditEventExtendBuilder

评论类型

示例值:

func (*AuditEventExtendBuilder) ExternalPeopleNumInChat

func (builder *AuditEventExtendBuilder) ExternalPeopleNumInChat(externalPeopleNumInChat int) *AuditEventExtendBuilder

将{x}名外部用户加入/退出群组

示例值:

func (*AuditEventExtendBuilder) ExternalPeopleNumInDocShare

func (builder *AuditEventExtendBuilder) ExternalPeopleNumInDocShare(externalPeopleNumInDocShare int) *AuditEventExtendBuilder

分享文档给{x}名外部用户

示例值:

func (*AuditEventExtendBuilder) ExternalPeopleNumInVideo

func (builder *AuditEventExtendBuilder) ExternalPeopleNumInVideo(externalPeopleNumInVideo int) *AuditEventExtendBuilder

将{x}名外部用户加入/退出通话

示例值:

func (*AuditEventExtendBuilder) JoinGroup

func (builder *AuditEventExtendBuilder) JoinGroup(joinGroup int) *AuditEventExtendBuilder

创建{x}人数的群组

示例值:

func (*AuditEventExtendBuilder) LoginMethod

func (builder *AuditEventExtendBuilder) LoginMethod(loginMethod string) *AuditEventExtendBuilder

登录方式

示例值:

func (*AuditEventExtendBuilder) NewPeopleNumInVideo

func (builder *AuditEventExtendBuilder) NewPeopleNumInVideo(newPeopleNumInVideo int) *AuditEventExtendBuilder

创建新的{x}人会议/通话

示例值:

func (*AuditEventExtendBuilder) QuitGroup

func (builder *AuditEventExtendBuilder) QuitGroup(quitGroup int) *AuditEventExtendBuilder

解散{x}人数的群组

示例值:

func (*AuditEventExtendBuilder) TwoStepValidation

func (builder *AuditEventExtendBuilder) TwoStepValidation(twoStepValidation bool) *AuditEventExtendBuilder

是否两步验证

示例值:

type AuditInfo

type AuditInfo struct {
	EventId         *string                 `json:"event_id,omitempty"`          // 事件id
	UniqueId        *string                 `json:"unique_id,omitempty"`         // 唯一id
	EventName       *string                 `json:"event_name,omitempty"`        // 事件名称
	DepartmentIds   []string                `json:"department_ids,omitempty"`    // 用户所属部门的ID列表
	EventModule     *int                    `json:"event_module,omitempty"`      // 模块
	OperatorType    *int                    `json:"operator_type,omitempty"`     // 操作人类型
	OperatorValue   *string                 `json:"operator_value,omitempty"`    // 操作人id
	Objects         []*AuditObjectEntity    `json:"objects,omitempty"`           // 操作对象列表
	Recipients      []*AuditRecipientEntity `json:"recipients,omitempty"`        // 接收者对象列表
	EventTime       *int                    `json:"event_time,omitempty"`        // 事件时间
	Ip              *string                 `json:"ip,omitempty"`                // ip信息
	OperatorApp     *string                 `json:"operator_app,omitempty"`      // 第三方isvID
	AuditContext    *AuditContext           `json:"audit_context,omitempty"`     // 环境信息
	Extend          *AuditEventExtend       `json:"extend,omitempty"`            // 事件级别的扩展
	OperatorAppName *string                 `json:"operator_app_name,omitempty"` // 第三方isv名称
	CommonDrawers   *ApiAuditCommonDrawers  `json:"common_drawers,omitempty"`    // 扩展字段信息
}

type AuditInfoBuilder

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

func NewAuditInfoBuilder

func NewAuditInfoBuilder() *AuditInfoBuilder

func (*AuditInfoBuilder) AuditContext

func (builder *AuditInfoBuilder) AuditContext(auditContext *AuditContext) *AuditInfoBuilder

环境信息

示例值:

func (*AuditInfoBuilder) Build

func (builder *AuditInfoBuilder) Build() *AuditInfo

func (*AuditInfoBuilder) CommonDrawers

func (builder *AuditInfoBuilder) CommonDrawers(commonDrawers *ApiAuditCommonDrawers) *AuditInfoBuilder

扩展字段信息

示例值:

func (*AuditInfoBuilder) DepartmentIds

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

用户所属部门的ID列表

示例值:

func (*AuditInfoBuilder) EventId

func (builder *AuditInfoBuilder) EventId(eventId string) *AuditInfoBuilder

事件id

示例值:

func (*AuditInfoBuilder) EventModule

func (builder *AuditInfoBuilder) EventModule(eventModule int) *AuditInfoBuilder

模块

示例值:

func (*AuditInfoBuilder) EventName

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

事件名称

示例值:

func (*AuditInfoBuilder) EventTime

func (builder *AuditInfoBuilder) EventTime(eventTime int) *AuditInfoBuilder

事件时间

示例值:

func (*AuditInfoBuilder) Extend

func (builder *AuditInfoBuilder) Extend(extend *AuditEventExtend) *AuditInfoBuilder

事件级别的扩展

示例值:

func (*AuditInfoBuilder) Ip

func (builder *AuditInfoBuilder) Ip(ip string) *AuditInfoBuilder

ip信息

示例值:

func (*AuditInfoBuilder) Objects

func (builder *AuditInfoBuilder) Objects(objects []*AuditObjectEntity) *AuditInfoBuilder

操作对象列表

示例值:

func (*AuditInfoBuilder) OperatorApp

func (builder *AuditInfoBuilder) OperatorApp(operatorApp string) *AuditInfoBuilder

第三方isvID

示例值:

func (*AuditInfoBuilder) OperatorAppName

func (builder *AuditInfoBuilder) OperatorAppName(operatorAppName string) *AuditInfoBuilder

第三方isv名称

示例值:

func (*AuditInfoBuilder) OperatorType

func (builder *AuditInfoBuilder) OperatorType(operatorType int) *AuditInfoBuilder

操作人类型

示例值:

func (*AuditInfoBuilder) OperatorValue

func (builder *AuditInfoBuilder) OperatorValue(operatorValue string) *AuditInfoBuilder

操作人id

示例值:

func (*AuditInfoBuilder) Recipients

func (builder *AuditInfoBuilder) Recipients(recipients []*AuditRecipientEntity) *AuditInfoBuilder

接收者对象列表

示例值:

func (*AuditInfoBuilder) UniqueId

func (builder *AuditInfoBuilder) UniqueId(uniqueId string) *AuditInfoBuilder

唯一id

示例值:

type AuditIosContext

type AuditIosContext struct {
	Udid            *string `json:"udid,omitempty"`              // UDID
	Did             *string `json:"did,omitempty"`               // 设备ID
	AppVer          *string `json:"app_ver,omitempty"`           // app的版本
	Ver             *string `json:"ver,omitempty"`               // SecSDK版本
	Os              *string `json:"os,omitempty"`                // 系统类型及版本
	STZone          *string `json:"STZone,omitempty"`            // 系统时区
	ML              *string `json:"ML,omitempty"`                // 当前语言
	Sjd             *string `json:"sjd,omitempty"`               // 是否越狱
	Proxyip         *string `json:"proxyip,omitempty"`           // 代理ip
	Wifip           *string `json:"wifip,omitempty"`             // wifi ip
	Location        *string `json:"location,omitempty"`          // GPS经纬度
	ActiveIp        *string `json:"active_ip,omitempty"`         // 当前设备活跃ip
	ActiveIpDetail  *string `json:"active_ip_detail,omitempty"`  // 当前设备活跃ip对应网卡类型
	CellBaseStation *string `json:"cell_base_station,omitempty"` // 基站信息
	IP              *string `json:"IP,omitempty"`                // 公网ip
}

type AuditIosContextBuilder

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

func NewAuditIosContextBuilder

func NewAuditIosContextBuilder() *AuditIosContextBuilder

func (*AuditIosContextBuilder) ActiveIp

func (builder *AuditIosContextBuilder) ActiveIp(activeIp string) *AuditIosContextBuilder

当前设备活跃ip

示例值:

func (*AuditIosContextBuilder) ActiveIpDetail

func (builder *AuditIosContextBuilder) ActiveIpDetail(activeIpDetail string) *AuditIosContextBuilder

当前设备活跃ip对应网卡类型

示例值:

func (*AuditIosContextBuilder) AppVer

func (builder *AuditIosContextBuilder) AppVer(appVer string) *AuditIosContextBuilder

app的版本

示例值:

func (*AuditIosContextBuilder) Build

func (builder *AuditIosContextBuilder) Build() *AuditIosContext

func (*AuditIosContextBuilder) CellBaseStation

func (builder *AuditIosContextBuilder) CellBaseStation(cellBaseStation string) *AuditIosContextBuilder

基站信息

示例值:

func (*AuditIosContextBuilder) Did

设备ID

示例值:

func (*AuditIosContextBuilder) IP

公网ip

示例值:

func (*AuditIosContextBuilder) Location

func (builder *AuditIosContextBuilder) Location(location string) *AuditIosContextBuilder

GPS经纬度

示例值:

func (*AuditIosContextBuilder) ML

当前语言

示例值:

func (*AuditIosContextBuilder) Os

系统类型及版本

示例值:

func (*AuditIosContextBuilder) Proxyip

func (builder *AuditIosContextBuilder) Proxyip(proxyip string) *AuditIosContextBuilder

代理ip

示例值:

func (*AuditIosContextBuilder) STZone

func (builder *AuditIosContextBuilder) STZone(sTZone string) *AuditIosContextBuilder

系统时区

示例值:

func (*AuditIosContextBuilder) Sjd

是否越狱

示例值:

func (*AuditIosContextBuilder) Udid

UDID

示例值:

func (*AuditIosContextBuilder) Ver

SecSDK版本

示例值:

func (*AuditIosContextBuilder) Wifip

func (builder *AuditIosContextBuilder) Wifip(wifip string) *AuditIosContextBuilder

wifi ip

示例值:

type AuditObjectDetail

type AuditObjectDetail struct {
	CloneSource                  *string `json:"clone_source,omitempty"`                    // 克隆来源
	TextDetail                   *string `json:"text_detail,omitempty"`                     // 其他文本
	FileName                     *string `json:"file_name,omitempty"`                       // 文件名称
	ThirdPartyAppID              *string `json:"third_party_appID,omitempty"`               // 第三方APPID
	ContainFileNum               *int    `json:"contain_file_num,omitempty"`                // 文件或文件夹数量
	PermissionSettingType        *string `json:"permission_setting_type,omitempty"`         // 链接分享设置
	PermissionExternalAccessType *bool   `json:"permission_external_access_Type,omitempty"` // 是否开启外部访问设置
	PermissionShareType          *string `json:"permission_share_type,omitempty"`           // 分享设置
	FileServiceSource            *string `json:"file_service_source,omitempty"`             // file上传业务来源
	OkrDownloadContent           *string `json:"okr_download_content,omitempty"`            // 下载OKR时的内容范围
	ContainerType                *string `json:"container_type,omitempty"`                  // 容器类型,标识是否wiki
	ContainerId                  *string `json:"container_id,omitempty"`                    // 容器id,wiki标识字段
	CurrentPage                  *string `json:"current_page,omitempty"`                    // 截屏、录制的开始页面
}

type AuditObjectDetailBuilder

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

func NewAuditObjectDetailBuilder

func NewAuditObjectDetailBuilder() *AuditObjectDetailBuilder

func (*AuditObjectDetailBuilder) Build

func (builder *AuditObjectDetailBuilder) Build() *AuditObjectDetail

func (*AuditObjectDetailBuilder) CloneSource

func (builder *AuditObjectDetailBuilder) CloneSource(cloneSource string) *AuditObjectDetailBuilder

克隆来源

示例值:

func (*AuditObjectDetailBuilder) ContainFileNum

func (builder *AuditObjectDetailBuilder) ContainFileNum(containFileNum int) *AuditObjectDetailBuilder

文件或文件夹数量

示例值:

func (*AuditObjectDetailBuilder) ContainerId

func (builder *AuditObjectDetailBuilder) ContainerId(containerId string) *AuditObjectDetailBuilder

容器id,wiki标识字段

示例值:

func (*AuditObjectDetailBuilder) ContainerType

func (builder *AuditObjectDetailBuilder) ContainerType(containerType string) *AuditObjectDetailBuilder

容器类型,标识是否wiki

示例值:

func (*AuditObjectDetailBuilder) CurrentPage

func (builder *AuditObjectDetailBuilder) CurrentPage(currentPage string) *AuditObjectDetailBuilder

截屏、录制的开始页面

示例值:

func (*AuditObjectDetailBuilder) FileName

func (builder *AuditObjectDetailBuilder) FileName(fileName string) *AuditObjectDetailBuilder

文件名称

示例值:

func (*AuditObjectDetailBuilder) FileServiceSource

func (builder *AuditObjectDetailBuilder) FileServiceSource(fileServiceSource string) *AuditObjectDetailBuilder

file上传业务来源

示例值:

func (*AuditObjectDetailBuilder) OkrDownloadContent

func (builder *AuditObjectDetailBuilder) OkrDownloadContent(okrDownloadContent string) *AuditObjectDetailBuilder

下载OKR时的内容范围

示例值:

func (*AuditObjectDetailBuilder) PermissionExternalAccessType

func (builder *AuditObjectDetailBuilder) PermissionExternalAccessType(permissionExternalAccessType bool) *AuditObjectDetailBuilder

是否开启外部访问设置

示例值:

func (*AuditObjectDetailBuilder) PermissionSettingType

func (builder *AuditObjectDetailBuilder) PermissionSettingType(permissionSettingType string) *AuditObjectDetailBuilder

链接分享设置

示例值:

func (*AuditObjectDetailBuilder) PermissionShareType

func (builder *AuditObjectDetailBuilder) PermissionShareType(permissionShareType string) *AuditObjectDetailBuilder

分享设置

示例值:

func (*AuditObjectDetailBuilder) TextDetail

func (builder *AuditObjectDetailBuilder) TextDetail(textDetail string) *AuditObjectDetailBuilder

其他文本

示例值:

func (*AuditObjectDetailBuilder) ThirdPartyAppID

func (builder *AuditObjectDetailBuilder) ThirdPartyAppID(thirdPartyAppID string) *AuditObjectDetailBuilder

第三方APPID

示例值:

type AuditObjectEntity

type AuditObjectEntity struct {
	ObjectType   *string            `json:"object_type,omitempty"`   // 操作对象类型
	ObjectValue  *string            `json:"object_value,omitempty"`  // 操作对象值,可能存在department_id、user_id等,需要进行lark_id的转换
	ObjectName   *string            `json:"object_name,omitempty"`   // 操作对象名称,如会话名、文档名等
	ObjectOwner  *string            `json:"object_owner,omitempty"`  // 操作对象的所有者
	ObjectDetail *AuditObjectDetail `json:"object_detail,omitempty"` // object 详情
}

type AuditObjectEntityBuilder

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

func NewAuditObjectEntityBuilder

func NewAuditObjectEntityBuilder() *AuditObjectEntityBuilder

func (*AuditObjectEntityBuilder) Build

func (builder *AuditObjectEntityBuilder) Build() *AuditObjectEntity

func (*AuditObjectEntityBuilder) ObjectDetail

func (builder *AuditObjectEntityBuilder) ObjectDetail(objectDetail *AuditObjectDetail) *AuditObjectEntityBuilder

object 详情

示例值:

func (*AuditObjectEntityBuilder) ObjectName

func (builder *AuditObjectEntityBuilder) ObjectName(objectName string) *AuditObjectEntityBuilder

操作对象名称,如会话名、文档名等

示例值:

func (*AuditObjectEntityBuilder) ObjectOwner

func (builder *AuditObjectEntityBuilder) ObjectOwner(objectOwner string) *AuditObjectEntityBuilder

操作对象的所有者

示例值:

func (*AuditObjectEntityBuilder) ObjectType

func (builder *AuditObjectEntityBuilder) ObjectType(objectType string) *AuditObjectEntityBuilder

操作对象类型

示例值:

func (*AuditObjectEntityBuilder) ObjectValue

func (builder *AuditObjectEntityBuilder) ObjectValue(objectValue string) *AuditObjectEntityBuilder

操作对象值,可能存在department_id、user_id等,需要进行lark_id的转换

示例值:

type AuditPcContext

type AuditPcContext struct {
	Udid   *string `json:"udid,omitempty"`    // UDID
	Did    *string `json:"did,omitempty"`     // 设备ID
	AppVer *string `json:"app_ver,omitempty"` // app的版本
	Ver    *string `json:"ver,omitempty"`     // SecSDK版本
	Os     *string `json:"os,omitempty"`      // 客户端类型
	Wifip  *string `json:"wifip,omitempty"`   // wifi ip
	Region *string `json:"region,omitempty"`  // 设备区域
	IP     *string `json:"IP,omitempty"`      // 公网ip
}

type AuditPcContextBuilder

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

func NewAuditPcContextBuilder

func NewAuditPcContextBuilder() *AuditPcContextBuilder

func (*AuditPcContextBuilder) AppVer

func (builder *AuditPcContextBuilder) AppVer(appVer string) *AuditPcContextBuilder

app的版本

示例值:

func (*AuditPcContextBuilder) Build

func (builder *AuditPcContextBuilder) Build() *AuditPcContext

func (*AuditPcContextBuilder) Did

设备ID

示例值:

func (*AuditPcContextBuilder) IP

公网ip

示例值:

func (*AuditPcContextBuilder) Os

客户端类型

示例值:

func (*AuditPcContextBuilder) Region

func (builder *AuditPcContextBuilder) Region(region string) *AuditPcContextBuilder

设备区域

示例值:

func (*AuditPcContextBuilder) Udid

func (builder *AuditPcContextBuilder) Udid(udid string) *AuditPcContextBuilder

UDID

示例值:

func (*AuditPcContextBuilder) Ver

SecSDK版本

示例值:

func (*AuditPcContextBuilder) Wifip

func (builder *AuditPcContextBuilder) Wifip(wifip string) *AuditPcContextBuilder

wifi ip

示例值:

type AuditRecipientDetail

type AuditRecipientDetail struct {
	PermissionActionType *string `json:"permission_action_type,omitempty"` // 修改权限协作者
}

type AuditRecipientDetailBuilder

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

func NewAuditRecipientDetailBuilder

func NewAuditRecipientDetailBuilder() *AuditRecipientDetailBuilder

func (*AuditRecipientDetailBuilder) Build

func (*AuditRecipientDetailBuilder) PermissionActionType

func (builder *AuditRecipientDetailBuilder) PermissionActionType(permissionActionType string) *AuditRecipientDetailBuilder

修改权限协作者

示例值:

type AuditRecipientEntity

type AuditRecipientEntity struct {
	RecipientType   *string               `json:"recipient_type,omitempty"`   // 接收者对象类型
	RecipientValue  *string               `json:"recipient_value,omitempty"`  // 接收者对象值,可能存在department_id、user_id等,需要进行lark_id的转换
	RecipientDetail *AuditRecipientDetail `json:"recipient_detail,omitempty"` // recipient 详情
}

type AuditRecipientEntityBuilder

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

func NewAuditRecipientEntityBuilder

func NewAuditRecipientEntityBuilder() *AuditRecipientEntityBuilder

func (*AuditRecipientEntityBuilder) Build

func (*AuditRecipientEntityBuilder) RecipientDetail

func (builder *AuditRecipientEntityBuilder) RecipientDetail(recipientDetail *AuditRecipientDetail) *AuditRecipientEntityBuilder

recipient 详情

示例值:

func (*AuditRecipientEntityBuilder) RecipientType

func (builder *AuditRecipientEntityBuilder) RecipientType(recipientType string) *AuditRecipientEntityBuilder

接收者对象类型

示例值:

func (*AuditRecipientEntityBuilder) RecipientValue

func (builder *AuditRecipientEntityBuilder) RecipientValue(recipientValue string) *AuditRecipientEntityBuilder

接收者对象值,可能存在department_id、user_id等,需要进行lark_id的转换

示例值:

type AuditWebContext

type AuditWebContext struct {
	UserAgent *string `json:"user_agent,omitempty"` // UA信息
	IP        *string `json:"IP,omitempty"`         // 本机IP
}

type AuditWebContextBuilder

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

func NewAuditWebContextBuilder

func NewAuditWebContextBuilder() *AuditWebContextBuilder

func (*AuditWebContextBuilder) Build

func (builder *AuditWebContextBuilder) Build() *AuditWebContext

func (*AuditWebContextBuilder) IP

本机IP

示例值:

func (*AuditWebContextBuilder) UserAgent

func (builder *AuditWebContextBuilder) UserAgent(userAgent string) *AuditWebContextBuilder

UA信息

示例值:

type Badge

type Badge struct {
	Id          *string `json:"id,omitempty"`           // 租户内勋章的唯一标识,该值由系统随机生成。
	Name        *string `json:"name,omitempty"`         // 租户内唯一的勋章名称,最多30个字符。
	Explanation *string `json:"explanation,omitempty"`  // 勋章的描述文案,最多100个字符。
	DetailImage *string `json:"detail_image,omitempty"` // 企业勋章的详情图Key。1.权限校验:非本租户上传的图片key,不能直接使用;2.时效校验:创建勋章,或者修改勋章图片key时,需使用1h内上传的图片key。
	ShowImage   *string `json:"show_image,omitempty"`   // 企业勋章的头像挂饰图Key。1.权限校验:非本租户上传的图片key,不能直接使用;2.时效校验:创建勋章,或者修改勋章图片key时,需使用1h内上传的图片key。
}

type BadgeBuilder

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

func NewBadgeBuilder

func NewBadgeBuilder() *BadgeBuilder

func (*BadgeBuilder) Build

func (builder *BadgeBuilder) Build() *Badge

func (*BadgeBuilder) DetailImage

func (builder *BadgeBuilder) DetailImage(detailImage string) *BadgeBuilder

企业勋章的详情图Key。1.权限校验:非本租户上传的图片key,不能直接使用;2.时效校验:创建勋章,或者修改勋章图片key时,需使用1h内上传的图片key。

示例值:75a1949f-d9df-4b46-bc88-dacc51e88f3j

func (*BadgeBuilder) Explanation

func (builder *BadgeBuilder) Explanation(explanation string) *BadgeBuilder

勋章的描述文案,最多100个字符。

示例值:这枚勋章为了激励员工颁发。

func (*BadgeBuilder) Id

func (builder *BadgeBuilder) Id(id string) *BadgeBuilder

租户内勋章的唯一标识,该值由系统随机生成。

示例值:m_MzfKDM

func (*BadgeBuilder) Name

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

租户内唯一的勋章名称,最多30个字符。

示例值:激励勋章

func (*BadgeBuilder) ShowImage

func (builder *BadgeBuilder) ShowImage(showImage string) *BadgeBuilder

企业勋章的头像挂饰图Key。1.权限校验:非本租户上传的图片key,不能直接使用;2.时效校验:创建勋章,或者修改勋章图片key时,需使用1h内上传的图片key。

示例值:03daa74a-159f-49e9-963e-b6c4d76103fj

type CreateBadgeGrantReq

type CreateBadgeGrantReq struct {
	Grant *Grant `body:""`
	// contains filtered or unexported fields
}

type CreateBadgeGrantReqBuilder

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

func NewCreateBadgeGrantReqBuilder

func NewCreateBadgeGrantReqBuilder() *CreateBadgeGrantReqBuilder

func (*CreateBadgeGrantReqBuilder) BadgeId

勋章ID

示例值:m_DjMzaK

func (*CreateBadgeGrantReqBuilder) Build

func (*CreateBadgeGrantReqBuilder) DepartmentIdType

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

此次调用中使用的部门ID的类型。

示例值:open_department_id

func (*CreateBadgeGrantReqBuilder) Grant

通过该接口可以为特定勋章创建一份授予名单,一枚勋章下最多可创建1000份授予名单。

func (*CreateBadgeGrantReqBuilder) UserIdType

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

用户 ID 类型

示例值:open_id

type CreateBadgeGrantResp

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

func (*CreateBadgeGrantResp) Success

func (resp *CreateBadgeGrantResp) Success() bool

type CreateBadgeGrantRespData

type CreateBadgeGrantRespData struct {
	Grant *Grant `json:"grant,omitempty"` // 授予名单的信息
}

type CreateBadgeImagePathReqBodyBuilder

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

func NewCreateBadgeImagePathReqBodyBuilder

func NewCreateBadgeImagePathReqBodyBuilder() *CreateBadgeImagePathReqBodyBuilder

func (*CreateBadgeImagePathReqBodyBuilder) Build

func (*CreateBadgeImagePathReqBodyBuilder) ImageFilePath

func (builder *CreateBadgeImagePathReqBodyBuilder) ImageFilePath(imageFilePath string) *CreateBadgeImagePathReqBodyBuilder

勋章图片的文件,仅支持 PNG 格式,320 x 320 像素,大小不超过 1024 KB。

示例值:file binary

func (*CreateBadgeImagePathReqBodyBuilder) ImageType

图片的类型

示例值:1

type CreateBadgeImageReq

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

type CreateBadgeImageReqBody

type CreateBadgeImageReqBody struct {
	ImageFile io.Reader `json:"image_file,omitempty"` // 勋章图片的文件,仅支持 PNG 格式,320 x 320 像素,大小不超过 1024 KB。
	ImageType *int      `json:"image_type,omitempty"` // 图片的类型
}

type CreateBadgeImageReqBodyBuilder

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

func NewCreateBadgeImageReqBodyBuilder

func NewCreateBadgeImageReqBodyBuilder() *CreateBadgeImageReqBodyBuilder

func (*CreateBadgeImageReqBodyBuilder) Build

func (*CreateBadgeImageReqBodyBuilder) ImageFile

勋章图片的文件,仅支持 PNG 格式,320 x 320 像素,大小不超过 1024 KB。

示例值:file binary

func (*CreateBadgeImageReqBodyBuilder) ImageType

func (builder *CreateBadgeImageReqBodyBuilder) ImageType(imageType int) *CreateBadgeImageReqBodyBuilder

图片的类型

示例值:1

type CreateBadgeImageReqBuilder

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

func NewCreateBadgeImageReqBuilder

func NewCreateBadgeImageReqBuilder() *CreateBadgeImageReqBuilder

func (*CreateBadgeImageReqBuilder) Body

通过该接口可以上传勋章详情图、挂饰图的文件,获取对应的文件key

func (*CreateBadgeImageReqBuilder) Build

type CreateBadgeImageResp

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

func (*CreateBadgeImageResp) Success

func (resp *CreateBadgeImageResp) Success() bool

type CreateBadgeImageRespData

type CreateBadgeImageRespData struct {
	ImageKey *string `json:"image_key,omitempty"` // 图片的key
}

type CreateBadgeReq

type CreateBadgeReq struct {
	Badge *Badge `body:""`
	// contains filtered or unexported fields
}

type CreateBadgeReqBuilder

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

func NewCreateBadgeReqBuilder

func NewCreateBadgeReqBuilder() *CreateBadgeReqBuilder

func (*CreateBadgeReqBuilder) Badge

func (builder *CreateBadgeReqBuilder) Badge(badge *Badge) *CreateBadgeReqBuilder

使用该接口可以创建一枚完整的勋章信息,一个租户下最多可创建1000枚勋章。

func (*CreateBadgeReqBuilder) Build

func (builder *CreateBadgeReqBuilder) Build() *CreateBadgeReq

type CreateBadgeResp

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

func (*CreateBadgeResp) Success

func (resp *CreateBadgeResp) Success() bool

type CreateBadgeRespData

type CreateBadgeRespData struct {
	Badge *Badge `json:"badge,omitempty"` // 勋章的信息
}

type DeleteBadgeGrantReq

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

type DeleteBadgeGrantReqBuilder

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

func NewDeleteBadgeGrantReqBuilder

func NewDeleteBadgeGrantReqBuilder() *DeleteBadgeGrantReqBuilder

func (*DeleteBadgeGrantReqBuilder) BadgeId

企业勋章的唯一ID

示例值:m_DjMzaK

func (*DeleteBadgeGrantReqBuilder) Build

func (*DeleteBadgeGrantReqBuilder) GrantId

租户内授予名单的唯一标识,该值由系统随机生成。

示例值:g_uS4yux

type DeleteBadgeGrantResp

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

func (*DeleteBadgeGrantResp) Success

func (resp *DeleteBadgeGrantResp) Success() bool

type File

type File struct {
	Title      *string `json:"title,omitempty"`        // 文档标题
	Type       *string `json:"type,omitempty"`         // 文档类型
	Owner      *User   `json:"owner,omitempty"`        // 文档所有者
	Size       *string `json:"size,omitempty"`         // 文档大小
	LastOpTime *string `json:"last_op_time,omitempty"` // 更新时间
	Status     *string `json:"status,omitempty"`       // 文档状态
	Token      *string `json:"token,omitempty"`        // 文档token
}

type FileBuilder

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

func NewFileBuilder

func NewFileBuilder() *FileBuilder

func (*FileBuilder) Build

func (builder *FileBuilder) Build() *File

func (*FileBuilder) LastOpTime

func (builder *FileBuilder) LastOpTime(lastOpTime string) *FileBuilder

更新时间

示例值:1649419092

func (*FileBuilder) Owner

func (builder *FileBuilder) Owner(owner *User) *FileBuilder

文档所有者

示例值:

func (*FileBuilder) Size

func (builder *FileBuilder) Size(size string) *FileBuilder

文档大小

示例值:1024

func (*FileBuilder) Status

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

文档状态

示例值:1

func (*FileBuilder) Title

func (builder *FileBuilder) Title(title string) *FileBuilder

文档标题

示例值:文件管理综述

func (*FileBuilder) Token

func (builder *FileBuilder) Token(token string) *FileBuilder

文档token

示例值:doxbcOIyUhrRBWSKpBGfzefQgHe

func (*FileBuilder) Type

func (builder *FileBuilder) Type(type_ string) *FileBuilder

文档类型

示例值:doc

type FileList

type FileList struct {
	Files []*File `json:"files,omitempty"` // 文档token
}

type FileListBuilder

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

func NewFileListBuilder

func NewFileListBuilder() *FileListBuilder

func (*FileListBuilder) Build

func (builder *FileListBuilder) Build() *FileList

func (*FileListBuilder) Files

func (builder *FileListBuilder) Files(files []*File) *FileListBuilder

文档token

示例值:

type GetBadgeGrantReq

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

type GetBadgeGrantReqBuilder

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

func NewGetBadgeGrantReqBuilder

func NewGetBadgeGrantReqBuilder() *GetBadgeGrantReqBuilder

func (*GetBadgeGrantReqBuilder) BadgeId

func (builder *GetBadgeGrantReqBuilder) BadgeId(badgeId string) *GetBadgeGrantReqBuilder

租户内勋章的唯一标识,该值由系统随机生成。

示例值:m_DjMzaK

func (*GetBadgeGrantReqBuilder) Build

func (builder *GetBadgeGrantReqBuilder) Build() *GetBadgeGrantReq

func (*GetBadgeGrantReqBuilder) DepartmentIdType

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

此次调用中使用的部门ID的类型。

示例值:open_department_id

func (*GetBadgeGrantReqBuilder) GrantId

func (builder *GetBadgeGrantReqBuilder) GrantId(grantId string) *GetBadgeGrantReqBuilder

租户内授予名单的唯一标识,该值由系统随机生成。

示例值:g_uS4yux

func (*GetBadgeGrantReqBuilder) UserIdType

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

用户 ID 类型

示例值:open_id

type GetBadgeGrantResp

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

func (*GetBadgeGrantResp) Success

func (resp *GetBadgeGrantResp) Success() bool

type GetBadgeGrantRespData

type GetBadgeGrantRespData struct {
	Grant *Grant `json:"grant,omitempty"` // 授予名单信息
}

type GetBadgeReq

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

type GetBadgeReqBuilder

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

func NewGetBadgeReqBuilder

func NewGetBadgeReqBuilder() *GetBadgeReqBuilder

func (*GetBadgeReqBuilder) BadgeId

func (builder *GetBadgeReqBuilder) BadgeId(badgeId string) *GetBadgeReqBuilder

勋章id

示例值:m_DjMzaK

func (*GetBadgeReqBuilder) Build

func (builder *GetBadgeReqBuilder) Build() *GetBadgeReq

type GetBadgeResp

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

func (*GetBadgeResp) Success

func (resp *GetBadgeResp) Success() bool

type GetBadgeRespData

type GetBadgeRespData struct {
	Badge *Badge `json:"badge,omitempty"` // 勋章信息
}

type Grant

type Grant struct {
	Id            *string     `json:"id,omitempty"`             // 租户内授予名单的唯一标识,该值由系统随机生成。
	BadgeId       *string     `json:"badge_id,omitempty"`       // 企业勋章的唯一ID
	Name          *string     `json:"name,omitempty"`           // 勋章下唯一的授予事项,最多100个字符。
	GrantType     *int        `json:"grant_type,omitempty"`     // 授予名单类型
	TimeZone      *string     `json:"time_zone,omitempty"`      // 授予名单的生效时间对应的时区,用于检查RuleDetail的时间戳的取值是否规范,取值范围为TZ database name
	RuleDetail    *RuleDetail `json:"rule_detail,omitempty"`    // 规则详情
	IsGrantAll    *bool       `json:"is_grant_all,omitempty"`   // 是否授予给全员。1.为false时,需要关联1~500个用户群体。2.为true时,不可关联用户、用户组、部门。
	UserIds       []string    `json:"user_ids,omitempty"`       // 授予的用户ID列表,授予名单列表接口返回结果中不返回该字段,只在详情接口返回
	DepartmentIds []string    `json:"department_ids,omitempty"` // 授予的部门ID列表,授予名单列表接口返回结果中不返回该字段,只在详情接口返回
	GroupIds      []string    `json:"group_ids,omitempty"`      // 授予的用户组ID列表,授予名单列表接口返回结果中不返回该字段,只在详情接口返回
}

type GrantBuilder

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

func NewGrantBuilder

func NewGrantBuilder() *GrantBuilder

func (*GrantBuilder) BadgeId

func (builder *GrantBuilder) BadgeId(badgeId string) *GrantBuilder

企业勋章的唯一ID

示例值:m_qTR2HM

func (*GrantBuilder) Build

func (builder *GrantBuilder) Build() *Grant

func (*GrantBuilder) DepartmentIds

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

授予的部门ID列表,授予名单列表接口返回结果中不返回该字段,只在详情接口返回

示例值:[h121921]

func (*GrantBuilder) GrantType

func (builder *GrantBuilder) GrantType(grantType int) *GrantBuilder

授予名单类型

示例值:0

func (*GrantBuilder) GroupIds

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

授予的用户组ID列表,授予名单列表接口返回结果中不返回该字段,只在详情接口返回

示例值:[g122817]

func (*GrantBuilder) Id

func (builder *GrantBuilder) Id(id string) *GrantBuilder

租户内授予名单的唯一标识,该值由系统随机生成。

示例值:g_49Z7CQ

func (*GrantBuilder) IsGrantAll

func (builder *GrantBuilder) IsGrantAll(isGrantAll bool) *GrantBuilder

是否授予给全员。1.为false时,需要关联1~500个用户群体。2.为true时,不可关联用户、用户组、部门。

示例值:false

func (*GrantBuilder) Name

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

勋章下唯一的授予事项,最多100个字符。

示例值:激励勋章的授予名单

func (*GrantBuilder) RuleDetail

func (builder *GrantBuilder) RuleDetail(ruleDetail *RuleDetail) *GrantBuilder

规则详情

示例值:

func (*GrantBuilder) TimeZone

func (builder *GrantBuilder) TimeZone(timeZone string) *GrantBuilder

授予名单的生效时间对应的时区,用于检查RuleDetail的时间戳的取值是否规范,取值范围为TZ database name

示例值:Asia/Shanghai

func (*GrantBuilder) UserIds

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

授予的用户ID列表,授予名单列表接口返回结果中不返回该字段,只在详情接口返回

示例值:[u273y71]

type ListAdminDeptStatReq

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

type ListAdminDeptStatReqBuilder

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

func NewListAdminDeptStatReqBuilder

func NewListAdminDeptStatReqBuilder() *ListAdminDeptStatReqBuilder

func (*ListAdminDeptStatReqBuilder) Build

func (*ListAdminDeptStatReqBuilder) ContainsChildDept

func (builder *ListAdminDeptStatReqBuilder) ContainsChildDept(containsChildDept bool) *ListAdminDeptStatReqBuilder

是否包含子部门,如果该值为false,则只查出本部门直属用户活跃和功能使用数据;如果该值为true,则查出该部门以及其子部门(子部门层级最多不超过根部门下的前4级)的用户活跃和功能使用数据

示例值:false

func (*ListAdminDeptStatReqBuilder) DepartmentId

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

部门的 ID,取决于department_id_type,仅支持根部门及其下前4级子部门

示例值:od-382e2793cfc9471f892e8a672987654c

func (*ListAdminDeptStatReqBuilder) DepartmentIdType

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

部门ID类型

示例值:open_department_id

func (*ListAdminDeptStatReqBuilder) EndDate

终止日期(包含),格式是YYYY-mm-dd,起止日期之间相差不能超过91天(包含91天)

示例值:2020-02-15

func (*ListAdminDeptStatReqBuilder) PageSize

func (builder *ListAdminDeptStatReqBuilder) PageSize(pageSize int) *ListAdminDeptStatReqBuilder

分页大小,默认是10

示例值:10

func (*ListAdminDeptStatReqBuilder) PageToken

func (builder *ListAdminDeptStatReqBuilder) PageToken(pageToken string) *ListAdminDeptStatReqBuilder

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

示例值:2

func (*ListAdminDeptStatReqBuilder) StartDate

func (builder *ListAdminDeptStatReqBuilder) StartDate(startDate string) *ListAdminDeptStatReqBuilder

起始日期(包含),格式是YYYY-mm-dd

示例值:2020-02-15

type ListAdminDeptStatResp

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

func (*ListAdminDeptStatResp) Success

func (resp *ListAdminDeptStatResp) Success() bool

type ListAdminDeptStatRespData

type ListAdminDeptStatRespData struct {
	HasMore   *bool            `json:"has_more,omitempty"`   // 分页查询时返回,代表是否还有更多数据
	PageToken *string          `json:"page_token,omitempty"` // 分页标记,下一页分页的token
	Items     []*AdminDeptStat `json:"items,omitempty"`      // 数据报表
}

type ListAdminUserStatReq

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

type ListAdminUserStatReqBuilder

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

func NewListAdminUserStatReqBuilder

func NewListAdminUserStatReqBuilder() *ListAdminUserStatReqBuilder

func (*ListAdminUserStatReqBuilder) Build

func (*ListAdminUserStatReqBuilder) DepartmentId

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

部门的 ID,取决于department_id_type

示例值:od-382e2793cfc9471f892e8a672987654c

func (*ListAdminUserStatReqBuilder) DepartmentIdType

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

部门ID类型

示例值:open_department_id

func (*ListAdminUserStatReqBuilder) EndDate

终止日期(包含),格式是YYYY-mm-dd。起止日期之间相差不能超过31天(包含31天)

示例值:2020-02-15

func (*ListAdminUserStatReqBuilder) PageSize

func (builder *ListAdminUserStatReqBuilder) PageSize(pageSize int) *ListAdminUserStatReqBuilder

分页大小,默认是10

示例值:10

func (*ListAdminUserStatReqBuilder) PageToken

func (builder *ListAdminUserStatReqBuilder) PageToken(pageToken string) *ListAdminUserStatReqBuilder

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

示例值:2

func (*ListAdminUserStatReqBuilder) StartDate

func (builder *ListAdminUserStatReqBuilder) StartDate(startDate string) *ListAdminUserStatReqBuilder

起始日期(包含),格式是YYYY-mm-dd

示例值:2020-02-15

func (*ListAdminUserStatReqBuilder) UserId

用户的open_id,user_id或者union_id,取决于user_id_type

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*ListAdminUserStatReqBuilder) UserIdType

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

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

示例值:

type ListAdminUserStatResp

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

func (*ListAdminUserStatResp) Success

func (resp *ListAdminUserStatResp) Success() bool

type ListAdminUserStatRespData

type ListAdminUserStatRespData struct {
	HasMore   *bool            `json:"has_more,omitempty"`   // 是否有下一页数据
	PageToken *string          `json:"page_token,omitempty"` // 下一页分页的token
	Items     []*AdminUserStat `json:"items,omitempty"`      // 数据报表
}

type ListBadgeGrantIterator

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

func (*ListBadgeGrantIterator) Next

func (iterator *ListBadgeGrantIterator) Next() (bool, *Grant, error)

func (*ListBadgeGrantIterator) NextPageToken

func (iterator *ListBadgeGrantIterator) NextPageToken() *string

type ListBadgeGrantReq

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

type ListBadgeGrantReqBuilder

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

func NewListBadgeGrantReqBuilder

func NewListBadgeGrantReqBuilder() *ListBadgeGrantReqBuilder

func (*ListBadgeGrantReqBuilder) BadgeId

func (builder *ListBadgeGrantReqBuilder) BadgeId(badgeId string) *ListBadgeGrantReqBuilder

企业勋章的唯一ID

示例值:m_DjMzaK

func (*ListBadgeGrantReqBuilder) Build

func (builder *ListBadgeGrantReqBuilder) Build() *ListBadgeGrantReq

func (*ListBadgeGrantReqBuilder) DepartmentIdType

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

此次调用中使用的部门ID的类型。

示例值:open_department_id

func (*ListBadgeGrantReqBuilder) Limit

func (builder *ListBadgeGrantReqBuilder) Limit(limit int) *ListBadgeGrantReqBuilder

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

func (*ListBadgeGrantReqBuilder) PageSize

func (builder *ListBadgeGrantReqBuilder) PageSize(pageSize int) *ListBadgeGrantReqBuilder

分页大小

示例值:10

func (*ListBadgeGrantReqBuilder) PageToken

func (builder *ListBadgeGrantReqBuilder) PageToken(pageToken string) *ListBadgeGrantReqBuilder

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

示例值:om5fn1

func (*ListBadgeGrantReqBuilder) UserIdType

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

用户 ID 类型

示例值:open_id

type ListBadgeGrantResp

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

func (*ListBadgeGrantResp) Success

func (resp *ListBadgeGrantResp) Success() bool

type ListBadgeGrantRespData

type ListBadgeGrantRespData struct {
	Grants    []*Grant `json:"grants,omitempty"`     // 授予名单列表
	PageToken *string  `json:"page_token,omitempty"` // 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
	HasMore   *bool    `json:"has_more,omitempty"`   // 是否已经遍历完,表示本次页面请求已经拿到所有列表数据
}

type ListBadgeIterator

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

func (*ListBadgeIterator) Next

func (iterator *ListBadgeIterator) Next() (bool, *Badge, error)

func (*ListBadgeIterator) NextPageToken

func (iterator *ListBadgeIterator) NextPageToken() *string

type ListBadgeReq

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

type ListBadgeReqBuilder

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

func NewListBadgeReqBuilder

func NewListBadgeReqBuilder() *ListBadgeReqBuilder

func (*ListBadgeReqBuilder) Build

func (builder *ListBadgeReqBuilder) Build() *ListBadgeReq

func (*ListBadgeReqBuilder) Limit

func (builder *ListBadgeReqBuilder) Limit(limit int) *ListBadgeReqBuilder

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

func (*ListBadgeReqBuilder) Name

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

租户内唯一的勋章名称,精确匹配。

示例值:激励勋章

func (*ListBadgeReqBuilder) PageSize

func (builder *ListBadgeReqBuilder) PageSize(pageSize int) *ListBadgeReqBuilder

分页大小

示例值:10

func (*ListBadgeReqBuilder) PageToken

func (builder *ListBadgeReqBuilder) PageToken(pageToken string) *ListBadgeReqBuilder

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

示例值:b1fmUz

type ListBadgeResp

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

func (*ListBadgeResp) Success

func (resp *ListBadgeResp) Success() bool

type ListBadgeRespData

type ListBadgeRespData struct {
	Badges    []*Badge `json:"badges,omitempty"`     // 勋章列表
	PageToken *string  `json:"page_token,omitempty"` // 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
	HasMore   *bool    `json:"has_more,omitempty"`   // 是否已经遍历完,表示本次页面请求已经拿到所有列表数据
}

type Password

type Password struct {
	EntEmailPassword *string `json:"ent_email_password,omitempty"` // 企业邮箱密码
}

type PasswordBuilder

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

func NewPasswordBuilder

func NewPasswordBuilder() *PasswordBuilder

func (*PasswordBuilder) Build

func (builder *PasswordBuilder) Build() *Password

func (*PasswordBuilder) EntEmailPassword

func (builder *PasswordBuilder) EntEmailPassword(entEmailPassword string) *PasswordBuilder

企业邮箱密码

示例值:abcd*efg

type ResetPasswordPathReqBodyBuilder

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

func NewResetPasswordPathReqBodyBuilder

func NewResetPasswordPathReqBodyBuilder() *ResetPasswordPathReqBodyBuilder

func (*ResetPasswordPathReqBodyBuilder) Build

func (*ResetPasswordPathReqBodyBuilder) Password

需要重置的密码参数,不少于8个字符,字母、数字和符号,至少三选二

示例值:1234abcd

func (*ResetPasswordPathReqBodyBuilder) UserId

待修改密码的用户ID,只针对邮箱登录凭证与企业邮箱(包括别名)相等的用户生效

示例值:abc123

type ResetPasswordReq

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

type ResetPasswordReqBody

type ResetPasswordReqBody struct {
	Password *Password `json:"password,omitempty"` // 需要重置的密码参数,不少于8个字符,字母、数字和符号,至少三选二
	UserId   *string   `json:"user_id,omitempty"`  // 待修改密码的用户ID,只针对邮箱登录凭证与企业邮箱(包括别名)相等的用户生效
}

type ResetPasswordReqBodyBuilder

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

func NewResetPasswordReqBodyBuilder

func NewResetPasswordReqBodyBuilder() *ResetPasswordReqBodyBuilder

func (*ResetPasswordReqBodyBuilder) Build

func (*ResetPasswordReqBodyBuilder) Password

需要重置的密码参数,不少于8个字符,字母、数字和符号,至少三选二

示例值:1234abcd

func (*ResetPasswordReqBodyBuilder) UserId

待修改密码的用户ID,只针对邮箱登录凭证与企业邮箱(包括别名)相等的用户生效

示例值:abc123

type ResetPasswordReqBuilder

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

func NewResetPasswordReqBuilder

func NewResetPasswordReqBuilder() *ResetPasswordReqBuilder

func (*ResetPasswordReqBuilder) Body

重置用户的企业邮箱密码,仅当用户的邮箱和企业邮箱(别名)一致时生效,可用于处理飞书企业邮箱登录死锁的问题。;;邮箱死锁:当用户的登录凭证与飞书企业邮箱一致时,目前飞书登录流程要求用户输入验证码,由于飞书邮箱无单独的帐号体系,则未登录时无法收取邮箱验证码,即陷入死锁

func (*ResetPasswordReqBuilder) Build

func (builder *ResetPasswordReqBuilder) Build() *ResetPasswordReq

func (*ResetPasswordReqBuilder) UserIdType

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

示例值:

type ResetPasswordResp

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

func (*ResetPasswordResp) Success

func (resp *ResetPasswordResp) Success() bool

type RuleDetail

type RuleDetail struct {
	EffectiveTime   *string `json:"effective_time,omitempty"`   // 开始生效的时间戳。1.手动设置有效期类型勋章,配置有效期限需要配置该字段;2.时间戳必须是所在时区当天的零点时间戳,如时区为Asia/Shanghai时区时的1649606400
	ExpirationTime  *string `json:"expiration_time,omitempty"`  // 结束生效的时间戳。1.手动设置有效期类型勋章,配置有效期限需要配置该字段;2.最大值:不得超过effective_time+100 年;3.非永久有效:时间戳必须是所在时区当天的23:59:59时间戳,如时区为Asia/Shanghai时区时的1649692799;4.永久有效:传值为0即可
	Anniversary     *int    `json:"anniversary,omitempty"`      // 入职周年日。根据入职时间发放类型勋章,需要配置该字段。
	EffectivePeriod *int    `json:"effective_period,omitempty"` // 有效期限。根据入职时间发放类型勋章,需要配置该字段。
}

type RuleDetailBuilder

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

func NewRuleDetailBuilder

func NewRuleDetailBuilder() *RuleDetailBuilder

func (*RuleDetailBuilder) Anniversary

func (builder *RuleDetailBuilder) Anniversary(anniversary int) *RuleDetailBuilder

入职周年日。根据入职时间发放类型勋章,需要配置该字段。

示例值:1

func (*RuleDetailBuilder) Build

func (builder *RuleDetailBuilder) Build() *RuleDetail

func (*RuleDetailBuilder) EffectivePeriod

func (builder *RuleDetailBuilder) EffectivePeriod(effectivePeriod int) *RuleDetailBuilder

有效期限。根据入职时间发放类型勋章,需要配置该字段。

示例值:1

func (*RuleDetailBuilder) EffectiveTime

func (builder *RuleDetailBuilder) EffectiveTime(effectiveTime string) *RuleDetailBuilder

开始生效的时间戳。1.手动设置有效期类型勋章,配置有效期限需要配置该字段;2.时间戳必须是所在时区当天的零点时间戳,如时区为Asia/Shanghai时区时的1649606400

示例值:1649606400

func (*RuleDetailBuilder) ExpirationTime

func (builder *RuleDetailBuilder) ExpirationTime(expirationTime string) *RuleDetailBuilder

结束生效的时间戳。1.手动设置有效期类型勋章,配置有效期限需要配置该字段;2.最大值:不得超过effective_time+100 年;3.非永久有效:时间戳必须是所在时区当天的23:59:59时间戳,如时区为Asia/Shanghai时区时的1649692799;4.永久有效:传值为0即可

示例值:1649692799

type SplashPageStat

type SplashPageStat struct {
	Date                      *string `json:"date,omitempty"`                        // 日期
	SplashId                  *string `json:"splash_id,omitempty"`                   // 开屏素材id
	ImpressionCount           *int    `json:"impression_count,omitempty"`            // 曝光数
	ClickCount                *int    `json:"click_count,omitempty"`                 // 点击数
	SkipCount                 *int    `json:"skip_count,omitempty"`                  // 点击跳过数
	ImpressionCountAccumulate *int    `json:"impression_count_accumulate,omitempty"` // 累计曝光
	ClickCountAccumulate      *int    `json:"click_count_accumulate,omitempty"`      // 累计点击
	SkipCountAccumulate       *int    `json:"skip_count_accumulate,omitempty"`       // 累积点击跳过数
}

type SplashPageStatBuilder

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

func NewSplashPageStatBuilder

func NewSplashPageStatBuilder() *SplashPageStatBuilder

func (*SplashPageStatBuilder) Build

func (builder *SplashPageStatBuilder) Build() *SplashPageStat

func (*SplashPageStatBuilder) ClickCount

func (builder *SplashPageStatBuilder) ClickCount(clickCount int) *SplashPageStatBuilder

点击数

示例值:

func (*SplashPageStatBuilder) ClickCountAccumulate

func (builder *SplashPageStatBuilder) ClickCountAccumulate(clickCountAccumulate int) *SplashPageStatBuilder

累计点击

示例值:

func (*SplashPageStatBuilder) Date

func (builder *SplashPageStatBuilder) Date(date string) *SplashPageStatBuilder

日期

示例值:

func (*SplashPageStatBuilder) ImpressionCount

func (builder *SplashPageStatBuilder) ImpressionCount(impressionCount int) *SplashPageStatBuilder

曝光数

示例值:

func (*SplashPageStatBuilder) ImpressionCountAccumulate

func (builder *SplashPageStatBuilder) ImpressionCountAccumulate(impressionCountAccumulate int) *SplashPageStatBuilder

累计曝光

示例值:

func (*SplashPageStatBuilder) SkipCount

func (builder *SplashPageStatBuilder) SkipCount(skipCount int) *SplashPageStatBuilder

点击跳过数

示例值:

func (*SplashPageStatBuilder) SkipCountAccumulate

func (builder *SplashPageStatBuilder) SkipCountAccumulate(skipCountAccumulate int) *SplashPageStatBuilder

累积点击跳过数

示例值:

func (*SplashPageStatBuilder) SplashId

func (builder *SplashPageStatBuilder) SplashId(splashId string) *SplashPageStatBuilder

开屏素材id

示例值:

type UpdateBadgeGrantReq

type UpdateBadgeGrantReq struct {
	Grant *Grant `body:""`
	// contains filtered or unexported fields
}

type UpdateBadgeGrantReqBuilder

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

func NewUpdateBadgeGrantReqBuilder

func NewUpdateBadgeGrantReqBuilder() *UpdateBadgeGrantReqBuilder

func (*UpdateBadgeGrantReqBuilder) BadgeId

勋章ID

示例值:m_DjMzaK

func (*UpdateBadgeGrantReqBuilder) Build

func (*UpdateBadgeGrantReqBuilder) DepartmentIdType

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

此次调用中使用的部门ID的类型。

示例值:open_department_id

func (*UpdateBadgeGrantReqBuilder) Grant

通过该接口可以修改特定授予名单的相关信息

func (*UpdateBadgeGrantReqBuilder) GrantId

授予名单ID

示例值:g_uS4yux

func (*UpdateBadgeGrantReqBuilder) UserIdType

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

用户 ID 类型

示例值:open_id

type UpdateBadgeGrantResp

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

func (*UpdateBadgeGrantResp) Success

func (resp *UpdateBadgeGrantResp) Success() bool

type UpdateBadgeGrantRespData

type UpdateBadgeGrantRespData struct {
	Grant *Grant `json:"grant,omitempty"` // 授予名单
}

type UpdateBadgeReq

type UpdateBadgeReq struct {
	Badge *Badge `body:""`
	// contains filtered or unexported fields
}

type UpdateBadgeReqBuilder

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

func NewUpdateBadgeReqBuilder

func NewUpdateBadgeReqBuilder() *UpdateBadgeReqBuilder

func (*UpdateBadgeReqBuilder) Badge

func (builder *UpdateBadgeReqBuilder) Badge(badge *Badge) *UpdateBadgeReqBuilder

通过该接口可以修改勋章的信息

func (*UpdateBadgeReqBuilder) BadgeId

func (builder *UpdateBadgeReqBuilder) BadgeId(badgeId string) *UpdateBadgeReqBuilder

勋章ID

示例值:m_MzfKDM

func (*UpdateBadgeReqBuilder) Build

func (builder *UpdateBadgeReqBuilder) Build() *UpdateBadgeReq

type UpdateBadgeResp

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

func (*UpdateBadgeResp) Success

func (resp *UpdateBadgeResp) Success() bool

type UpdateBadgeRespData

type UpdateBadgeRespData struct {
	Badge *Badge `json:"badge,omitempty"` // 勋章信息
}

type User

type User struct {
	Name   *string `json:"name,omitempty"`   // 用户名称
	Avatar *string `json:"avatar,omitempty"` // 用户头像
	Id     *string `json:"id,omitempty"`     // 用户ID
}

type UserAnnualReport

type UserAnnualReport struct {
	Year2021 *UserReport2021 `json:"year_2021,omitempty"` // 2021用户年度报告
}

type UserAnnualReportBuilder

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

func NewUserAnnualReportBuilder

func NewUserAnnualReportBuilder() *UserAnnualReportBuilder

func (*UserAnnualReportBuilder) Build

func (builder *UserAnnualReportBuilder) Build() *UserAnnualReport

func (*UserAnnualReportBuilder) Year2021

func (builder *UserAnnualReportBuilder) Year2021(year2021 *UserReport2021) *UserAnnualReportBuilder

2021用户年度报告

示例值:

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

func (builder *UserBuilder) Id(id string) *UserBuilder

用户ID

示例值:6994699009591869459

func (*UserBuilder) Name

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

用户名称

示例值:张三

type UserReport2021

type UserReport2021 struct {
	ActiveDayCount                *int     `json:"active_day_count,omitempty"`                 // 活跃时长> 0的天数
	BusyWeek                      *string  `json:"busy_week,omitempty"`                        // 工作日平均活跃最长的一周,「2021W10」格式
	P2pChatCount                  *string  `json:"p2p_chat_count,omitempty"`                   // 单聊过的人数(仅限普通单聊,不包括bot等,不限本人是否有过发送消息)
	TalkedChatCount               *string  `json:"talked_chat_count,omitempty"`                // 发过言的群数
	FavoriteEmoji                 *string  `json:"favorite_emoji,omitempty"`                   // 任何场景下发的表情次数最多的一个表情
	ReactionCount                 *string  `json:"reaction_count,omitempty"`                   // 本人使用快捷表情的次数
	ConferenceCreateCount         *string  `json:"conference_create_count,omitempty"`          // 创建了日程并发起了视频会议的次数
	TotalPartiCount               *string  `json:"total_parti_count,omitempty"`                // 创建日程中涉及到的总人次
	MinutesObjectCount            *string  `json:"minutes_object_count,omitempty"`             // 录制了多少篇妙记
	MinutesDuration               *float64 `json:"minutes_duration,omitempty"`                 // 录制妙记累积时长(分钟)
	CreateEditFileCount           *string  `json:"create_edit_file_count,omitempty"`           // 创建及参与协作的文档篇数
	CreateFileCount               *string  `json:"create_file_count,omitempty"`                // 创建文档数
	CooperateEditFileCount        *string  `json:"cooperate_edit_file_count,omitempty"`        // 参与协作文档数
	LikeRecordCount               *string  `json:"like_record_count,omitempty"`                // 所属的文档共获得多少个点赞
	OkrCumOCount                  *string  `json:"okr_cum_o_count,omitempty"`                  // 填写过的O的数量
	OkrCumKrCount                 *string  `json:"okr_cum_kr_count,omitempty"`                 // 填写过的KR的数量
	OkrAlignedUserRankfirst       *string  `json:"okr_aligned_user_rankfirst,omitempty"`       // 被对齐次数最多的用户
	ApprovalStartCount            *string  `json:"approval_start_count,omitempty"`             // 发起的审批流程数
	ApprovalExecuteCount          *string  `json:"approval_execute_count,omitempty"`           // 处理的审批流程数
	ApprovalRelationUserRankfirst *string  `json:"approval_relation_user_rankfirst,omitempty"` // 审批协作次数最多的用户(在同一个审批实例中出现过即算为审批协作)
	UserId                        *string  `json:"user_id,omitempty"`                          // 用户id
	BusyWeekSumDuration           *string  `json:"busy_week_sum_duration,omitempty"`           // 工作日平均活跃最长的一周 的总活跃时长(分钟)
	BusyWeekMdate                 *string  `json:"busy_week_mdate,omitempty"`                  // 工作日平均活跃最长的一周 的最早工作日
	BusyWeekActDays               *int     `json:"busy_week_act_days,omitempty"`               // 工作日平均活跃最长的一周 有活跃的工作日天数
	CreateReadUserCount           *string  `json:"create_read_user_count,omitempty"`           // 创建的文档被XXX人阅读过
}

type UserReport2021Builder

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

func NewUserReport2021Builder

func NewUserReport2021Builder() *UserReport2021Builder

func (*UserReport2021Builder) ActiveDayCount

func (builder *UserReport2021Builder) ActiveDayCount(activeDayCount int) *UserReport2021Builder

活跃时长> 0的天数

示例值:111

func (*UserReport2021Builder) ApprovalExecuteCount

func (builder *UserReport2021Builder) ApprovalExecuteCount(approvalExecuteCount string) *UserReport2021Builder

处理的审批流程数

示例值:0

func (*UserReport2021Builder) ApprovalRelationUserRankfirst

func (builder *UserReport2021Builder) ApprovalRelationUserRankfirst(approvalRelationUserRankfirst string) *UserReport2021Builder

审批协作次数最多的用户(在同一个审批实例中出现过即算为审批协作)

示例值:ou_XXXXXXX

func (*UserReport2021Builder) ApprovalStartCount

func (builder *UserReport2021Builder) ApprovalStartCount(approvalStartCount string) *UserReport2021Builder

发起的审批流程数

示例值:0

func (*UserReport2021Builder) Build

func (builder *UserReport2021Builder) Build() *UserReport2021

func (*UserReport2021Builder) BusyWeek

func (builder *UserReport2021Builder) BusyWeek(busyWeek string) *UserReport2021Builder

工作日平均活跃最长的一周,「2021W10」格式

示例值:2021W33

func (*UserReport2021Builder) BusyWeekActDays

func (builder *UserReport2021Builder) BusyWeekActDays(busyWeekActDays int) *UserReport2021Builder

工作日平均活跃最长的一周 有活跃的工作日天数

示例值:4

func (*UserReport2021Builder) BusyWeekMdate

func (builder *UserReport2021Builder) BusyWeekMdate(busyWeekMdate string) *UserReport2021Builder

工作日平均活跃最长的一周 的最早工作日

示例值:20210816

func (*UserReport2021Builder) BusyWeekSumDuration

func (builder *UserReport2021Builder) BusyWeekSumDuration(busyWeekSumDuration string) *UserReport2021Builder

工作日平均活跃最长的一周 的总活跃时长(分钟)

示例值:1816

func (*UserReport2021Builder) ConferenceCreateCount

func (builder *UserReport2021Builder) ConferenceCreateCount(conferenceCreateCount string) *UserReport2021Builder

创建了日程并发起了视频会议的次数

示例值:78

func (*UserReport2021Builder) CooperateEditFileCount

func (builder *UserReport2021Builder) CooperateEditFileCount(cooperateEditFileCount string) *UserReport2021Builder

参与协作文档数

示例值:0

func (*UserReport2021Builder) CreateEditFileCount

func (builder *UserReport2021Builder) CreateEditFileCount(createEditFileCount string) *UserReport2021Builder

创建及参与协作的文档篇数

示例值:0

func (*UserReport2021Builder) CreateFileCount

func (builder *UserReport2021Builder) CreateFileCount(createFileCount string) *UserReport2021Builder

创建文档数

示例值:0

func (*UserReport2021Builder) CreateReadUserCount

func (builder *UserReport2021Builder) CreateReadUserCount(createReadUserCount string) *UserReport2021Builder

创建的文档被XXX人阅读过

示例值:10

func (*UserReport2021Builder) FavoriteEmoji

func (builder *UserReport2021Builder) FavoriteEmoji(favoriteEmoji string) *UserReport2021Builder

任何场景下发的表情次数最多的一个表情

示例值:MUSCLE

func (*UserReport2021Builder) LikeRecordCount

func (builder *UserReport2021Builder) LikeRecordCount(likeRecordCount string) *UserReport2021Builder

所属的文档共获得多少个点赞

示例值:0

func (*UserReport2021Builder) MinutesDuration

func (builder *UserReport2021Builder) MinutesDuration(minutesDuration float64) *UserReport2021Builder

录制妙记累积时长(分钟)

示例值:0

func (*UserReport2021Builder) MinutesObjectCount

func (builder *UserReport2021Builder) MinutesObjectCount(minutesObjectCount string) *UserReport2021Builder

录制了多少篇妙记

示例值:0

func (*UserReport2021Builder) OkrAlignedUserRankfirst

func (builder *UserReport2021Builder) OkrAlignedUserRankfirst(okrAlignedUserRankfirst string) *UserReport2021Builder

被对齐次数最多的用户

示例值:ou_XXXXXXX

func (*UserReport2021Builder) OkrCumKrCount

func (builder *UserReport2021Builder) OkrCumKrCount(okrCumKrCount string) *UserReport2021Builder

填写过的KR的数量

示例值:0

func (*UserReport2021Builder) OkrCumOCount

func (builder *UserReport2021Builder) OkrCumOCount(okrCumOCount string) *UserReport2021Builder

填写过的O的数量

示例值:0

func (*UserReport2021Builder) P2pChatCount

func (builder *UserReport2021Builder) P2pChatCount(p2pChatCount string) *UserReport2021Builder

单聊过的人数(仅限普通单聊,不包括bot等,不限本人是否有过发送消息)

示例值:3

func (*UserReport2021Builder) ReactionCount

func (builder *UserReport2021Builder) ReactionCount(reactionCount string) *UserReport2021Builder

本人使用快捷表情的次数

示例值:341

func (*UserReport2021Builder) TalkedChatCount

func (builder *UserReport2021Builder) TalkedChatCount(talkedChatCount string) *UserReport2021Builder

发过言的群数

示例值:4

func (*UserReport2021Builder) TotalPartiCount

func (builder *UserReport2021Builder) TotalPartiCount(totalPartiCount string) *UserReport2021Builder

创建日程中涉及到的总人次

示例值:1

func (*UserReport2021Builder) UserId

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

用户id

示例值:ou_XXXXXXX

Jump to

Keyboard shortcuts

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