larkcontact

package
v3.1.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 6 Imported by: 24

Documentation

Index

Constants

View Source
const (
	DepartmentIdTypeOpenDepartmentId = "open_department_id" // 指定使用open_department_id作为部门ID类型
	DepartmentIdTypeDepartmentId     = "department_id"      // 指定使用department_id作为部门ID类型
)
View Source
const (
	UserIdTypeOpenId  = "open_id"  // 指定使用open_id作为用户ID类型
	UserIdTypeUnionId = "union_id" // 指定使用union_id作为用户ID类型
	UserIdTypeUserId  = "user_id"  // 指定使用user_id作为用户ID类型
)
View Source
const (
	UserIdTypeChildrenDepartmentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeChildrenDepartmentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeChildrenDepartmentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeChildrenDepartmentDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeChildrenDepartmentOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeCreateDepartmentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateDepartmentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateDepartmentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeCreateDepartmentDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeCreateDepartmentOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	DepartmentIdTypeDeleteDepartmentDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeDeleteDepartmentOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeGetDepartmentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetDepartmentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetDepartmentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeGetDepartmentDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeGetDepartmentOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeListDepartmentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListDepartmentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListDepartmentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeListDepartmentDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeListDepartmentOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeParentDepartmentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeParentDepartmentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeParentDepartmentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeParentDepartmentDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeParentDepartmentOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypePatchDepartmentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypePatchDepartmentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypePatchDepartmentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypePatchDepartmentDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypePatchDepartmentOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeSearchDepartmentUserId  = "user_id"  // 以 user_id 来识别用户
	UserIdTypeSearchDepartmentUnionId = "union_id" // 以 union_id 来识别用户
	UserIdTypeSearchDepartmentOpenId  = "open_id"  // 以 open_id 来识别用户
)
View Source
const (
	DepartmentIdTypeSearchDepartmentDepartmentId     = "department_id"      // 以自定义 department_id 来标识部门
	DepartmentIdTypeSearchDepartmentOpenDepartmentId = "open_department_id" // 以 open_department_id 来标识部门
)
View Source
const (
	DepartmentIdTypeUnbindDepartmentChatDepartmentDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeUnbindDepartmentChatDepartmentOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeUpdateDepartmentUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUpdateDepartmentUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeUpdateDepartmentOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeUpdateDepartmentDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeUpdateDepartmentOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	DepartmentIdTypeUpdateDepartmentIdDepartmentDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeUpdateDepartmentIdDepartmentOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	EnumTypeDefualt = 1 // 内置类型
	EnumTypeCustom  = 2 // 自定义

)
View Source
const (
	EnumStatusActive   = 1 // 激活
	EnumStatusInactive = 2 // 未激活

)
View Source
const (
	EnumTypeUpdateEmployeeTypeEnumDefualt = 1 // 内置类型
	EnumTypeUpdateEmployeeTypeEnumCustom  = 2 // 自定义

)
View Source
const (
	EnumStatusUpdateEmployeeTypeEnumActive   = 1 // 激活
	EnumStatusUpdateEmployeeTypeEnumInactive = 2 // 未激活

)
View Source
const (
	RoleMemberIDTypeOpenId  = "open_id"  // 用户的open_id
	RoleMemberIDTypeUnionId = "union_id" // 用户的union_id
	RoleMemberIDTypeUserId  = "user_id"  // 用户的user_id
)
View Source
const (
	RoleMemberIDTypeBatchDeleteFunctionalRoleMemberOpenId  = "open_id"  // 用户的open_id
	RoleMemberIDTypeBatchDeleteFunctionalRoleMemberUnionId = "union_id" // 用户的user_id
	RoleMemberIDTypeBatchDeleteFunctionalRoleMemberUserId  = "user_id"  // 用户的user_id
)
View Source
const (
	RoleMemberIDTypeGetFunctionalRoleMemberOpenId  = "open_id"  // 用户的open_id
	RoleMemberIDTypeGetFunctionalRoleMemberUnionId = "union_id" // 用户的union_id
	RoleMemberIDTypeGetFunctionalRoleMemberUserId  = "user_id"  // 用户的user_id
)
View Source
const (
	RoleMemberScopeIDTypeDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	RoleMemberScopeIDTypeOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	RoleMemberIDTypeListFunctionalRoleMemberOpenId  = "open_id"  // 用户的open_id
	RoleMemberIDTypeListFunctionalRoleMemberUnionId = "union_id" // 用户的union_id
	RoleMemberIDTypeListFunctionalRoleMemberUserId  = "user_id"  // 用户的user_id
)
View Source
const (
	RoleMemberScopeIDTypeListFunctionalRoleMemberDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	RoleMemberScopeIDTypeListFunctionalRoleMemberOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	RoleMemberIDTypeScopesFunctionalRoleMemberOpenId  = "open_id"  // 用户的open_id
	RoleMemberIDTypeScopesFunctionalRoleMemberUnionId = "union_id" // 用户的union_id
	RoleMemberIDTypeScopesFunctionalRoleMemberUserId  = "user_id"  // 用户的user_id
)
View Source
const (
	RoleMemberScopeIDTypeScopesFunctionalRoleMemberDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	RoleMemberScopeIDTypeScopesFunctionalRoleMemberOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	GroupTypeAssign  = 1 // 普通用户组
	GroupTypeDynamic = 2 // 动态用户组

)
View Source
const (
	UserIdTypeCreateGroupUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateGroupUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateGroupOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeCreateGroupOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
	DepartmentIdTypeCreateGroupDepartmentId     = "department_id"      // 以自定义department_id来标识部门
)
View Source
const (
	UserIdTypeGetGroupUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetGroupUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetGroupOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeGetGroupOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
	DepartmentIdTypeGetGroupDepartmentId     = "department_id"      // 以自定义department_id来标识部门
)
View Source
const (
	MemberIdTypeOpenID  = "open_id"  //
	MemberIdTypeUnionID = "union_id" //
	MemberIdTypeUserID  = "user_id"  //
)
View Source
const (
	GroupTypeMemberBelongGroupAssign  = 1 // 普通用户组
	GroupTypeMemberBelongGroupDynamic = 2 // 动态用户组

)
View Source
const (
	UserIdTypePatchGroupUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypePatchGroupUnionId = "union_id" // 以union_id来识别用户
	UserIdTypePatchGroupOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypePatchGroupDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypePatchGroupOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	GroupTypeSimplelistGroupAssign  = 1 // 普通用户组
	GroupTypeSimplelistGroupDynamic = 2 // 动态用户组

)
View Source
const (
	MemberIdTypeAddGroupMemberOpenID  = "open_id"  // member_type =user时候,表示用户的open_id
	MemberIdTypeAddGroupMemberUnionID = "union_id" // member_type =user时候,表示用户的union_id
	MemberIdTypeAddGroupMemberUserID  = "user_id"  // member_type =user时候,表示用户的user_id
)
View Source
const (
	MemberIdTypeRemoveGroupMemberOpenID  = "open_id"  // member_type =user时候,表示用户的open_id
	MemberIdTypeRemoveGroupMemberUnionID = "union_id" // member_type =user时候,表示用户的union_id
	MemberIdTypeRemoveGroupMemberUserID  = "user_id"  // member_type =user时候,表示用户的user_id
)
View Source
const (
	MemberIdTypeSimplelistGroupMemberOpenId       = "open_id"       // member_type=user时候,表示用户的open_id;member_type=department时候,表示部门的open_id
	MemberIdTypeSimplelistGroupMemberUnionId      = "union_id"      // member_type=user时候,表示用户的union_id
	MemberIdTypeSimplelistGroupMemberUserId       = "user_id"       // member_type=user时候,表示用户的user_id
	MemberIdTypeSimplelistGroupMemberDepartmentId = "department_id" // member_type=department时候,表示部门的department_id
)
View Source
const (
	MemberTypeSimplelistGroupMemberUser       = "user"       // 该次获取的用户组的用户成员
	MemberTypeSimplelistGroupMemberDepartment = "department" // 该次获取的用户组的部门成员
)
View Source
const (
	UserIdTypeListScopeOpenId  = "open_id"  // 用户的 open id
	UserIdTypeListScopeUnionId = "union_id" // 用户的 union_id
	UserIdTypeListScopeUserId  = "user_id"  // 用户的 user_id
)
View Source
const (
	DepartmentIdTypeListScopeDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeListScopeOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	DepartmentIdTypeBindDepartmentUnitDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeBindDepartmentUnitOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	DepartmentIdTypeListDepartmentUnitDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeListDepartmentUnitOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	DepartmentIdTypeUnbindDepartmentUnitDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeUnbindDepartmentUnitOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeBatchUserOpenId  = "open_id"  // 以open_id来识别用户
	UserIdTypeBatchUserUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeBatchUserUserId  = "user_id"  // 以user_id来识别用户
)
View Source
const (
	DepartmentIdTypeBatchUserOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
	DepartmentIdTypeBatchUserDepartmentId     = "department_id"      // 以自定义department_id来标识部门
)
View Source
const (
	UserIdTypeBatchGetIdUserOpenId  = "open_id"  // 用户的 open id
	UserIdTypeBatchGetIdUserUnionId = "union_id" // 用户的 union id
	UserIdTypeBatchGetIdUserUserId  = "user_id"  // 用户的 user id
)
View Source
const (
	GenderTypeUnkown = 0 // 保密
	GenderTypeMale   = 1 // 男
	GenderTypeFemale = 2 // 女

)
View Source
const (
	UserIdTypeCreateUserUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateUserUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateUserOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeCreateUserDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeCreateUserOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeDeleteUserUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeDeleteUserUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeDeleteUserOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeFindByDepartmentUserUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeFindByDepartmentUserUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeFindByDepartmentUserOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeFindByDepartmentUserDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeFindByDepartmentUserOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeGetUserUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetUserUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetUserOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeGetUserDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeGetUserOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeListUserUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListUserUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListUserOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeListUserDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeListUserOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	GenderTypePatchUserUnkown = 0 // 保密
	GenderTypePatchUserMale   = 1 // 男
	GenderTypePatchUserFemale = 2 // 女

)
View Source
const (
	UserIdTypePatchUserUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypePatchUserUnionId = "union_id" // 以union_id来识别用户
	UserIdTypePatchUserOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypePatchUserDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypePatchUserOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeResurrectUserOpenId  = "open_id"  // 用户的 open id
	UserIdTypeResurrectUserUnionId = "union_id" // 用户的 union id
	UserIdTypeResurrectUserUserId  = "user_id"  // 用户的 user id
)
View Source
const (
	DepartmentIdTypeResurrectUserDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeResurrectUserOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	GenderTypeUpdateUserUnkown = 0 // 保密
	GenderTypeUpdateUserMale   = 1 // 男
	GenderTypeUpdateUserFemale = 2 // 女

)
View Source
const (
	UserIdTypeUpdateUserUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUpdateUserUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeUpdateUserOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	DepartmentIdTypeUpdateUserDepartmentId     = "department_id"      // 以自定义department_id来标识部门
	DepartmentIdTypeUpdateUserOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门
)
View Source
const (
	UserIdTypeUpdateUserIdUserUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUpdateUserIdUserUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeUpdateUserIdUserOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	MemberTypeRemoveGroupMemberUser = "user" // 表示从用户组中移除用户
)
View Source
const (
	MemberTypeUser = "user" // 用户成员
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddGroupMemberPathReqBodyBuilder

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

func NewAddGroupMemberPathReqBodyBuilder

func NewAddGroupMemberPathReqBodyBuilder() *AddGroupMemberPathReqBodyBuilder

func (*AddGroupMemberPathReqBodyBuilder) Build

func (*AddGroupMemberPathReqBodyBuilder) MemberId

添加的成员ID

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*AddGroupMemberPathReqBodyBuilder) MemberIdType

func (builder *AddGroupMemberPathReqBodyBuilder) MemberIdType(memberIdType string) *AddGroupMemberPathReqBodyBuilder

当member_type =user时候,member_id_type表示user_id_type,枚举值为open_id, union_id, user_id

示例值:open_id

func (*AddGroupMemberPathReqBodyBuilder) MemberType

用户组成员的类型,取值为 user

示例值:user

type AddGroupMemberReq

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

type AddGroupMemberReqBody

type AddGroupMemberReqBody struct {
	MemberType   *string `json:"member_type,omitempty"`    // 用户组成员的类型,取值为 user
	MemberIdType *string `json:"member_id_type,omitempty"` // 当member_type =user时候,member_id_type表示user_id_type,枚举值为open_id, union_id, user_id
	MemberId     *string `json:"member_id,omitempty"`      // 添加的成员ID
}

type AddGroupMemberReqBodyBuilder

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

func NewAddGroupMemberReqBodyBuilder

func NewAddGroupMemberReqBodyBuilder() *AddGroupMemberReqBodyBuilder

func (*AddGroupMemberReqBodyBuilder) Build

func (*AddGroupMemberReqBodyBuilder) MemberId

添加的成员ID

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*AddGroupMemberReqBodyBuilder) MemberIdType

func (builder *AddGroupMemberReqBodyBuilder) MemberIdType(memberIdType string) *AddGroupMemberReqBodyBuilder

当member_type =user时候,member_id_type表示user_id_type,枚举值为open_id, union_id, user_id

示例值:open_id

func (*AddGroupMemberReqBodyBuilder) MemberType

func (builder *AddGroupMemberReqBodyBuilder) MemberType(memberType string) *AddGroupMemberReqBodyBuilder

用户组成员的类型,取值为 user

示例值:user

type AddGroupMemberReqBuilder

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

func NewAddGroupMemberReqBuilder

func NewAddGroupMemberReqBuilder() *AddGroupMemberReqBuilder

func (*AddGroupMemberReqBuilder) Body

向用户组中添加成员(目前成员仅支持用户,未来会支持部门),如果应用的通讯录权限范围是“全部员工”,则可将任何成员添加到任何用户组。如果应用的通讯录权限范围不是“全部员工”,则仅可将通讯录权限范围中的成员添加到通讯录权限范围的用户组中,[点击了解通讯录权限范围](https://open.feishu.cn/document/ukTMukTMukTM/uETNz4SM1MjLxUzM/v3/guides/scope_authority)。

func (*AddGroupMemberReqBuilder) Build

func (builder *AddGroupMemberReqBuilder) Build() *AddGroupMemberReq

func (*AddGroupMemberReqBuilder) GroupId

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

用户组ID

示例值:g281721

type AddGroupMemberResp

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

func (*AddGroupMemberResp) Success

func (resp *AddGroupMemberResp) Success() bool

type AvatarInfo

type AvatarInfo struct {
	Avatar72     *string `json:"avatar_72,omitempty"`     // 72*72像素头像链接
	Avatar240    *string `json:"avatar_240,omitempty"`    // 240*240像素头像链接
	Avatar640    *string `json:"avatar_640,omitempty"`    // 640*640像素头像链接
	AvatarOrigin *string `json:"avatar_origin,omitempty"` // 原始头像链接
}

type AvatarInfoBuilder

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

func NewAvatarInfoBuilder

func NewAvatarInfoBuilder() *AvatarInfoBuilder

func (*AvatarInfoBuilder) Avatar240

func (builder *AvatarInfoBuilder) Avatar240(avatar240 string) *AvatarInfoBuilder

240*240像素头像链接

示例值:https://foo.icon.com/xxxx

func (*AvatarInfoBuilder) Avatar640

func (builder *AvatarInfoBuilder) Avatar640(avatar640 string) *AvatarInfoBuilder

640*640像素头像链接

示例值:https://foo.icon.com/xxxx

func (*AvatarInfoBuilder) Avatar72

func (builder *AvatarInfoBuilder) Avatar72(avatar72 string) *AvatarInfoBuilder

72*72像素头像链接

示例值:https://foo.icon.com/xxxx

func (*AvatarInfoBuilder) AvatarOrigin

func (builder *AvatarInfoBuilder) AvatarOrigin(avatarOrigin string) *AvatarInfoBuilder

原始头像链接

示例值:https://foo.icon.com/xxxx

func (*AvatarInfoBuilder) Build

func (builder *AvatarInfoBuilder) Build() *AvatarInfo

type BatchAddGroupMemberPathReqBodyBuilder

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

func NewBatchAddGroupMemberPathReqBodyBuilder

func NewBatchAddGroupMemberPathReqBodyBuilder() *BatchAddGroupMemberPathReqBodyBuilder

func (*BatchAddGroupMemberPathReqBodyBuilder) Build

func (*BatchAddGroupMemberPathReqBodyBuilder) Members

待添加成员

示例值:

type BatchAddGroupMemberReq

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

type BatchAddGroupMemberReqBody

type BatchAddGroupMemberReqBody struct {
	Members []*Memberlist `json:"members,omitempty"` // 待添加成员
}

type BatchAddGroupMemberReqBodyBuilder

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

func NewBatchAddGroupMemberReqBodyBuilder

func NewBatchAddGroupMemberReqBodyBuilder() *BatchAddGroupMemberReqBodyBuilder

func (*BatchAddGroupMemberReqBodyBuilder) Build

func (*BatchAddGroupMemberReqBodyBuilder) Members

待添加成员

示例值:

type BatchAddGroupMemberReqBuilder

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

func NewBatchAddGroupMemberReqBuilder

func NewBatchAddGroupMemberReqBuilder() *BatchAddGroupMemberReqBuilder

func (*BatchAddGroupMemberReqBuilder) Body

向普通用户组中批量添加成员(目前仅支持添加用户,暂不支持添加部门),如果应用的通讯录权限范围是“全部员工”,则可将任何成员添加到任何用户组。如果应用的通讯录权限范围不是“全部员工”,则仅可将通讯录权限范围中的成员添加到通讯录权限范围的用户组中,[点击了解通讯录权限范围](https://open.feishu.cn/document/ukTMukTMukTM/uETNz4SM1MjLxUzM/v3/guides/scope_authority)。

func (*BatchAddGroupMemberReqBuilder) Build

func (*BatchAddGroupMemberReqBuilder) GroupId

用户组ID

示例值:test_group

type BatchAddGroupMemberResp

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

func (*BatchAddGroupMemberResp) Success

func (resp *BatchAddGroupMemberResp) Success() bool

type BatchAddGroupMemberRespData

type BatchAddGroupMemberRespData struct {
	Results []*MemberResult `json:"results,omitempty"` // 成员添加操作结果
}

type BatchCreateFunctionalRoleMemberPathReqBodyBuilder added in v3.0.19

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

func NewBatchCreateFunctionalRoleMemberPathReqBodyBuilder added in v3.0.19

func NewBatchCreateFunctionalRoleMemberPathReqBodyBuilder() *BatchCreateFunctionalRoleMemberPathReqBodyBuilder

func (*BatchCreateFunctionalRoleMemberPathReqBodyBuilder) Build added in v3.0.19

func (*BatchCreateFunctionalRoleMemberPathReqBodyBuilder) Members added in v3.0.19

角色添加的角色成员列表(一批用户的UserID列表)

示例值:

type BatchCreateFunctionalRoleMemberReq added in v3.0.19

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

type BatchCreateFunctionalRoleMemberReqBody added in v3.0.19

type BatchCreateFunctionalRoleMemberReqBody struct {
	Members []string `json:"members,omitempty"` // 角色添加的角色成员列表(一批用户的UserID列表)
}

type BatchCreateFunctionalRoleMemberReqBodyBuilder added in v3.0.19

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

func NewBatchCreateFunctionalRoleMemberReqBodyBuilder added in v3.0.19

func NewBatchCreateFunctionalRoleMemberReqBodyBuilder() *BatchCreateFunctionalRoleMemberReqBodyBuilder

func (*BatchCreateFunctionalRoleMemberReqBodyBuilder) Build added in v3.0.19

func (*BatchCreateFunctionalRoleMemberReqBodyBuilder) Members added in v3.0.19

角色添加的角色成员列表(一批用户的UserID列表)

示例值:

type BatchCreateFunctionalRoleMemberReqBuilder added in v3.0.19

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

func NewBatchCreateFunctionalRoleMemberReqBuilder added in v3.0.19

func NewBatchCreateFunctionalRoleMemberReqBuilder() *BatchCreateFunctionalRoleMemberReqBuilder

func (*BatchCreateFunctionalRoleMemberReqBuilder) Body added in v3.0.19

func (*BatchCreateFunctionalRoleMemberReqBuilder) Build added in v3.0.19

func (*BatchCreateFunctionalRoleMemberReqBuilder) RoleId added in v3.0.19

角色的唯一标识,单租户下唯一

示例值:7vrj3vk70xk7v5r

func (*BatchCreateFunctionalRoleMemberReqBuilder) UserIdType added in v3.0.19

成员ID类型

示例值:open_id

type BatchCreateFunctionalRoleMemberResp added in v3.0.19

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

func (*BatchCreateFunctionalRoleMemberResp) Success added in v3.0.19

func (resp *BatchCreateFunctionalRoleMemberResp) Success() bool

type BatchCreateFunctionalRoleMemberRespData added in v3.0.19

type BatchCreateFunctionalRoleMemberRespData struct {
	Results []*FunctionalRoleMemberResult `json:"results,omitempty"` // 批量新增角色成员结果集
}

type BatchDeleteFunctionalRoleMemberPathReqBodyBuilder added in v3.0.19

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

func NewBatchDeleteFunctionalRoleMemberPathReqBodyBuilder added in v3.0.19

func NewBatchDeleteFunctionalRoleMemberPathReqBodyBuilder() *BatchDeleteFunctionalRoleMemberPathReqBodyBuilder

func (*BatchDeleteFunctionalRoleMemberPathReqBodyBuilder) Build added in v3.0.19

func (*BatchDeleteFunctionalRoleMemberPathReqBodyBuilder) Members added in v3.0.19

角色删除的角色成员列表(一批用户的UserID列表)

示例值:

type BatchDeleteFunctionalRoleMemberReq added in v3.0.19

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

type BatchDeleteFunctionalRoleMemberReqBody added in v3.0.19

type BatchDeleteFunctionalRoleMemberReqBody struct {
	Members []string `json:"members,omitempty"` // 角色删除的角色成员列表(一批用户的UserID列表)
}

type BatchDeleteFunctionalRoleMemberReqBodyBuilder added in v3.0.19

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

func NewBatchDeleteFunctionalRoleMemberReqBodyBuilder added in v3.0.19

func NewBatchDeleteFunctionalRoleMemberReqBodyBuilder() *BatchDeleteFunctionalRoleMemberReqBodyBuilder

func (*BatchDeleteFunctionalRoleMemberReqBodyBuilder) Build added in v3.0.19

func (*BatchDeleteFunctionalRoleMemberReqBodyBuilder) Members added in v3.0.19

角色删除的角色成员列表(一批用户的UserID列表)

示例值:

type BatchDeleteFunctionalRoleMemberReqBuilder added in v3.0.19

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

func NewBatchDeleteFunctionalRoleMemberReqBuilder added in v3.0.19

func NewBatchDeleteFunctionalRoleMemberReqBuilder() *BatchDeleteFunctionalRoleMemberReqBuilder

func (*BatchDeleteFunctionalRoleMemberReqBuilder) Body added in v3.0.19

func (*BatchDeleteFunctionalRoleMemberReqBuilder) Build added in v3.0.19

func (*BatchDeleteFunctionalRoleMemberReqBuilder) RoleId added in v3.0.19

角色的唯一标识,单租户下唯一

示例值:7vrj3vk70xk7v5r

func (*BatchDeleteFunctionalRoleMemberReqBuilder) UserIdType added in v3.0.19

成员ID类型

示例值:open_id

type BatchDeleteFunctionalRoleMemberResp added in v3.0.19

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

func (*BatchDeleteFunctionalRoleMemberResp) Success added in v3.0.19

func (resp *BatchDeleteFunctionalRoleMemberResp) Success() bool

type BatchDeleteFunctionalRoleMemberRespData added in v3.0.19

type BatchDeleteFunctionalRoleMemberRespData struct {
	Result []*FunctionalRoleMemberResult `json:"result,omitempty"` // 批量新增角色成员结果集
}

type BatchDepartmentReq added in v3.0.24

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

type BatchDepartmentReqBuilder added in v3.0.24

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

func NewBatchDepartmentReqBuilder added in v3.0.24

func NewBatchDepartmentReqBuilder() *BatchDepartmentReqBuilder

func (*BatchDepartmentReqBuilder) Build added in v3.0.24

func (*BatchDepartmentReqBuilder) DepartmentIdType added in v3.0.24

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

说明请求中department_id_list参数所使用的部门ID类型

示例值:open_department_id

func (*BatchDepartmentReqBuilder) DepartmentIds added in v3.0.24

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

查询的部门ID列表,类型需要与department_id_type对应

示例值:

func (*BatchDepartmentReqBuilder) UserIdType added in v3.0.24

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

指定调用结果中包含用户(如部门leader)关联的用户ID类型

示例值:open_id

type BatchDepartmentResp added in v3.0.24

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

func (*BatchDepartmentResp) Success added in v3.0.24

func (resp *BatchDepartmentResp) Success() bool

type BatchDepartmentRespData added in v3.0.24

type BatchDepartmentRespData struct {
	Items []*Department `json:"items,omitempty"` // 查询到的部门信息,其中异常的部门ID不返回结果。
}

type BatchGetIdUserPathReqBodyBuilder

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

func NewBatchGetIdUserPathReqBodyBuilder

func NewBatchGetIdUserPathReqBodyBuilder() *BatchGetIdUserPathReqBodyBuilder

func (*BatchGetIdUserPathReqBodyBuilder) Build

func (*BatchGetIdUserPathReqBodyBuilder) Emails

要查询的用户邮箱,最多 50 条。;;注意,emails与mobiles相互独立,每条用户邮箱返回对应的用户ID。;;本接口返回的用户ID数量为emails数量与mobiles数量的和。

示例值:zhangsan@a.com

func (*BatchGetIdUserPathReqBodyBuilder) IncludeResigned added in v3.0.31

func (builder *BatchGetIdUserPathReqBodyBuilder) IncludeResigned(includeResigned bool) *BatchGetIdUserPathReqBodyBuilder

查询结果包含离职员工,可查询离职用户的ID

示例值:true

func (*BatchGetIdUserPathReqBodyBuilder) Mobiles

要查询的用户手机号,最多 50 条。;;注意;1. emails与mobiles相互独立,每条用户手机号返回对应的用户ID。;2. 非中国大陆地区的手机号需要添加以 “+” 开头的国家 / 地区代码。

示例值:13812345678

type BatchGetIdUserReq

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

type BatchGetIdUserReqBody

type BatchGetIdUserReqBody struct {
	Emails          []string `json:"emails,omitempty"`           // 要查询的用户邮箱,最多 50 条。;;注意,emails与mobiles相互独立,每条用户邮箱返回对应的用户ID。;;本接口返回的用户ID数量为emails数量与mobiles数量的和。
	Mobiles         []string `json:"mobiles,omitempty"`          // 要查询的用户手机号,最多 50 条。;;注意;1. emails与mobiles相互独立,每条用户手机号返回对应的用户ID。;2.  非中国大陆地区的手机号需要添加以 “+” 开头的国家 / 地区代码。
	IncludeResigned *bool    `json:"include_resigned,omitempty"` // 查询结果包含离职员工,可查询离职用户的ID
}

type BatchGetIdUserReqBodyBuilder

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

func NewBatchGetIdUserReqBodyBuilder

func NewBatchGetIdUserReqBodyBuilder() *BatchGetIdUserReqBodyBuilder

func (*BatchGetIdUserReqBodyBuilder) Build

func (*BatchGetIdUserReqBodyBuilder) Emails

要查询的用户邮箱,最多 50 条。;;注意,emails与mobiles相互独立,每条用户邮箱返回对应的用户ID。;;本接口返回的用户ID数量为emails数量与mobiles数量的和。

示例值:zhangsan@a.com

func (*BatchGetIdUserReqBodyBuilder) IncludeResigned added in v3.0.31

func (builder *BatchGetIdUserReqBodyBuilder) IncludeResigned(includeResigned bool) *BatchGetIdUserReqBodyBuilder

查询结果包含离职员工,可查询离职用户的ID

示例值:true

func (*BatchGetIdUserReqBodyBuilder) Mobiles

要查询的用户手机号,最多 50 条。;;注意;1. emails与mobiles相互独立,每条用户手机号返回对应的用户ID。;2. 非中国大陆地区的手机号需要添加以 “+” 开头的国家 / 地区代码。

示例值:13812345678

type BatchGetIdUserReqBuilder

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

func NewBatchGetIdUserReqBuilder

func NewBatchGetIdUserReqBuilder() *BatchGetIdUserReqBuilder

func (*BatchGetIdUserReqBuilder) Body

通过该接口,可使用手机号/邮箱获取用户的 ID 信息,具体获取支持的 ID 类型包括 open_id、user_id、union_id,可通过查询参数指定。

func (*BatchGetIdUserReqBuilder) Build

func (builder *BatchGetIdUserReqBuilder) Build() *BatchGetIdUserReq

func (*BatchGetIdUserReqBuilder) UserIdType

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

返回的用户ID的类型

示例值:user_id

type BatchGetIdUserResp

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

func (*BatchGetIdUserResp) Success

func (resp *BatchGetIdUserResp) Success() bool

type BatchGetIdUserRespData

type BatchGetIdUserRespData struct {
	UserList []*UserContactInfo `json:"user_list,omitempty"` // 手机号或者邮箱对应的用户id信息
}

type BatchRemoveGroupMemberPathReqBodyBuilder

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

func NewBatchRemoveGroupMemberPathReqBodyBuilder

func NewBatchRemoveGroupMemberPathReqBodyBuilder() *BatchRemoveGroupMemberPathReqBodyBuilder

func (*BatchRemoveGroupMemberPathReqBodyBuilder) Build

func (*BatchRemoveGroupMemberPathReqBodyBuilder) Members

待移除成员

示例值:

type BatchRemoveGroupMemberReq

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

type BatchRemoveGroupMemberReqBody

type BatchRemoveGroupMemberReqBody struct {
	Members []*Memberlist `json:"members,omitempty"` // 待移除成员
}

type BatchRemoveGroupMemberReqBodyBuilder

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

func NewBatchRemoveGroupMemberReqBodyBuilder

func NewBatchRemoveGroupMemberReqBodyBuilder() *BatchRemoveGroupMemberReqBodyBuilder

func (*BatchRemoveGroupMemberReqBodyBuilder) Build

func (*BatchRemoveGroupMemberReqBodyBuilder) Members

待移除成员

示例值:

type BatchRemoveGroupMemberReqBuilder

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

func NewBatchRemoveGroupMemberReqBuilder

func NewBatchRemoveGroupMemberReqBuilder() *BatchRemoveGroupMemberReqBuilder

func (*BatchRemoveGroupMemberReqBuilder) Body

从普通用户组中批量移除成员 (目前仅支持移除用户,暂不支持移除部门)。如果应用的通讯录权限范围是“全部员工”,则可将任何成员移出任何用户组。如果应用的通讯录权限范围不是“全部员工”,则仅可将通讯录权限范围中的成员从通讯录权限范围的用户组中移除, [点击了解通讯录权限范围](https://open.feishu.cn/document/ukTMukTMukTM/uETNz4SM1MjLxUzM/v3/guides/scope_authority)。

func (*BatchRemoveGroupMemberReqBuilder) Build

func (*BatchRemoveGroupMemberReqBuilder) GroupId

用户组ID

示例值:test_group

type BatchRemoveGroupMemberResp

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

func (*BatchRemoveGroupMemberResp) Success

func (resp *BatchRemoveGroupMemberResp) Success() bool

type BatchUserReq added in v3.0.24

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

type BatchUserReqBuilder added in v3.0.24

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

func NewBatchUserReqBuilder added in v3.0.24

func NewBatchUserReqBuilder() *BatchUserReqBuilder

func (*BatchUserReqBuilder) Build added in v3.0.24

func (builder *BatchUserReqBuilder) Build() *BatchUserReq

func (*BatchUserReqBuilder) DepartmentIdType added in v3.0.24

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

指定查询结果中用户关联的部门ID类型

示例值:open_department_id

func (*BatchUserReqBuilder) UserIdType added in v3.0.24

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

指定请求中用户ID类型

示例值:open_id

func (*BatchUserReqBuilder) UserIds added in v3.0.24

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

要查询的用户ID列表

示例值:

type BatchUserResp added in v3.0.24

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

func (*BatchUserResp) Success added in v3.0.24

func (resp *BatchUserResp) Success() bool

type BatchUserRespData added in v3.0.24

type BatchUserRespData struct {
	Items []*User `json:"items,omitempty"` // 查询到的用户信息,其中异常的用户ID不返回结果。
}

type BindDepartmentUnitPathReqBodyBuilder

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

func NewBindDepartmentUnitPathReqBodyBuilder

func NewBindDepartmentUnitPathReqBodyBuilder() *BindDepartmentUnitPathReqBodyBuilder

func (*BindDepartmentUnitPathReqBodyBuilder) Build

func (*BindDepartmentUnitPathReqBodyBuilder) DepartmentId

单位关联的部门ID

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

func (*BindDepartmentUnitPathReqBodyBuilder) DepartmentIdType

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

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

示例值:open_department_id

func (*BindDepartmentUnitPathReqBodyBuilder) UnitId

单位ID

示例值:BU121

type BindDepartmentUnitReq

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

type BindDepartmentUnitReqBody

type BindDepartmentUnitReqBody struct {
	UnitId           *string `json:"unit_id,omitempty"`            // 单位ID
	DepartmentId     *string `json:"department_id,omitempty"`      // 单位关联的部门ID
	DepartmentIdType *string `json:"department_id_type,omitempty"` // 此次调用中使用的部门ID的类型
}

type BindDepartmentUnitReqBodyBuilder

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

func NewBindDepartmentUnitReqBodyBuilder

func NewBindDepartmentUnitReqBodyBuilder() *BindDepartmentUnitReqBodyBuilder

func (*BindDepartmentUnitReqBodyBuilder) Build

func (*BindDepartmentUnitReqBodyBuilder) DepartmentId

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

单位关联的部门ID

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

func (*BindDepartmentUnitReqBodyBuilder) DepartmentIdType

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

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

示例值:open_department_id

func (*BindDepartmentUnitReqBodyBuilder) UnitId

单位ID

示例值:BU121

type BindDepartmentUnitReqBuilder

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

func NewBindDepartmentUnitReqBuilder

func NewBindDepartmentUnitReqBuilder() *BindDepartmentUnitReqBuilder

func (*BindDepartmentUnitReqBuilder) Body

通过该接口建立部门与单位的绑定关系。由于单位是旗舰版付费功能,企业需开通相关版本,否则会绑定失败,不同版本请参考[飞书版本对比](https://www.feishu.cn/service)

func (*BindDepartmentUnitReqBuilder) Build

type BindDepartmentUnitResp

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

func (*BindDepartmentUnitResp) Success

func (resp *BindDepartmentUnitResp) Success() bool

type ChildrenDepartmentIterator

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

func (*ChildrenDepartmentIterator) Next

func (iterator *ChildrenDepartmentIterator) Next() (bool, *Department, error)

func (*ChildrenDepartmentIterator) NextPageToken

func (iterator *ChildrenDepartmentIterator) NextPageToken() *string

type ChildrenDepartmentReq

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

type ChildrenDepartmentReqBuilder

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

func NewChildrenDepartmentReqBuilder

func NewChildrenDepartmentReqBuilder() *ChildrenDepartmentReqBuilder

func (*ChildrenDepartmentReqBuilder) Build

func (*ChildrenDepartmentReqBuilder) DepartmentId

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

部门ID,根部门的部门ID 为0;;department_id的获取方式参见 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:D096

func (*ChildrenDepartmentReqBuilder) DepartmentIdType

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

此次调用中使用的部门ID的类型;;不同 ID 的说明与department_id的获取方式参见 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:open_department_id

func (*ChildrenDepartmentReqBuilder) FetchChild

func (builder *ChildrenDepartmentReqBuilder) FetchChild(fetchChild bool) *ChildrenDepartmentReqBuilder

是否递归获取子部门

示例值:false

func (*ChildrenDepartmentReqBuilder) Limit

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

func (*ChildrenDepartmentReqBuilder) PageSize

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

分页大小

示例值:10

func (*ChildrenDepartmentReqBuilder) PageToken

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

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

示例值:AQD9/Rn9eij9Pm39ED40/RD/cIFmu77WxpxPB/2oHfQLZ+G8JG6tK7+ZnHiT7COhD2hMSICh/eBl7cpzU6JEC3J7COKNe4jrQ8ExwBCR

func (*ChildrenDepartmentReqBuilder) UserIdType

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

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

示例值:

type ChildrenDepartmentResp

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

func (*ChildrenDepartmentResp) Success

func (resp *ChildrenDepartmentResp) Success() bool

type ChildrenDepartmentRespData

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

type CollaborationTenant added in v3.0.1

type CollaborationTenant struct {
	TenantKey   *string     `json:"tenant_key,omitempty"`   // 关联租户ID
	Name        *string     `json:"name,omitempty"`         // 关联租户实际名称
	Nickname    *string     `json:"nickname,omitempty"`     // 别名
	ConnectTime *int        `json:"connect_time,omitempty"` // 关联时间
	Avatar      *AvatarInfo `json:"avatar,omitempty"`       // 租户icon信息
	Brand       *string     `json:"brand,omitempty"`        // 租户品牌
}

type CollaborationTenantBuilder added in v3.0.1

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

func NewCollaborationTenantBuilder added in v3.0.1

func NewCollaborationTenantBuilder() *CollaborationTenantBuilder

func (*CollaborationTenantBuilder) Avatar added in v3.0.1

租户icon信息

示例值:

func (*CollaborationTenantBuilder) Brand added in v3.0.3

租户品牌

示例值:

func (*CollaborationTenantBuilder) Build added in v3.0.1

func (*CollaborationTenantBuilder) ConnectTime added in v3.0.1

func (builder *CollaborationTenantBuilder) ConnectTime(connectTime int) *CollaborationTenantBuilder

关联时间

示例值:1642041636

func (*CollaborationTenantBuilder) Name added in v3.0.1

关联租户实际名称

示例值:testName

func (*CollaborationTenantBuilder) Nickname added in v3.0.1

func (builder *CollaborationTenantBuilder) Nickname(nickname string) *CollaborationTenantBuilder

别名

示例值:testNickName

func (*CollaborationTenantBuilder) TenantKey added in v3.0.1

func (builder *CollaborationTenantBuilder) TenantKey(tenantKey string) *CollaborationTenantBuilder

关联租户ID

示例值:130426ba5b8f174f

type ConfidentialMember added in v3.0.15

type ConfidentialMember struct {
	UserId         *string `json:"user_id,omitempty"`         // 用户ID
	IsConfidential *bool   `json:"is_confidential,omitempty"` // 是否机密
}

type ConfidentialMemberBuilder added in v3.0.15

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

func NewConfidentialMemberBuilder added in v3.0.15

func NewConfidentialMemberBuilder() *ConfidentialMemberBuilder

func (*ConfidentialMemberBuilder) Build added in v3.0.15

func (*ConfidentialMemberBuilder) IsConfidential added in v3.0.15

func (builder *ConfidentialMemberBuilder) IsConfidential(isConfidential bool) *ConfidentialMemberBuilder

是否机密

示例值:true

func (*ConfidentialMemberBuilder) UserId added in v3.0.15

用户ID

示例值:ou_ddbbb39b7b4a1a6366e6021f2efec495

type ContactService

type ContactService struct {
	CustomAttr           *customAttr           // 自定义用户字段
	CustomAttrEvent      *customAttrEvent      // 事件
	Department           *department           // 部门
	EmployeeTypeEnum     *employeeTypeEnum     // 人员类型
	FunctionalRole       *functionalRole       // functional_role
	FunctionalRoleMember *functionalRoleMember // functional_role.member
	Group                *group                // 用户组
	GroupMember          *groupMember          // 用户组成员
	JobFamily            *jobFamily            // job_family
	JobLevel             *jobLevel             // job_level
	JobTitle             *jobTitle             // job_title
	Scope                *scope                // 通讯录权限范围
	Unit                 *unit                 // 单位
	User                 *user                 // 用户
	WorkCity             *workCity             // work_city
	// contains filtered or unexported fields
}

func NewService

func NewService(config *larkcore.Config) *ContactService

type CreateDepartmentReq

type CreateDepartmentReq struct {
	Department *Department `body:""`
	// contains filtered or unexported fields
}

type CreateDepartmentReqBuilder

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

func NewCreateDepartmentReqBuilder

func NewCreateDepartmentReqBuilder() *CreateDepartmentReqBuilder

func (*CreateDepartmentReqBuilder) Build

func (*CreateDepartmentReqBuilder) ClientToken

func (builder *CreateDepartmentReqBuilder) ClientToken(clientToken string) *CreateDepartmentReqBuilder

用于幂等判断是否为同一请求,避免重复创建。字符串类型,自行生成。

示例值:473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

func (*CreateDepartmentReqBuilder) Department

func (builder *CreateDepartmentReqBuilder) Department(department *Department) *CreateDepartmentReqBuilder

该接口用于向通讯录中创建部门。

func (*CreateDepartmentReqBuilder) DepartmentIdType

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

此次调用中使用的部门ID的类型;;不同 ID 的说明参见[部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:open_department_id

func (*CreateDepartmentReqBuilder) UserIdType

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

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

示例值:

type CreateDepartmentResp

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

func (*CreateDepartmentResp) Success

func (resp *CreateDepartmentResp) Success() bool

type CreateDepartmentRespData

type CreateDepartmentRespData struct {
	Department *Department `json:"department,omitempty"` // 部门信息
}

type CreateEmployeeTypeEnumReq

type CreateEmployeeTypeEnumReq struct {
	EmployeeTypeEnum *EmployeeTypeEnum `body:""`
	// contains filtered or unexported fields
}

type CreateEmployeeTypeEnumReqBuilder

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

func NewCreateEmployeeTypeEnumReqBuilder

func NewCreateEmployeeTypeEnumReqBuilder() *CreateEmployeeTypeEnumReqBuilder

func (*CreateEmployeeTypeEnumReqBuilder) Build

func (*CreateEmployeeTypeEnumReqBuilder) EmployeeTypeEnum

func (builder *CreateEmployeeTypeEnumReqBuilder) EmployeeTypeEnum(employeeTypeEnum *EmployeeTypeEnum) *CreateEmployeeTypeEnumReqBuilder

新增自定义人员类型

type CreateEmployeeTypeEnumResp

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

func (*CreateEmployeeTypeEnumResp) Success

func (resp *CreateEmployeeTypeEnumResp) Success() bool

type CreateEmployeeTypeEnumRespData

type CreateEmployeeTypeEnumRespData struct {
	EmployeeTypeEnum *EmployeeTypeEnum `json:"employee_type_enum,omitempty"` // 新建的人员类型信息
}

type CreateFunctionalRolePathReqBodyBuilder added in v3.0.19

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

func NewCreateFunctionalRolePathReqBodyBuilder added in v3.0.19

func NewCreateFunctionalRolePathReqBodyBuilder() *CreateFunctionalRolePathReqBodyBuilder

func (*CreateFunctionalRolePathReqBodyBuilder) Build added in v3.0.19

func (*CreateFunctionalRolePathReqBodyBuilder) RoleName added in v3.0.19

角色名称,在单租户下唯一

示例值:考勤管理员

type CreateFunctionalRoleReq added in v3.0.19

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

type CreateFunctionalRoleReqBody added in v3.0.19

type CreateFunctionalRoleReqBody struct {
	RoleName *string `json:"role_name,omitempty"` // 角色名称,在单租户下唯一
}

type CreateFunctionalRoleReqBodyBuilder added in v3.0.19

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

func NewCreateFunctionalRoleReqBodyBuilder added in v3.0.19

func NewCreateFunctionalRoleReqBodyBuilder() *CreateFunctionalRoleReqBodyBuilder

func (*CreateFunctionalRoleReqBodyBuilder) Build added in v3.0.19

func (*CreateFunctionalRoleReqBodyBuilder) RoleName added in v3.0.19

角色名称,在单租户下唯一

示例值:考勤管理员

type CreateFunctionalRoleReqBuilder added in v3.0.19

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

func NewCreateFunctionalRoleReqBuilder added in v3.0.19

func NewCreateFunctionalRoleReqBuilder() *CreateFunctionalRoleReqBuilder

func (*CreateFunctionalRoleReqBuilder) Body added in v3.0.19

func (*CreateFunctionalRoleReqBuilder) Build added in v3.0.19

type CreateFunctionalRoleResp added in v3.0.19

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

func (*CreateFunctionalRoleResp) Success added in v3.0.19

func (resp *CreateFunctionalRoleResp) Success() bool

type CreateFunctionalRoleRespData added in v3.0.19

type CreateFunctionalRoleRespData struct {
	RoleId *string `json:"role_id,omitempty"` // 角色ID,在单租户下唯一
}

type CreateGroupReq

type CreateGroupReq struct {
	Group *Group `body:""`
	// contains filtered or unexported fields
}

type CreateGroupReqBuilder

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

func NewCreateGroupReqBuilder

func NewCreateGroupReqBuilder() *CreateGroupReqBuilder

func (*CreateGroupReqBuilder) Build

func (builder *CreateGroupReqBuilder) Build() *CreateGroupReq

func (*CreateGroupReqBuilder) DepartmentIdType added in v3.0.20

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

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

示例值:open_department_id

func (*CreateGroupReqBuilder) Group added in v3.0.22

func (builder *CreateGroupReqBuilder) Group(group *Group) *CreateGroupReqBuilder

使用该接口创建用户组,请注意创建用户组时应用的通讯录权限范围需为“全部员工”,否则会创建失败,[点击了解通讯录权限范围](https://open.feishu.cn/document/ukTMukTMukTM/uETNz4SM1MjLxUzM/v3/guides/scope_authority)。

func (*CreateGroupReqBuilder) UserIdType added in v3.0.20

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

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

示例值:open_id

type CreateGroupResp

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

func (*CreateGroupResp) Success

func (resp *CreateGroupResp) Success() bool

type CreateGroupRespData

type CreateGroupRespData struct {
	GroupId *string `json:"group_id,omitempty"` // 用户组ID
}

type CreateJobFamilyReq added in v3.0.19

type CreateJobFamilyReq struct {
	JobFamily *JobFamily `body:""`
	// contains filtered or unexported fields
}

type CreateJobFamilyReqBuilder added in v3.0.19

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

func NewCreateJobFamilyReqBuilder added in v3.0.19

func NewCreateJobFamilyReqBuilder() *CreateJobFamilyReqBuilder

func (*CreateJobFamilyReqBuilder) Build added in v3.0.19

func (*CreateJobFamilyReqBuilder) JobFamily added in v3.0.19

func (builder *CreateJobFamilyReqBuilder) JobFamily(jobFamily *JobFamily) *CreateJobFamilyReqBuilder

type CreateJobFamilyResp added in v3.0.19

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

func (*CreateJobFamilyResp) Success added in v3.0.19

func (resp *CreateJobFamilyResp) Success() bool

type CreateJobFamilyRespData added in v3.0.19

type CreateJobFamilyRespData struct {
	JobFamily *JobFamily `json:"job_family,omitempty"` // 序列信息
}

type CreateJobLevelReq added in v3.0.19

type CreateJobLevelReq struct {
	JobLevel *JobLevel `body:""`
	// contains filtered or unexported fields
}

type CreateJobLevelReqBuilder added in v3.0.19

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

func NewCreateJobLevelReqBuilder added in v3.0.19

func NewCreateJobLevelReqBuilder() *CreateJobLevelReqBuilder

func (*CreateJobLevelReqBuilder) Build added in v3.0.19

func (builder *CreateJobLevelReqBuilder) Build() *CreateJobLevelReq

func (*CreateJobLevelReqBuilder) JobLevel added in v3.0.19

func (builder *CreateJobLevelReqBuilder) JobLevel(jobLevel *JobLevel) *CreateJobLevelReqBuilder

type CreateJobLevelResp added in v3.0.19

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

func (*CreateJobLevelResp) Success added in v3.0.19

func (resp *CreateJobLevelResp) Success() bool

type CreateJobLevelRespData added in v3.0.19

type CreateJobLevelRespData struct {
	JobLevel *JobLevel `json:"job_level,omitempty"` // 职级信息
}

type CreateUnitPathReqBodyBuilder

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

func NewCreateUnitPathReqBodyBuilder

func NewCreateUnitPathReqBodyBuilder() *CreateUnitPathReqBodyBuilder

func (*CreateUnitPathReqBodyBuilder) Build

func (*CreateUnitPathReqBodyBuilder) Name

单位的名字,长度范围为1-100个字符

示例值:消费者事业部

func (*CreateUnitPathReqBodyBuilder) UnitId

单位ID。可自定义,不传时默认自动生成。1-64字节范围大小,需为数字字母

示例值:BU121

func (*CreateUnitPathReqBodyBuilder) UnitType

单位类型,长度范围为1-100个字符,创建后不可修改

示例值:子公司

type CreateUnitReq

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

type CreateUnitReqBody

type CreateUnitReqBody struct {
	UnitId   *string `json:"unit_id,omitempty"`   // 单位ID。可自定义,不传时默认自动生成。1-64字节范围大小,需为数字字母
	Name     *string `json:"name,omitempty"`      // 单位的名字,长度范围为1-100个字符
	UnitType *string `json:"unit_type,omitempty"` // 单位类型,长度范围为1-100个字符,创建后不可修改
}

type CreateUnitReqBodyBuilder

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

func NewCreateUnitReqBodyBuilder

func NewCreateUnitReqBodyBuilder() *CreateUnitReqBodyBuilder

func (*CreateUnitReqBodyBuilder) Build

func (builder *CreateUnitReqBodyBuilder) Build() *CreateUnitReqBody

func (*CreateUnitReqBodyBuilder) Name

单位的名字,长度范围为1-100个字符

示例值:消费者事业部

func (*CreateUnitReqBodyBuilder) UnitId

func (builder *CreateUnitReqBodyBuilder) UnitId(unitId string) *CreateUnitReqBodyBuilder

单位ID。可自定义,不传时默认自动生成。1-64字节范围大小,需为数字字母

示例值:BU121

func (*CreateUnitReqBodyBuilder) UnitType

func (builder *CreateUnitReqBodyBuilder) UnitType(unitType string) *CreateUnitReqBodyBuilder

单位类型,长度范围为1-100个字符,创建后不可修改

示例值:子公司

type CreateUnitReqBuilder

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

func NewCreateUnitReqBuilder

func NewCreateUnitReqBuilder() *CreateUnitReqBuilder

func (*CreateUnitReqBuilder) Body

该接口用于创建单位。注意:单位功能属于旗舰版付费功能,企业需开通对应版本才可以创建单位,不同版本请参考[飞书版本对比](https://www.feishu.cn/service)。

func (*CreateUnitReqBuilder) Build

func (builder *CreateUnitReqBuilder) Build() *CreateUnitReq

type CreateUnitResp

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

func (*CreateUnitResp) Success

func (resp *CreateUnitResp) Success() bool

type CreateUnitRespData

type CreateUnitRespData struct {
	UnitId *string `json:"unit_id,omitempty"` // 单位ID,可自定义
}

type CreateUserReq

type CreateUserReq struct {
	User *User `body:""`
	// contains filtered or unexported fields
}

type CreateUserReqBuilder

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

func NewCreateUserReqBuilder

func NewCreateUserReqBuilder() *CreateUserReqBuilder

func (*CreateUserReqBuilder) Build

func (builder *CreateUserReqBuilder) Build() *CreateUserReq

func (*CreateUserReqBuilder) ClientToken

func (builder *CreateUserReqBuilder) ClientToken(clientToken string) *CreateUserReqBuilder

用于幂等判断是否为同一请求,避免重复创建。字符串类型,自行生成。

示例值:xxxx-xxxxx-xxx

func (*CreateUserReqBuilder) DepartmentIdType

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

此次调用中使用的部门ID的类型。;;不同 ID 的说明参见[部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:open_department_id

func (*CreateUserReqBuilder) User

func (builder *CreateUserReqBuilder) User(user *User) *CreateUserReqBuilder

使用该接口向通讯录创建一个用户,可以理解为员工入职。创建用户后只返回有数据权限的数据。具体的数据权限的与字段的对应关系请参照[应用权限](https://open.feishu.cn/document/ukTMukTMukTM/uQjN3QjL0YzN04CN2cDN)。

func (*CreateUserReqBuilder) UserIdType

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

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

示例值:

type CreateUserResp

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

func (*CreateUserResp) Success

func (resp *CreateUserResp) Success() bool

type CreateUserRespData

type CreateUserRespData struct {
	User *User `json:"user,omitempty"` // 用户信息
}

type CustomAttr

type CustomAttr struct {
	Id       *string            `json:"id,omitempty"`        // 自定义字段id
	Type     *string            `json:"type,omitempty"`      // 自定义字段类型,可选值有:;- `TEXT`:纯文本,用于纯文本描述人员,如备注;- `HREF`:静态 URL,用于人员 Profile 跳转链接;- `ENUMERATION`:枚举,用于结构化描述人员,如民族;- `GENERIC_USER`:用户,用于描述人和人关系,如 HRBP;- `PICTURE_ENUM`:枚举图片,以结构化的图片描述人员,如在人员 Profile 展示荣誉徽章
	Options  *CustomAttrOptions `json:"options,omitempty"`   // 选项定义,当type为`ENUMERATION`或者`PICTURE_ENUM`时此项有值,列举所有可选项
	I18nName []*I18nContent     `json:"i18n_name,omitempty"` // 自定义字段的字段名称
}

type CustomAttrBuilder

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

func NewCustomAttrBuilder

func NewCustomAttrBuilder() *CustomAttrBuilder

func (*CustomAttrBuilder) Build

func (builder *CustomAttrBuilder) Build() *CustomAttr

func (*CustomAttrBuilder) I18nName

func (builder *CustomAttrBuilder) I18nName(i18nName []*I18nContent) *CustomAttrBuilder

自定义字段的字段名称

示例值:{}

func (*CustomAttrBuilder) Id

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

自定义字段id

示例值:C-6965457429001748507

func (*CustomAttrBuilder) Options

func (builder *CustomAttrBuilder) Options(options *CustomAttrOptions) *CustomAttrBuilder

选项定义,当type为`ENUMERATION`或者`PICTURE_ENUM`时此项有值,列举所有可选项

示例值:{}

func (*CustomAttrBuilder) Type

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

自定义字段类型,可选值有:;- `TEXT`:纯文本,用于纯文本描述人员,如备注;- `HREF`:静态 URL,用于人员 Profile 跳转链接;- `ENUMERATION`:枚举,用于结构化描述人员,如民族;- `GENERIC_USER`:用户,用于描述人和人关系,如 HRBP;- `PICTURE_ENUM`:枚举图片,以结构化的图片描述人员,如在人员 Profile 展示荣誉徽章

示例值:TEXT

type CustomAttrEvent

type CustomAttrEvent struct {
	ContactFieldKey []string `json:"contact_field_key,omitempty"` // 通讯录字段键值
	AllowOpenQuery  *bool    `json:"allow_open_query,omitempty"`  // 开关是否打开
}

type CustomAttrEventBuilder

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

func NewCustomAttrEventBuilder

func NewCustomAttrEventBuilder() *CustomAttrEventBuilder

func (*CustomAttrEventBuilder) AllowOpenQuery

func (builder *CustomAttrEventBuilder) AllowOpenQuery(allowOpenQuery bool) *CustomAttrEventBuilder

开关是否打开

示例值:true

func (*CustomAttrEventBuilder) Build

func (builder *CustomAttrEventBuilder) Build() *CustomAttrEvent

func (*CustomAttrEventBuilder) ContactFieldKey

func (builder *CustomAttrEventBuilder) ContactFieldKey(contactFieldKey []string) *CustomAttrEventBuilder

通讯录字段键值

示例值:

type CustomAttrGenericUser

type CustomAttrGenericUser struct {
	Id   *string `json:"id,omitempty"`   // 用户的user_id ,具体参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	Type *int    `json:"type,omitempty"` // 用户类型:  ;1:用户;;目前固定为1,表示用户类型
}

type CustomAttrGenericUserBuilder

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

func NewCustomAttrGenericUserBuilder

func NewCustomAttrGenericUserBuilder() *CustomAttrGenericUserBuilder

func (*CustomAttrGenericUserBuilder) Build

func (*CustomAttrGenericUserBuilder) Id

用户的user_id ,具体参见[用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:9b2fabg5

func (*CustomAttrGenericUserBuilder) Type

用户类型: ;1:用户;;目前固定为1,表示用户类型

示例值:1

type CustomAttrOption

type CustomAttrOption struct {
	Id    *string `json:"id,omitempty"`    // 枚举类型选项id
	Value *string `json:"value,omitempty"` // 枚举选项值,当option_type为`TEXT`为文本值,当option_type为`PICTURE`时为图片链接
	Name  *string `json:"name,omitempty"`  // 名称,仅option_type为PICTURE时有效
}

type CustomAttrOptionBuilder

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

func NewCustomAttrOptionBuilder

func NewCustomAttrOptionBuilder() *CustomAttrOptionBuilder

func (*CustomAttrOptionBuilder) Build

func (builder *CustomAttrOptionBuilder) Build() *CustomAttrOption

func (*CustomAttrOptionBuilder) Id

枚举类型选项id

示例值:qasdefgr

func (*CustomAttrOptionBuilder) Name

名称,仅option_type为PICTURE时有效

示例值:Name

func (*CustomAttrOptionBuilder) Value

枚举选项值,当option_type为`TEXT`为文本值,当option_type为`PICTURE`时为图片链接

示例值:Option

type CustomAttrOptions

type CustomAttrOptions struct {
	DefaultOptionId *string             `json:"default_option_id,omitempty"` // 默认选项id
	OptionType      *string             `json:"option_type,omitempty"`       // 选项类型
	Options         []*CustomAttrOption `json:"options,omitempty"`           // 选项列表
}

type CustomAttrOptionsBuilder

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

func NewCustomAttrOptionsBuilder

func NewCustomAttrOptionsBuilder() *CustomAttrOptionsBuilder

func (*CustomAttrOptionsBuilder) Build

func (builder *CustomAttrOptionsBuilder) Build() *CustomAttrOptions

func (*CustomAttrOptionsBuilder) DefaultOptionId

func (builder *CustomAttrOptionsBuilder) DefaultOptionId(defaultOptionId string) *CustomAttrOptionsBuilder

默认选项id

示例值:qasdefgr

func (*CustomAttrOptionsBuilder) OptionType

func (builder *CustomAttrOptionsBuilder) OptionType(optionType string) *CustomAttrOptionsBuilder

选项类型

示例值:TEXT

func (*CustomAttrOptionsBuilder) Options

选项列表

示例值:[]

type DeleteDepartmentReq

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

type DeleteDepartmentReqBuilder

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

func NewDeleteDepartmentReqBuilder

func NewDeleteDepartmentReqBuilder() *DeleteDepartmentReqBuilder

func (*DeleteDepartmentReqBuilder) Build

func (*DeleteDepartmentReqBuilder) DepartmentId

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

部门ID,需要与查询参数中传入的department_id_type类型保持一致。

示例值:D096

func (*DeleteDepartmentReqBuilder) DepartmentIdType

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

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

示例值:open_department_id

type DeleteDepartmentResp

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

func (*DeleteDepartmentResp) Success

func (resp *DeleteDepartmentResp) Success() bool

type DeleteEmployeeTypeEnumReq

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

type DeleteEmployeeTypeEnumReqBuilder

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

func NewDeleteEmployeeTypeEnumReqBuilder

func NewDeleteEmployeeTypeEnumReqBuilder() *DeleteEmployeeTypeEnumReqBuilder

func (*DeleteEmployeeTypeEnumReqBuilder) Build

func (*DeleteEmployeeTypeEnumReqBuilder) EnumId

枚举值id

示例值:exGeIjow7zIqWMy+ONkFxA==

type DeleteEmployeeTypeEnumResp

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

func (*DeleteEmployeeTypeEnumResp) Success

func (resp *DeleteEmployeeTypeEnumResp) Success() bool

type DeleteFunctionalRoleReq added in v3.0.19

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

type DeleteFunctionalRoleReqBuilder added in v3.0.19

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

func NewDeleteFunctionalRoleReqBuilder added in v3.0.19

func NewDeleteFunctionalRoleReqBuilder() *DeleteFunctionalRoleReqBuilder

func (*DeleteFunctionalRoleReqBuilder) Build added in v3.0.19

func (*DeleteFunctionalRoleReqBuilder) RoleId added in v3.0.19

角色的唯一标识,单租户下唯一

示例值:7vrj3vk70xk7v5r

type DeleteFunctionalRoleResp added in v3.0.19

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

func (*DeleteFunctionalRoleResp) Success added in v3.0.19

func (resp *DeleteFunctionalRoleResp) Success() bool

type DeleteGroupReq

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

type DeleteGroupReqBuilder

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

func NewDeleteGroupReqBuilder

func NewDeleteGroupReqBuilder() *DeleteGroupReqBuilder

func (*DeleteGroupReqBuilder) Build

func (builder *DeleteGroupReqBuilder) Build() *DeleteGroupReq

func (*DeleteGroupReqBuilder) GroupId

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

需删除的用户组ID

示例值:g1837191

type DeleteGroupResp

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

func (*DeleteGroupResp) Success

func (resp *DeleteGroupResp) Success() bool

type DeleteJobFamilyReq added in v3.0.19

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

type DeleteJobFamilyReqBuilder added in v3.0.19

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

func NewDeleteJobFamilyReqBuilder added in v3.0.19

func NewDeleteJobFamilyReqBuilder() *DeleteJobFamilyReqBuilder

func (*DeleteJobFamilyReqBuilder) Build added in v3.0.19

func (*DeleteJobFamilyReqBuilder) JobFamilyId added in v3.0.19

func (builder *DeleteJobFamilyReqBuilder) JobFamilyId(jobFamilyId string) *DeleteJobFamilyReqBuilder

序列ID

示例值:mga5oa8ayjlp9rb

type DeleteJobFamilyResp added in v3.0.19

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

func (*DeleteJobFamilyResp) Success added in v3.0.19

func (resp *DeleteJobFamilyResp) Success() bool

type DeleteJobLevelReq added in v3.0.19

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

type DeleteJobLevelReqBuilder added in v3.0.19

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

func NewDeleteJobLevelReqBuilder added in v3.0.19

func NewDeleteJobLevelReqBuilder() *DeleteJobLevelReqBuilder

func (*DeleteJobLevelReqBuilder) Build added in v3.0.19

func (builder *DeleteJobLevelReqBuilder) Build() *DeleteJobLevelReq

func (*DeleteJobLevelReqBuilder) JobLevelId added in v3.0.19

func (builder *DeleteJobLevelReqBuilder) JobLevelId(jobLevelId string) *DeleteJobLevelReqBuilder

职级ID

示例值:mga5oa8ayjlp9rb

type DeleteJobLevelResp added in v3.0.19

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

func (*DeleteJobLevelResp) Success added in v3.0.19

func (resp *DeleteJobLevelResp) Success() bool

type DeleteUnitReq

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

type DeleteUnitReqBuilder

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

func NewDeleteUnitReqBuilder

func NewDeleteUnitReqBuilder() *DeleteUnitReqBuilder

func (*DeleteUnitReqBuilder) Build

func (builder *DeleteUnitReqBuilder) Build() *DeleteUnitReq

func (*DeleteUnitReqBuilder) UnitId

func (builder *DeleteUnitReqBuilder) UnitId(unitId string) *DeleteUnitReqBuilder

单位ID

示例值:BU121

type DeleteUnitResp

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

func (*DeleteUnitResp) Success

func (resp *DeleteUnitResp) Success() bool

type DeleteUserPathReqBodyBuilder

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

func NewDeleteUserPathReqBodyBuilder

func NewDeleteUserPathReqBodyBuilder() *DeleteUserPathReqBodyBuilder

func (*DeleteUserPathReqBodyBuilder) ApplicationAcceptorUserId

func (builder *DeleteUserPathReqBodyBuilder) ApplicationAcceptorUserId(applicationAcceptorUserId string) *DeleteUserPathReqBodyBuilder

应用接受者。用户被删除时,其创建的应用转让给接收者,不指定接收者则默认转让给直属上级。如果无直属上级则保留应用在该用户名下,但该用户无法登录开发者后台进行应用管理,管理员可以在管理后台手动转移应用给其他人。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserPathReqBodyBuilder) Build

func (*DeleteUserPathReqBodyBuilder) CalendarAcceptorUserId

func (builder *DeleteUserPathReqBodyBuilder) CalendarAcceptorUserId(calendarAcceptorUserId string) *DeleteUserPathReqBodyBuilder

日程接收者。用户被删除时,其拥有的日程转让给接收者,不指定接收者则默认转让给直属上级,如果无直属上级则直接删除日程资源。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserPathReqBodyBuilder) DepartmentChatAcceptorUserId

func (builder *DeleteUserPathReqBodyBuilder) DepartmentChatAcceptorUserId(departmentChatAcceptorUserId string) *DeleteUserPathReqBodyBuilder

部门群接收者。被删除用户为部门群群主时,转让群主给指定接收者,不指定接收者则默认转让给群内第一个入群的人

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserPathReqBodyBuilder) DocsAcceptorUserId

func (builder *DeleteUserPathReqBodyBuilder) DocsAcceptorUserId(docsAcceptorUserId string) *DeleteUserPathReqBodyBuilder

文档接收者。用户被删除时,其拥有的文档转让给接收者。不指定接收者则默认转让给直属上级,如果无直属上级则将文档资源保留在该用户名下。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserPathReqBodyBuilder) EmailAcceptor added in v3.0.1

func (builder *DeleteUserPathReqBodyBuilder) EmailAcceptor(emailAcceptor *ResourceAcceptor) *DeleteUserPathReqBodyBuilder

用户邮件资源处理方式。用户被删除时,根据传递的操作指令对其拥有的邮件资源做对应处理。未传递指令时默认将邮件资源转让给直属上级,如果无直属上级则保留邮件资源在该用户名下。

示例值:

func (*DeleteUserPathReqBodyBuilder) ExternalChatAcceptorUserId

func (builder *DeleteUserPathReqBodyBuilder) ExternalChatAcceptorUserId(externalChatAcceptorUserId string) *DeleteUserPathReqBodyBuilder

外部群接收者。被删除用户为外部群群主时,转让群主给指定接收者,不指定接收者则默认转让给群内与被删除用户在同一组织的第一个入群的人,如果组织内只有该用户在群里,则解散外部群

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserPathReqBodyBuilder) MinutesAcceptorUserId added in v3.0.1

func (builder *DeleteUserPathReqBodyBuilder) MinutesAcceptorUserId(minutesAcceptorUserId string) *DeleteUserPathReqBodyBuilder

妙记接收者。用户被删除时,其拥有的妙记资源转让给接收者。如果不指定接收者,则默认转让给直属上级。如果无直属上级则将妙记保留在该用户名下。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserPathReqBodyBuilder) SurveyAcceptorUserId added in v3.0.1

func (builder *DeleteUserPathReqBodyBuilder) SurveyAcceptorUserId(surveyAcceptorUserId string) *DeleteUserPathReqBodyBuilder

飞书问卷接收者。用户被删除时,其拥有的飞书问卷资源转让给接收者,不指定接收者则默认转让给直属上级,如果无直属上级则直接删除飞书问卷资源。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

type DeleteUserReq

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

type DeleteUserReqBody

type DeleteUserReqBody struct {
	DepartmentChatAcceptorUserId *string           `json:"department_chat_acceptor_user_id,omitempty"` // 部门群接收者。被删除用户为部门群群主时,转让群主给指定接收者,不指定接收者则默认转让给群内第一个入群的人
	ExternalChatAcceptorUserId   *string           `json:"external_chat_acceptor_user_id,omitempty"`   // 外部群接收者。被删除用户为外部群群主时,转让群主给指定接收者,不指定接收者则默认转让给群内与被删除用户在同一组织的第一个入群的人,如果组织内只有该用户在群里,则解散外部群
	DocsAcceptorUserId           *string           `json:"docs_acceptor_user_id,omitempty"`            // 文档接收者。用户被删除时,其拥有的文档转让给接收者。不指定接收者则默认转让给直属上级,如果无直属上级则将文档资源保留在该用户名下。
	CalendarAcceptorUserId       *string           `json:"calendar_acceptor_user_id,omitempty"`        // 日程接收者。用户被删除时,其拥有的日程转让给接收者,不指定接收者则默认转让给直属上级,如果无直属上级则直接删除日程资源。
	ApplicationAcceptorUserId    *string           `json:"application_acceptor_user_id,omitempty"`     // 应用接受者。用户被删除时,其创建的应用转让给接收者,不指定接收者则默认转让给直属上级。如果无直属上级则保留应用在该用户名下,但该用户无法登录开发者后台进行应用管理,管理员可以在管理后台手动转移应用给其他人。
	MinutesAcceptorUserId        *string           `json:"minutes_acceptor_user_id,omitempty"`         // 妙记接收者。用户被删除时,其拥有的妙记资源转让给接收者。如果不指定接收者,则默认转让给直属上级。如果无直属上级则将妙记保留在该用户名下。
	SurveyAcceptorUserId         *string           `json:"survey_acceptor_user_id,omitempty"`          // 飞书问卷接收者。用户被删除时,其拥有的飞书问卷资源转让给接收者,不指定接收者则默认转让给直属上级,如果无直属上级则直接删除飞书问卷资源。
	EmailAcceptor                *ResourceAcceptor `json:"email_acceptor,omitempty"`                   // 用户邮件资源处理方式。用户被删除时,根据传递的操作指令对其拥有的邮件资源做对应处理。未传递指令时默认将邮件资源转让给直属上级,如果无直属上级则保留邮件资源在该用户名下。
}

type DeleteUserReqBodyBuilder

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

func NewDeleteUserReqBodyBuilder

func NewDeleteUserReqBodyBuilder() *DeleteUserReqBodyBuilder

func (*DeleteUserReqBodyBuilder) ApplicationAcceptorUserId

func (builder *DeleteUserReqBodyBuilder) ApplicationAcceptorUserId(applicationAcceptorUserId string) *DeleteUserReqBodyBuilder

应用接受者。用户被删除时,其创建的应用转让给接收者,不指定接收者则默认转让给直属上级。如果无直属上级则保留应用在该用户名下,但该用户无法登录开发者后台进行应用管理,管理员可以在管理后台手动转移应用给其他人。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserReqBodyBuilder) Build

func (builder *DeleteUserReqBodyBuilder) Build() *DeleteUserReqBody

func (*DeleteUserReqBodyBuilder) CalendarAcceptorUserId

func (builder *DeleteUserReqBodyBuilder) CalendarAcceptorUserId(calendarAcceptorUserId string) *DeleteUserReqBodyBuilder

日程接收者。用户被删除时,其拥有的日程转让给接收者,不指定接收者则默认转让给直属上级,如果无直属上级则直接删除日程资源。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserReqBodyBuilder) DepartmentChatAcceptorUserId

func (builder *DeleteUserReqBodyBuilder) DepartmentChatAcceptorUserId(departmentChatAcceptorUserId string) *DeleteUserReqBodyBuilder

部门群接收者。被删除用户为部门群群主时,转让群主给指定接收者,不指定接收者则默认转让给群内第一个入群的人

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserReqBodyBuilder) DocsAcceptorUserId

func (builder *DeleteUserReqBodyBuilder) DocsAcceptorUserId(docsAcceptorUserId string) *DeleteUserReqBodyBuilder

文档接收者。用户被删除时,其拥有的文档转让给接收者。不指定接收者则默认转让给直属上级,如果无直属上级则将文档资源保留在该用户名下。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserReqBodyBuilder) EmailAcceptor added in v3.0.1

func (builder *DeleteUserReqBodyBuilder) EmailAcceptor(emailAcceptor *ResourceAcceptor) *DeleteUserReqBodyBuilder

用户邮件资源处理方式。用户被删除时,根据传递的操作指令对其拥有的邮件资源做对应处理。未传递指令时默认将邮件资源转让给直属上级,如果无直属上级则保留邮件资源在该用户名下。

示例值:

func (*DeleteUserReqBodyBuilder) ExternalChatAcceptorUserId

func (builder *DeleteUserReqBodyBuilder) ExternalChatAcceptorUserId(externalChatAcceptorUserId string) *DeleteUserReqBodyBuilder

外部群接收者。被删除用户为外部群群主时,转让群主给指定接收者,不指定接收者则默认转让给群内与被删除用户在同一组织的第一个入群的人,如果组织内只有该用户在群里,则解散外部群

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserReqBodyBuilder) MinutesAcceptorUserId added in v3.0.1

func (builder *DeleteUserReqBodyBuilder) MinutesAcceptorUserId(minutesAcceptorUserId string) *DeleteUserReqBodyBuilder

妙记接收者。用户被删除时,其拥有的妙记资源转让给接收者。如果不指定接收者,则默认转让给直属上级。如果无直属上级则将妙记保留在该用户名下。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserReqBodyBuilder) SurveyAcceptorUserId added in v3.0.1

func (builder *DeleteUserReqBodyBuilder) SurveyAcceptorUserId(surveyAcceptorUserId string) *DeleteUserReqBodyBuilder

飞书问卷接收者。用户被删除时,其拥有的飞书问卷资源转让给接收者,不指定接收者则默认转让给直属上级,如果无直属上级则直接删除飞书问卷资源。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

type DeleteUserReqBuilder

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

func NewDeleteUserReqBuilder

func NewDeleteUserReqBuilder() *DeleteUserReqBuilder

func (*DeleteUserReqBuilder) Body

该接口用于从通讯录删除一个用户信息,可以理解为员工离职。

func (*DeleteUserReqBuilder) Build

func (builder *DeleteUserReqBuilder) Build() *DeleteUserReq

func (*DeleteUserReqBuilder) UserId

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

用户ID,需要与查询参数中的user_id_type类型保持一致。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DeleteUserReqBuilder) UserIdType

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

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

示例值:

type DeleteUserResp

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

func (*DeleteUserResp) Success

func (resp *DeleteUserResp) Success() bool

type Department

type Department struct {
	Name                   *string             `json:"name,omitempty"`                      // 部门名称
	I18nName               *DepartmentI18nName `json:"i18n_name,omitempty"`                 // 国际化的部门名称
	ParentDepartmentId     *string             `json:"parent_department_id,omitempty"`      // 父部门的ID;;* 在根部门下创建新部门,该参数值为 “0”
	DepartmentId           *string             `json:"department_id,omitempty"`             // 本部门的自定义部门ID;;注意:除需要满足正则规则外,同时不能以`od-`开头
	OpenDepartmentId       *string             `json:"open_department_id,omitempty"`        // 部门的open_id,类型与通过请求的查询参数传入的department_id_type相同
	LeaderUserId           *string             `json:"leader_user_id,omitempty"`            // 部门主管用户ID
	ChatId                 *string             `json:"chat_id,omitempty"`                   // 部门群ID
	Order                  *string             `json:"order,omitempty"`                     // 部门的排序,即部门在其同级部门的展示顺序
	UnitIds                []string            `json:"unit_ids,omitempty"`                  // 部门单位自定义ID列表,当前只支持一个
	MemberCount            *int                `json:"member_count,omitempty"`              // 部门下用户的个数
	Status                 *DepartmentStatus   `json:"status,omitempty"`                    // 部门状态
	CreateGroupChat        *bool               `json:"create_group_chat,omitempty"`         // 是否创建部门群,默认不创建
	Leaders                []*DepartmentLeader `json:"leaders,omitempty"`                   // 部门负责人
	GroupChatEmployeeTypes []int               `json:"group_chat_employee_types,omitempty"` // 部门群雇员类型限制。[]空列表时,表示为无任何雇员类型。类型字段可包含以下值,支持多个类型值;若有多个,用英文','分隔:;1、正式员工;2、实习生;3、外包;4、劳务;5、顾问;6、其他自定义类型字段,可通过下方接口获取到该租户的自定义员工类型的名称,参见[获取人员类型](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/employee_type_enum/list)。
	DepartmentHrbps        []string            `json:"department_hrbps,omitempty"`          // 部门HRBP
	PrimaryMemberCount     *int                `json:"primary_member_count,omitempty"`      // 部门下主属用户的个数
}

type DepartmentBuilder

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

func NewDepartmentBuilder

func NewDepartmentBuilder() *DepartmentBuilder

func (*DepartmentBuilder) Build

func (builder *DepartmentBuilder) Build() *Department

func (*DepartmentBuilder) ChatId

func (builder *DepartmentBuilder) ChatId(chatId string) *DepartmentBuilder

部门群ID

示例值:oc_5ad11d72b830411d72b836c20

func (*DepartmentBuilder) CreateGroupChat

func (builder *DepartmentBuilder) CreateGroupChat(createGroupChat bool) *DepartmentBuilder

是否创建部门群,默认不创建

示例值:false

func (*DepartmentBuilder) DepartmentHrbps added in v3.0.15

func (builder *DepartmentBuilder) DepartmentHrbps(departmentHrbps []string) *DepartmentBuilder

部门HRBP

示例值:

func (*DepartmentBuilder) DepartmentId

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

本部门的自定义部门ID;;注意:除需要满足正则规则外,同时不能以`od-`开头

示例值:D096

func (*DepartmentBuilder) GroupChatEmployeeTypes added in v3.0.10

func (builder *DepartmentBuilder) GroupChatEmployeeTypes(groupChatEmployeeTypes []int) *DepartmentBuilder

部门群雇员类型限制。[]空列表时,表示为无任何雇员类型。类型字段可包含以下值,支持多个类型值;若有多个,用英文','分隔:;1、正式员工;2、实习生;3、外包;4、劳务;5、顾问;6、其他自定义类型字段,可通过下方接口获取到该租户的自定义员工类型的名称,参见[获取人员类型](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/employee_type_enum/list)。

示例值:[1,2,3]

func (*DepartmentBuilder) I18nName

func (builder *DepartmentBuilder) I18nName(i18nName *DepartmentI18nName) *DepartmentBuilder

国际化的部门名称

示例值:

func (*DepartmentBuilder) LeaderUserId

func (builder *DepartmentBuilder) LeaderUserId(leaderUserId string) *DepartmentBuilder

部门主管用户ID

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DepartmentBuilder) Leaders added in v3.0.1

func (builder *DepartmentBuilder) Leaders(leaders []*DepartmentLeader) *DepartmentBuilder

部门负责人

示例值:

func (*DepartmentBuilder) MemberCount

func (builder *DepartmentBuilder) MemberCount(memberCount int) *DepartmentBuilder

部门下用户的个数

示例值:100

func (*DepartmentBuilder) Name

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

部门名称

示例值:DemoName

func (*DepartmentBuilder) OpenDepartmentId

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

部门的open_id,类型与通过请求的查询参数传入的department_id_type相同

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

func (*DepartmentBuilder) Order

func (builder *DepartmentBuilder) Order(order string) *DepartmentBuilder

部门的排序,即部门在其同级部门的展示顺序

示例值:100

func (*DepartmentBuilder) ParentDepartmentId

func (builder *DepartmentBuilder) ParentDepartmentId(parentDepartmentId string) *DepartmentBuilder

父部门的ID;;* 在根部门下创建新部门,该参数值为 “0”

示例值:D067

func (*DepartmentBuilder) PrimaryMemberCount added in v3.0.20

func (builder *DepartmentBuilder) PrimaryMemberCount(primaryMemberCount int) *DepartmentBuilder

部门下主属用户的个数

示例值:100

func (*DepartmentBuilder) Status

func (builder *DepartmentBuilder) Status(status *DepartmentStatus) *DepartmentBuilder

部门状态

示例值:

func (*DepartmentBuilder) UnitIds

func (builder *DepartmentBuilder) UnitIds(unitIds []string) *DepartmentBuilder

部门单位自定义ID列表,当前只支持一个

示例值:custom_unit_id

type DepartmentCount

type DepartmentCount struct {
	DepartmentId          *string `json:"department_id,omitempty"`           // 部门ID
	DirectDepartmentCount *int    `json:"direct_department_count,omitempty"` // 部门下的直属部门数量
	DirectUserCount       *int    `json:"direct_user_count,omitempty"`       // 部门下的直属成员数量,包含部门负责人
	DepartmentCount       *int    `json:"department_count,omitempty"`        // 部门下所有部门的数量,包含递归的子部门
	UserCount             *int    `json:"user_count,omitempty"`              // 部门下所有成员数,包含递归子部门的成员,包含部门负责人
}

type DepartmentCountBuilder

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

func NewDepartmentCountBuilder

func NewDepartmentCountBuilder() *DepartmentCountBuilder

func (*DepartmentCountBuilder) Build

func (builder *DepartmentCountBuilder) Build() *DepartmentCount

func (*DepartmentCountBuilder) DepartmentCount

func (builder *DepartmentCountBuilder) DepartmentCount(departmentCount int) *DepartmentCountBuilder

部门下所有部门的数量,包含递归的子部门

示例值:

func (*DepartmentCountBuilder) DepartmentId

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

部门ID

示例值:

func (*DepartmentCountBuilder) DirectDepartmentCount

func (builder *DepartmentCountBuilder) DirectDepartmentCount(directDepartmentCount int) *DepartmentCountBuilder

部门下的直属部门数量

示例值:

func (*DepartmentCountBuilder) DirectUserCount

func (builder *DepartmentCountBuilder) DirectUserCount(directUserCount int) *DepartmentCountBuilder

部门下的直属成员数量,包含部门负责人

示例值:

func (*DepartmentCountBuilder) UserCount

func (builder *DepartmentCountBuilder) UserCount(userCount int) *DepartmentCountBuilder

部门下所有成员数,包含递归子部门的成员,包含部门负责人

示例值:

type DepartmentDetail added in v3.0.20

type DepartmentDetail struct {
	DepartmentId   *string             `json:"department_id,omitempty"`   // 部门ID
	DepartmentName *DepartmentPathName `json:"department_name,omitempty"` // 部门名
	DepartmentPath *DepartmentPath     `json:"department_path,omitempty"` // 部门路径
}

type DepartmentDetailBuilder added in v3.0.20

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

func NewDepartmentDetailBuilder added in v3.0.20

func NewDepartmentDetailBuilder() *DepartmentDetailBuilder

func (*DepartmentDetailBuilder) Build added in v3.0.20

func (builder *DepartmentDetailBuilder) Build() *DepartmentDetail

func (*DepartmentDetailBuilder) DepartmentId added in v3.0.20

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

部门ID

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

func (*DepartmentDetailBuilder) DepartmentName added in v3.0.20

func (builder *DepartmentDetailBuilder) DepartmentName(departmentName *DepartmentPathName) *DepartmentDetailBuilder

部门名

示例值:

func (*DepartmentDetailBuilder) DepartmentPath added in v3.0.20

func (builder *DepartmentDetailBuilder) DepartmentPath(departmentPath *DepartmentPath) *DepartmentDetailBuilder

部门路径

示例值:

type DepartmentEvent

type DepartmentEvent struct {
	Name               *string `json:"name,omitempty"`                 // 部门名称
	ParentDepartmentId *string `json:"parent_department_id,omitempty"` // 父部门的部门open_department_id [部门相关ID概念](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)
	DepartmentId       *string `json:"department_id,omitempty"`        // 本部门的department_id [部门相关ID概念](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)
	OpenDepartmentId   *string `json:"open_department_id,omitempty"`   // 部门的open_department_id [部门相关ID概念](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)
	LeaderUserId       *string `json:"leader_user_id,omitempty"`       // 部门主管用户open_id [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	ChatId             *string `json:"chat_id,omitempty"`              // 部门群ID
	Order              *int    `json:"order,omitempty"`                // 部门的排序

	Status          *DepartmentStatus   `json:"status,omitempty"`           // 部门状态
	Leaders         []*DepartmentLeader `json:"leaders,omitempty"`          // 部门负责人
	DepartmentHrbps []*UserId           `json:"department_hrbps,omitempty"` // 部门HRBP
}

type DepartmentEventBuilder

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

func NewDepartmentEventBuilder

func NewDepartmentEventBuilder() *DepartmentEventBuilder

func (*DepartmentEventBuilder) Build

func (builder *DepartmentEventBuilder) Build() *DepartmentEvent

func (*DepartmentEventBuilder) ChatId

func (builder *DepartmentEventBuilder) ChatId(chatId string) *DepartmentEventBuilder

部门群ID

示例值:oc_uiy325uy23bnv48gdf

func (*DepartmentEventBuilder) DepartmentHrbps added in v3.0.15

func (builder *DepartmentEventBuilder) DepartmentHrbps(departmentHrbps []*UserId) *DepartmentEventBuilder

部门HRBP

示例值:

func (*DepartmentEventBuilder) DepartmentId

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

本部门的department_id [部门相关ID概念](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:yd7sa8yf2j

func (*DepartmentEventBuilder) LeaderUserId

func (builder *DepartmentEventBuilder) LeaderUserId(leaderUserId string) *DepartmentEventBuilder

部门主管用户open_id [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:ou_3j1kh45jk18fgh23hf

func (*DepartmentEventBuilder) Leaders added in v3.0.1

func (builder *DepartmentEventBuilder) Leaders(leaders []*DepartmentLeader) *DepartmentEventBuilder

部门负责人

示例值:

func (*DepartmentEventBuilder) Name

部门名称

示例值:测试部门

func (*DepartmentEventBuilder) OpenDepartmentId

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

部门的open_department_id [部门相关ID概念](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:od_j10j52hjksd9g0isdfg43

func (*DepartmentEventBuilder) Order

func (builder *DepartmentEventBuilder) Order(order int) *DepartmentEventBuilder

部门的排序

示例值:100

func (*DepartmentEventBuilder) ParentDepartmentId

func (builder *DepartmentEventBuilder) ParentDepartmentId(parentDepartmentId string) *DepartmentEventBuilder

父部门的部门open_department_id [部门相关ID概念](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:jkfsd89782

func (*DepartmentEventBuilder) Status

部门状态

示例值:

type DepartmentI18nName

type DepartmentI18nName struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 部门的中文名
	JaJp *string `json:"ja_jp,omitempty"` // 部门的日文名
	EnUs *string `json:"en_us,omitempty"` // 部门的英文名
}

type DepartmentI18nNameBuilder

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

func NewDepartmentI18nNameBuilder

func NewDepartmentI18nNameBuilder() *DepartmentI18nNameBuilder

func (*DepartmentI18nNameBuilder) Build

func (*DepartmentI18nNameBuilder) EnUs

部门的英文名

示例值:Demo Name

func (*DepartmentI18nNameBuilder) JaJp

部门的日文名

示例值:デモ名

func (*DepartmentI18nNameBuilder) ZhCn

部门的中文名

示例值:Demo名称

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 DepartmentLeader added in v3.0.1

type DepartmentLeader struct {
	LeaderType *int    `json:"leaderType,omitempty"` // 负责人类型
	LeaderID   *string `json:"leaderID,omitempty"`   // 负责人ID
}

type DepartmentLeaderBuilder added in v3.0.1

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

func NewDepartmentLeaderBuilder added in v3.0.1

func NewDepartmentLeaderBuilder() *DepartmentLeaderBuilder

func (*DepartmentLeaderBuilder) Build added in v3.0.1

func (builder *DepartmentLeaderBuilder) Build() *DepartmentLeader

func (*DepartmentLeaderBuilder) LeaderID added in v3.0.1

func (builder *DepartmentLeaderBuilder) LeaderID(leaderID string) *DepartmentLeaderBuilder

负责人ID

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*DepartmentLeaderBuilder) LeaderType added in v3.0.1

func (builder *DepartmentLeaderBuilder) LeaderType(leaderType int) *DepartmentLeaderBuilder

负责人类型

示例值:1

type DepartmentParent

type DepartmentParent struct {
	DepartmentId *string  `json:"department_id,omitempty"` // 部门ID
	ParentIds    []string `json:"parent_ids,omitempty"`    // 父部门ID列表,从直接父部门到根部门
}

type DepartmentParentBuilder

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

func NewDepartmentParentBuilder

func NewDepartmentParentBuilder() *DepartmentParentBuilder

func (*DepartmentParentBuilder) Build

func (builder *DepartmentParentBuilder) Build() *DepartmentParent

func (*DepartmentParentBuilder) DepartmentId

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

部门ID

示例值:

func (*DepartmentParentBuilder) ParentIds

func (builder *DepartmentParentBuilder) ParentIds(parentIds []string) *DepartmentParentBuilder

父部门ID列表,从直接父部门到根部门

示例值:

type DepartmentPath added in v3.0.20

type DepartmentPath struct {
	DepartmentIds      []string            `json:"department_ids,omitempty"`       // 部门路径IDs
	DepartmentPathName *DepartmentPathName `json:"department_path_name,omitempty"` // 部门路径名字
}

type DepartmentPathBuilder added in v3.0.20

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

func NewDepartmentPathBuilder added in v3.0.20

func NewDepartmentPathBuilder() *DepartmentPathBuilder

func (*DepartmentPathBuilder) Build added in v3.0.20

func (builder *DepartmentPathBuilder) Build() *DepartmentPath

func (*DepartmentPathBuilder) DepartmentIds added in v3.0.20

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

部门路径IDs

示例值:

func (*DepartmentPathBuilder) DepartmentPathName added in v3.0.20

func (builder *DepartmentPathBuilder) DepartmentPathName(departmentPathName *DepartmentPathName) *DepartmentPathBuilder

部门路径名字

示例值:

type DepartmentPathName added in v3.0.20

type DepartmentPathName struct {
	Name     *string             `json:"name,omitempty"`      // 部门名
	I18nName *DepartmentI18nName `json:"i18n_name,omitempty"` // 部门国际化名
}

type DepartmentPathNameBuilder added in v3.0.20

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

func NewDepartmentPathNameBuilder added in v3.0.20

func NewDepartmentPathNameBuilder() *DepartmentPathNameBuilder

func (*DepartmentPathNameBuilder) Build added in v3.0.20

func (*DepartmentPathNameBuilder) I18nName added in v3.0.20

部门国际化名

示例值:

func (*DepartmentPathNameBuilder) Name added in v3.0.20

部门名

示例值:测试部门名1

type DepartmentStatus

type DepartmentStatus struct {
	IsDeleted *bool `json:"is_deleted,omitempty"` // 是否被删除
}

type DepartmentStatusBuilder

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

func NewDepartmentStatusBuilder

func NewDepartmentStatusBuilder() *DepartmentStatusBuilder

func (*DepartmentStatusBuilder) Build

func (builder *DepartmentStatusBuilder) Build() *DepartmentStatus

func (*DepartmentStatusBuilder) IsDeleted

func (builder *DepartmentStatusBuilder) IsDeleted(isDeleted bool) *DepartmentStatusBuilder

是否被删除

示例值:false

type DepartmentUnit

type DepartmentUnit struct {
	UnitId   *string `json:"unit_id,omitempty"`   // 部门单元自定义ID
	UnitType *string `json:"unit_type,omitempty"` // 部门单元类型
	UnitName *string `json:"unit_name,omitempty"` // 部门单元名称
}

type DepartmentUnitBuilder

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

func NewDepartmentUnitBuilder

func NewDepartmentUnitBuilder() *DepartmentUnitBuilder

func (*DepartmentUnitBuilder) Build

func (builder *DepartmentUnitBuilder) Build() *DepartmentUnit

func (*DepartmentUnitBuilder) UnitId

func (builder *DepartmentUnitBuilder) UnitId(unitId string) *DepartmentUnitBuilder

部门单元自定义ID

示例值:

func (*DepartmentUnitBuilder) UnitName

func (builder *DepartmentUnitBuilder) UnitName(unitName string) *DepartmentUnitBuilder

部门单元名称

示例值:

func (*DepartmentUnitBuilder) UnitType

func (builder *DepartmentUnitBuilder) UnitType(unitType string) *DepartmentUnitBuilder

部门单元类型

示例值:

type DynamicGroupExpression added in v3.0.20

type DynamicGroupExpression struct {
	Field    *string  `json:"field,omitempty"`    // 动态用户组表达式的左值,属性名称
	Operator *string  `json:"operator,omitempty"` // 操作符,表示左值进行什么操作
	Value    *string  `json:"value,omitempty"`    // 值,单个结果,用于单值运算,比如:等于操作
	Values   []string `json:"values,omitempty"`   // 值,多个结果,用于多值操作,比如属于
}

type DynamicGroupExpressionBuilder added in v3.0.20

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

func NewDynamicGroupExpressionBuilder added in v3.0.20

func NewDynamicGroupExpressionBuilder() *DynamicGroupExpressionBuilder

func (*DynamicGroupExpressionBuilder) Build added in v3.0.20

func (*DynamicGroupExpressionBuilder) Field added in v3.0.20

动态用户组表达式的左值,属性名称

示例值:user.name

func (*DynamicGroupExpressionBuilder) Operator added in v3.0.20

操作符,表示左值进行什么操作

示例值:-eq

func (*DynamicGroupExpressionBuilder) Value added in v3.0.20

值,单个结果,用于单值运算,比如:等于操作

示例值:value

func (*DynamicGroupExpressionBuilder) Values added in v3.0.20

值,多个结果,用于多值操作,比如属于

示例值:

type DynamicGroupRule added in v3.0.20

type DynamicGroupRule struct {
	DepartmentLevel *string                   `json:"department_level,omitempty"` // 动态用户组匹配部门层级
	Expressions     []*DynamicGroupExpression `json:"expressions,omitempty"`      // 动态用户组规则表达式
	JoinerRule      *string                   `json:"joiner_rule,omitempty"`      // 动态用户组表达式组合关系
	GroupStatus     *string                   `json:"group_status,omitempty"`     // 动态用户组计算状态,只读,创建、更新用户组时不需要填写
}

type DynamicGroupRuleBuilder added in v3.0.20

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

func NewDynamicGroupRuleBuilder added in v3.0.20

func NewDynamicGroupRuleBuilder() *DynamicGroupRuleBuilder

func (*DynamicGroupRuleBuilder) Build added in v3.0.20

func (builder *DynamicGroupRuleBuilder) Build() *DynamicGroupRule

func (*DynamicGroupRuleBuilder) DepartmentLevel added in v3.0.20

func (builder *DynamicGroupRuleBuilder) DepartmentLevel(departmentLevel string) *DynamicGroupRuleBuilder

动态用户组匹配部门层级

示例值:recursive

func (*DynamicGroupRuleBuilder) Expressions added in v3.0.20

func (builder *DynamicGroupRuleBuilder) Expressions(expressions []*DynamicGroupExpression) *DynamicGroupRuleBuilder

动态用户组规则表达式

示例值:

func (*DynamicGroupRuleBuilder) GroupStatus added in v3.0.20

func (builder *DynamicGroupRuleBuilder) GroupStatus(groupStatus string) *DynamicGroupRuleBuilder

动态用户组计算状态,只读,创建、更新用户组时不需要填写

示例值:1

func (*DynamicGroupRuleBuilder) JoinerRule added in v3.0.20

func (builder *DynamicGroupRuleBuilder) JoinerRule(joinerRule string) *DynamicGroupRuleBuilder

动态用户组表达式组合关系

示例值:1 and (2 or 3)

type EmployeeTypeEnum

type EmployeeTypeEnum struct {
	EnumId      *string        `json:"enum_id,omitempty"`      // 枚举值id
	EnumValue   *string        `json:"enum_value,omitempty"`   // 枚举的编号值,创建新的人员类型后,系统生成对应编号。对应[创建用户接口](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/create)中用户信息的employee_type字段值
	Content     *string        `json:"content,omitempty"`      // 枚举内容
	EnumType    *int           `json:"enum_type,omitempty"`    // 类型
	EnumStatus  *int           `json:"enum_status,omitempty"`  // 使用状态
	I18nContent []*I18nContent `json:"i18n_content,omitempty"` // i18n定义
}

type EmployeeTypeEnumBuilder

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

func NewEmployeeTypeEnumBuilder

func NewEmployeeTypeEnumBuilder() *EmployeeTypeEnumBuilder

func (*EmployeeTypeEnumBuilder) Build

func (builder *EmployeeTypeEnumBuilder) Build() *EmployeeTypeEnum

func (*EmployeeTypeEnumBuilder) Content

func (builder *EmployeeTypeEnumBuilder) Content(content string) *EmployeeTypeEnumBuilder

枚举内容

示例值:专家

func (*EmployeeTypeEnumBuilder) EnumId

func (builder *EmployeeTypeEnumBuilder) EnumId(enumId string) *EmployeeTypeEnumBuilder

枚举值id

示例值:exGeIjow7zIqWMy+ONkFxA==

func (*EmployeeTypeEnumBuilder) EnumStatus

func (builder *EmployeeTypeEnumBuilder) EnumStatus(enumStatus int) *EmployeeTypeEnumBuilder

使用状态

示例值:1

func (*EmployeeTypeEnumBuilder) EnumType

func (builder *EmployeeTypeEnumBuilder) EnumType(enumType int) *EmployeeTypeEnumBuilder

类型

示例值:2

func (*EmployeeTypeEnumBuilder) EnumValue

func (builder *EmployeeTypeEnumBuilder) EnumValue(enumValue string) *EmployeeTypeEnumBuilder

枚举的编号值,创建新的人员类型后,系统生成对应编号。对应[创建用户接口](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/create)中用户信息的employee_type字段值

示例值:2

func (*EmployeeTypeEnumBuilder) I18nContent

func (builder *EmployeeTypeEnumBuilder) I18nContent(i18nContent []*I18nContent) *EmployeeTypeEnumBuilder

i18n定义

示例值:

type FindByDepartmentUserIterator

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

func (*FindByDepartmentUserIterator) Next

func (iterator *FindByDepartmentUserIterator) Next() (bool, *User, error)

func (*FindByDepartmentUserIterator) NextPageToken

func (iterator *FindByDepartmentUserIterator) NextPageToken() *string

type FindByDepartmentUserReq

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

type FindByDepartmentUserReqBuilder

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

func NewFindByDepartmentUserReqBuilder

func NewFindByDepartmentUserReqBuilder() *FindByDepartmentUserReqBuilder

func (*FindByDepartmentUserReqBuilder) Build

func (*FindByDepartmentUserReqBuilder) DepartmentId

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

填写该字段表示获取该部门下用户,必填。根部门的部门ID为0。;;ID值与查询参数中的department_id_type 对应。;;不同 ID 的说明与department_id的获取方式参见 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:od-xxxxxxxxxxxxx

func (*FindByDepartmentUserReqBuilder) DepartmentIdType

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

此次调用中使用的部门ID的类型;;部门ID类型的区别参见[部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:open_department_id

func (*FindByDepartmentUserReqBuilder) Limit

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

func (*FindByDepartmentUserReqBuilder) PageSize

分页大小

示例值:10

func (*FindByDepartmentUserReqBuilder) PageToken

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

示例值:AQD9/Rn9eij9Pm39ED40/dk53s4Ebp882DYfFaPFbz00L4CMZJrqGdzNyc8BcZtDbwVUvRmQTvyMYicnGWrde9X56TgdBuS+JKiSIkdexPw=

func (*FindByDepartmentUserReqBuilder) UserIdType

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

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

示例值:

type FindByDepartmentUserResp

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

func (*FindByDepartmentUserResp) Success

func (resp *FindByDepartmentUserResp) Success() bool

type FindByDepartmentUserRespData

type FindByDepartmentUserRespData struct {
	HasMore   *bool   `json:"has_more,omitempty"`   // 是否有下一页数据
	PageToken *string `json:"page_token,omitempty"` // 下一页分页的token
	Items     []*User `json:"items,omitempty"`      // 用户信息列表
}

type FunctionalRole added in v3.0.18

type FunctionalRole struct {
	RoleId   *string `json:"role_id,omitempty"`   // 角色内部ID
	RoleName *string `json:"role_name,omitempty"` // 角色名称
}

type FunctionalRoleBuilder added in v3.0.18

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

func NewFunctionalRoleBuilder added in v3.0.18

func NewFunctionalRoleBuilder() *FunctionalRoleBuilder

func (*FunctionalRoleBuilder) Build added in v3.0.18

func (builder *FunctionalRoleBuilder) Build() *FunctionalRole

func (*FunctionalRoleBuilder) RoleId added in v3.0.18

func (builder *FunctionalRoleBuilder) RoleId(roleId string) *FunctionalRoleBuilder

角色内部ID

示例值:7vrj3vk70xk7v5r

func (*FunctionalRoleBuilder) RoleName added in v3.0.18

func (builder *FunctionalRoleBuilder) RoleName(roleName string) *FunctionalRoleBuilder

角色名称

示例值:测试角色

type FunctionalRoleMember added in v3.0.18

type FunctionalRoleMember struct {
	UserId        *string  `json:"user_id,omitempty"`        // 成员ID
	ScopeType     *string  `json:"scope_type,omitempty"`     // 管理范围的类型
	DepartmentIds []string `json:"department_ids,omitempty"` // 表示该角色成员的管理范围,scope_type为“指定范围”时,返回该值
}

type FunctionalRoleMemberBuilder added in v3.0.18

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

func NewFunctionalRoleMemberBuilder added in v3.0.18

func NewFunctionalRoleMemberBuilder() *FunctionalRoleMemberBuilder

func (*FunctionalRoleMemberBuilder) Build added in v3.0.18

func (*FunctionalRoleMemberBuilder) DepartmentIds added in v3.0.18

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

表示该角色成员的管理范围,scope_type为“指定范围”时,返回该值

示例值:

func (*FunctionalRoleMemberBuilder) ScopeType added in v3.0.18

func (builder *FunctionalRoleMemberBuilder) ScopeType(scopeType string) *FunctionalRoleMemberBuilder

管理范围的类型

示例值:All

func (*FunctionalRoleMemberBuilder) UserId added in v3.0.18

成员ID

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

type FunctionalRoleMemberResult added in v3.0.18

type FunctionalRoleMemberResult struct {
	UserId *string `json:"user_id,omitempty"` // 用户ID
	Reason *int    `json:"reason,omitempty"`  // 成员处理结果
}

type FunctionalRoleMemberResultBuilder added in v3.0.18

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

func NewFunctionalRoleMemberResultBuilder added in v3.0.18

func NewFunctionalRoleMemberResultBuilder() *FunctionalRoleMemberResultBuilder

func (*FunctionalRoleMemberResultBuilder) Build added in v3.0.18

func (*FunctionalRoleMemberResultBuilder) Reason added in v3.0.18

成员处理结果

示例值:1

func (*FunctionalRoleMemberResultBuilder) UserId added in v3.0.18

用户ID

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

type GetDepartmentReq

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

type GetDepartmentReqBuilder

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

func NewGetDepartmentReqBuilder

func NewGetDepartmentReqBuilder() *GetDepartmentReqBuilder

func (*GetDepartmentReqBuilder) Build

func (builder *GetDepartmentReqBuilder) Build() *GetDepartmentReq

func (*GetDepartmentReqBuilder) DepartmentId

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

需要获取的部门ID;;不同 ID 的说明及获取方式 参见[部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:D096

func (*GetDepartmentReqBuilder) DepartmentIdType

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

此次调用中使用的部门ID的类型;;不同 ID 的说明 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:open_department_id

func (*GetDepartmentReqBuilder) UserIdType

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

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

示例值:

type GetDepartmentResp

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

func (*GetDepartmentResp) Success

func (resp *GetDepartmentResp) Success() bool

type GetDepartmentRespData

type GetDepartmentRespData struct {
	Department *Department `json:"department,omitempty"` // 部门信息
}

type GetFunctionalRoleMemberReq added in v3.0.19

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

type GetFunctionalRoleMemberReqBuilder added in v3.0.19

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

func NewGetFunctionalRoleMemberReqBuilder added in v3.0.19

func NewGetFunctionalRoleMemberReqBuilder() *GetFunctionalRoleMemberReqBuilder

func (*GetFunctionalRoleMemberReqBuilder) Build added in v3.0.19

func (*GetFunctionalRoleMemberReqBuilder) DepartmentIdType added in v3.0.19

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

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

示例值:open_department_id

func (*GetFunctionalRoleMemberReqBuilder) MemberId added in v3.0.19

要查询的角色内成员ID

示例值:od-123456

func (*GetFunctionalRoleMemberReqBuilder) RoleId added in v3.0.19

角色的唯一标识,单租户下唯一

示例值:7vrj3vk70xk7v5r

func (*GetFunctionalRoleMemberReqBuilder) UserIdType added in v3.0.19

用户 ID 类型

示例值:open_id

type GetFunctionalRoleMemberResp added in v3.0.19

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

func (*GetFunctionalRoleMemberResp) Success added in v3.0.19

func (resp *GetFunctionalRoleMemberResp) Success() bool

type GetFunctionalRoleMemberRespData added in v3.0.19

type GetFunctionalRoleMemberRespData struct {
	Member *FunctionalRoleMember `json:"member,omitempty"` // 成员的管理范围
}

type GetGroupReq

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

type GetGroupReqBuilder

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

func NewGetGroupReqBuilder

func NewGetGroupReqBuilder() *GetGroupReqBuilder

func (*GetGroupReqBuilder) Build

func (builder *GetGroupReqBuilder) Build() *GetGroupReq

func (*GetGroupReqBuilder) DepartmentIdType added in v3.0.20

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

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

示例值:open_department_id

func (*GetGroupReqBuilder) GroupId

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

用户组ID

示例值:g193821

func (*GetGroupReqBuilder) UserIdType added in v3.0.20

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

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

示例值:open_id

type GetGroupResp

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

func (*GetGroupResp) Success

func (resp *GetGroupResp) Success() bool

type GetGroupRespData

type GetGroupRespData struct {
	Group *Group `json:"group,omitempty"` // 用户组详情
}

type GetJobFamilyReq added in v3.0.19

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

type GetJobFamilyReqBuilder added in v3.0.19

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

func NewGetJobFamilyReqBuilder added in v3.0.19

func NewGetJobFamilyReqBuilder() *GetJobFamilyReqBuilder

func (*GetJobFamilyReqBuilder) Build added in v3.0.19

func (builder *GetJobFamilyReqBuilder) Build() *GetJobFamilyReq

func (*GetJobFamilyReqBuilder) JobFamilyId added in v3.0.19

func (builder *GetJobFamilyReqBuilder) JobFamilyId(jobFamilyId string) *GetJobFamilyReqBuilder

序列ID

示例值:mga5oa8ayjlp9rb

type GetJobFamilyResp added in v3.0.19

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

func (*GetJobFamilyResp) Success added in v3.0.19

func (resp *GetJobFamilyResp) Success() bool

type GetJobFamilyRespData added in v3.0.19

type GetJobFamilyRespData struct {
	JobFamily *JobFamily `json:"job_family,omitempty"` // 序列信息
}

type GetJobLevelReq added in v3.0.19

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

type GetJobLevelReqBuilder added in v3.0.19

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

func NewGetJobLevelReqBuilder added in v3.0.19

func NewGetJobLevelReqBuilder() *GetJobLevelReqBuilder

func (*GetJobLevelReqBuilder) Build added in v3.0.19

func (builder *GetJobLevelReqBuilder) Build() *GetJobLevelReq

func (*GetJobLevelReqBuilder) JobLevelId added in v3.0.19

func (builder *GetJobLevelReqBuilder) JobLevelId(jobLevelId string) *GetJobLevelReqBuilder

职级ID

示例值:mga5oa8ayjlp9rb

type GetJobLevelResp added in v3.0.19

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

func (*GetJobLevelResp) Success added in v3.0.19

func (resp *GetJobLevelResp) Success() bool

type GetJobLevelRespData added in v3.0.19

type GetJobLevelRespData struct {
	JobLevel *JobLevel `json:"job_level,omitempty"` // 职级信息
}

type GetJobTitleReq added in v3.0.25

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

type GetJobTitleReqBuilder added in v3.0.25

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

func NewGetJobTitleReqBuilder added in v3.0.25

func NewGetJobTitleReqBuilder() *GetJobTitleReqBuilder

func (*GetJobTitleReqBuilder) Build added in v3.0.25

func (builder *GetJobTitleReqBuilder) Build() *GetJobTitleReq

func (*GetJobTitleReqBuilder) JobTitleId added in v3.0.25

func (builder *GetJobTitleReqBuilder) JobTitleId(jobTitleId string) *GetJobTitleReqBuilder

职务ID

示例值:dd39369b19b9

type GetJobTitleResp added in v3.0.25

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

func (*GetJobTitleResp) Success added in v3.0.25

func (resp *GetJobTitleResp) Success() bool

type GetJobTitleRespData added in v3.0.25

type GetJobTitleRespData struct {
	JobTitle *JobTitle `json:"job_title,omitempty"` // 职务信息
}

type GetUnitReq

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

type GetUnitReqBuilder

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

func NewGetUnitReqBuilder

func NewGetUnitReqBuilder() *GetUnitReqBuilder

func (*GetUnitReqBuilder) Build

func (builder *GetUnitReqBuilder) Build() *GetUnitReq

func (*GetUnitReqBuilder) UnitId

func (builder *GetUnitReqBuilder) UnitId(unitId string) *GetUnitReqBuilder

单位ID

示例值:BU121

type GetUnitResp

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

func (*GetUnitResp) Success

func (resp *GetUnitResp) Success() bool

type GetUnitRespData

type GetUnitRespData struct {
	Unit *Unit `json:"unit,omitempty"` // 单位信息
}

type GetUserReq

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

type GetUserReqBuilder

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

func NewGetUserReqBuilder

func NewGetUserReqBuilder() *GetUserReqBuilder

func (*GetUserReqBuilder) Build

func (builder *GetUserReqBuilder) Build() *GetUserReq

func (*GetUserReqBuilder) DepartmentIdType

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

此次调用中使用的部门ID的类型;;不同 ID 的说明 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:open_department_id

func (*GetUserReqBuilder) UserId

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

用户ID,类型需要与查询参数中的user_id_type保持一致。;;例如user_id_type=open_id,user_id的类型需为open_id;;不同ID的说明参见 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:7be5fg9a

func (*GetUserReqBuilder) UserIdType

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

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

示例值:

type GetUserResp

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

func (*GetUserResp) Success

func (resp *GetUserResp) Success() bool

type GetUserRespData

type GetUserRespData struct {
	User *User `json:"user,omitempty"` // 用户信息
}

type GetWorkCityReq added in v3.0.25

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

type GetWorkCityReqBuilder added in v3.0.25

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

func NewGetWorkCityReqBuilder added in v3.0.25

func NewGetWorkCityReqBuilder() *GetWorkCityReqBuilder

func (*GetWorkCityReqBuilder) Build added in v3.0.25

func (builder *GetWorkCityReqBuilder) Build() *GetWorkCityReq

func (*GetWorkCityReqBuilder) WorkCityId added in v3.0.25

func (builder *GetWorkCityReqBuilder) WorkCityId(workCityId string) *GetWorkCityReqBuilder

工作城市ID

示例值:dd39369b19b9

type GetWorkCityResp added in v3.0.25

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

func (*GetWorkCityResp) Success added in v3.0.25

func (resp *GetWorkCityResp) Success() bool

type GetWorkCityRespData added in v3.0.25

type GetWorkCityRespData struct {
	WorkCity *WorkCity `json:"work_city,omitempty"` // 工作城市信息
}

type Group

type Group struct {
	Id                    *string `json:"id,omitempty"`                      // 用户组ID
	Name                  *string `json:"name,omitempty"`                    // 用户组名字
	Description           *string `json:"description,omitempty"`             // 用户组描述
	MemberUserCount       *int    `json:"member_user_count,omitempty"`       // 用户组成员中用户的数量
	MemberDepartmentCount *int    `json:"member_department_count,omitempty"` // 普通用户组成员中部门的数量,动态用户组成员中没有部门。
	Type                  *int    `json:"type,omitempty"`                    // 用户组的类型

	GroupId *string `json:"group_id,omitempty"` // 自定义用户组ID
}

type GroupBuilder

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

func NewGroupBuilder

func NewGroupBuilder() *GroupBuilder

func (*GroupBuilder) Build

func (builder *GroupBuilder) Build() *Group

func (*GroupBuilder) Description

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

用户组描述

示例值:IT 外包组,需要对该组人群进行细颗粒度权限管控。

func (*GroupBuilder) GroupId added in v3.0.22

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

自定义用户组ID

示例值:4ba51ab38648f9cd

func (*GroupBuilder) Id

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

用户组ID

示例值:g193821

func (*GroupBuilder) MemberDepartmentCount

func (builder *GroupBuilder) MemberDepartmentCount(memberDepartmentCount int) *GroupBuilder

普通用户组成员中部门的数量,动态用户组成员中没有部门。

示例值:0

func (*GroupBuilder) MemberUserCount

func (builder *GroupBuilder) MemberUserCount(memberUserCount int) *GroupBuilder

用户组成员中用户的数量

示例值:2

func (*GroupBuilder) Name

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

用户组名字

示例值:IT 外包组

func (*GroupBuilder) Type added in v3.0.20

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

用户组的类型

示例值:1

type GroupEvent

type GroupEvent struct {
	UserGroupId *string `json:"user_group_id,omitempty"` // 用户组的自定义ID
	Name        *string `json:"name,omitempty"`          // 用户组的名称
}

type GroupEventBuilder

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

func NewGroupEventBuilder

func NewGroupEventBuilder() *GroupEventBuilder

func (*GroupEventBuilder) Build

func (builder *GroupEventBuilder) Build() *GroupEvent

func (*GroupEventBuilder) Name

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

用户组的名称

示例值:

func (*GroupEventBuilder) UserGroupId

func (builder *GroupEventBuilder) UserGroupId(userGroupId string) *GroupEventBuilder

用户组的自定义ID

示例值:

type GroupVisibleScope added in v3.0.20

type GroupVisibleScope struct {
	VisibleScopeType   *string  `json:"visible_scope_type,omitempty"`  // 可见范围的 id 类型,包用户、部门两类
	VisibleUsers       []string `json:"visible_users,omitempty"`       // 指定可见用户组的用户 ID列表
	VisibleDepartments []string `json:"visible_departments,omitempty"` // 指定可见用户组的部门 ID 列表
	SceneTypes         []int    `json:"scene_types,omitempty"`         // 用户组可用范围
}

type GroupVisibleScopeBuilder added in v3.0.20

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

func NewGroupVisibleScopeBuilder added in v3.0.20

func NewGroupVisibleScopeBuilder() *GroupVisibleScopeBuilder

func (*GroupVisibleScopeBuilder) Build added in v3.0.20

func (builder *GroupVisibleScopeBuilder) Build() *GroupVisibleScope

func (*GroupVisibleScopeBuilder) SceneTypes added in v3.0.20

func (builder *GroupVisibleScopeBuilder) SceneTypes(sceneTypes []int) *GroupVisibleScopeBuilder

用户组可用范围

示例值:

func (*GroupVisibleScopeBuilder) VisibleDepartments added in v3.0.20

func (builder *GroupVisibleScopeBuilder) VisibleDepartments(visibleDepartments []string) *GroupVisibleScopeBuilder

指定可见用户组的部门 ID 列表

示例值:

func (*GroupVisibleScopeBuilder) VisibleScopeType added in v3.0.20

func (builder *GroupVisibleScopeBuilder) VisibleScopeType(visibleScopeType string) *GroupVisibleScopeBuilder

可见范围的 id 类型,包用户、部门两类

示例值:invisible

func (*GroupVisibleScopeBuilder) VisibleUsers added in v3.0.20

func (builder *GroupVisibleScopeBuilder) VisibleUsers(visibleUsers []string) *GroupVisibleScopeBuilder

指定可见用户组的用户 ID列表

示例值:

type I18nContent

type I18nContent struct {
	Locale *string `json:"locale,omitempty"` // 语言版本
	Value  *string `json:"value,omitempty"`  // 字段名
}

type I18nContentBuilder

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

func NewI18nContentBuilder

func NewI18nContentBuilder() *I18nContentBuilder

func (*I18nContentBuilder) Build

func (builder *I18nContentBuilder) Build() *I18nContent

func (*I18nContentBuilder) Locale

func (builder *I18nContentBuilder) Locale(locale string) *I18nContentBuilder

语言版本

示例值:zh_cn

func (*I18nContentBuilder) Value

func (builder *I18nContentBuilder) Value(value string) *I18nContentBuilder

字段名

示例值:专家

type JobFamily added in v3.0.15

type JobFamily struct {
	Name              *string        `json:"name,omitempty"`                 // 序列名称。1-100字符,支持中、英文及符号
	Description       *string        `json:"description,omitempty"`          // 序列描述,描述序列详情信息
	ParentJobFamilyId *string        `json:"parent_job_family_id,omitempty"` // 上级序列ID。需是该租户的序列ID列表中的值,对应唯一的序列名称。
	Status            *bool          `json:"status,omitempty"`               // 是否启用
	I18nName          []*I18nContent `json:"i18n_name,omitempty"`            // 多语言序列名称
	I18nDescription   []*I18nContent `json:"i18n_description,omitempty"`     // 多语言描述
	JobFamilyId       *string        `json:"job_family_id,omitempty"`        // 职级序列ID
}

type JobFamilyBuilder added in v3.0.15

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

func NewJobFamilyBuilder added in v3.0.15

func NewJobFamilyBuilder() *JobFamilyBuilder

func (*JobFamilyBuilder) Build added in v3.0.15

func (builder *JobFamilyBuilder) Build() *JobFamily

func (*JobFamilyBuilder) Description added in v3.0.15

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

序列描述,描述序列详情信息

示例值:负责产品策略制定的相关工作

func (*JobFamilyBuilder) I18nDescription added in v3.0.15

func (builder *JobFamilyBuilder) I18nDescription(i18nDescription []*I18nContent) *JobFamilyBuilder

多语言描述

示例值:

func (*JobFamilyBuilder) I18nName added in v3.0.15

func (builder *JobFamilyBuilder) I18nName(i18nName []*I18nContent) *JobFamilyBuilder

多语言序列名称

示例值:

func (*JobFamilyBuilder) JobFamilyId added in v3.0.15

func (builder *JobFamilyBuilder) JobFamilyId(jobFamilyId string) *JobFamilyBuilder

职级序列ID

示例值:mga5oa8ayjlp9rb

func (*JobFamilyBuilder) Name added in v3.0.15

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

序列名称。1-100字符,支持中、英文及符号

示例值:产品

func (*JobFamilyBuilder) ParentJobFamilyId added in v3.0.15

func (builder *JobFamilyBuilder) ParentJobFamilyId(parentJobFamilyId string) *JobFamilyBuilder

上级序列ID。需是该租户的序列ID列表中的值,对应唯一的序列名称。

示例值:mga5oa8ayjlp9rb

func (*JobFamilyBuilder) Status added in v3.0.15

func (builder *JobFamilyBuilder) Status(status bool) *JobFamilyBuilder

是否启用

示例值:true 表示启用, false表示未启用

type JobLevel added in v3.0.15

type JobLevel struct {
	Name            *string        `json:"name,omitempty"`             // 职级名称
	Description     *string        `json:"description,omitempty"`      // 职级描述
	Order           *int           `json:"order,omitempty"`            // 职级的排序,可填入自然数100-100000的数值,系统按照数值大小从小到大排序。不填写该字段时,默认新增排序在当前职级列表中最后位(最大值)
	Status          *bool          `json:"status,omitempty"`           // 是否启用
	JobLevelId      *string        `json:"job_level_id,omitempty"`     // 职级ID
	I18nName        []*I18nContent `json:"i18n_name,omitempty"`        // 多语言名称
	I18nDescription []*I18nContent `json:"i18n_description,omitempty"` // 多语言描述
}

type JobLevelBuilder added in v3.0.15

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

func NewJobLevelBuilder added in v3.0.15

func NewJobLevelBuilder() *JobLevelBuilder

func (*JobLevelBuilder) Build added in v3.0.15

func (builder *JobLevelBuilder) Build() *JobLevel

func (*JobLevelBuilder) Description added in v3.0.15

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

职级描述

示例值:公司内部中高级职称,有一定专业技术能力的人员

func (*JobLevelBuilder) I18nDescription added in v3.0.15

func (builder *JobLevelBuilder) I18nDescription(i18nDescription []*I18nContent) *JobLevelBuilder

多语言描述

示例值:

func (*JobLevelBuilder) I18nName added in v3.0.15

func (builder *JobLevelBuilder) I18nName(i18nName []*I18nContent) *JobLevelBuilder

多语言名称

示例值:

func (*JobLevelBuilder) JobLevelId added in v3.0.15

func (builder *JobLevelBuilder) JobLevelId(jobLevelId string) *JobLevelBuilder

职级ID

示例值:mga5oa8ayjlp9rb

func (*JobLevelBuilder) Name added in v3.0.15

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

职级名称

示例值:高级专家

func (*JobLevelBuilder) Order added in v3.0.15

func (builder *JobLevelBuilder) Order(order int) *JobLevelBuilder

职级的排序,可填入自然数100-100000的数值,系统按照数值大小从小到大排序。不填写该字段时,默认新增排序在当前职级列表中最后位(最大值)

示例值:200

func (*JobLevelBuilder) Status added in v3.0.15

func (builder *JobLevelBuilder) Status(status bool) *JobLevelBuilder

是否启用

示例值:true

type JobTitle added in v3.0.20

type JobTitle struct {
	JobTitleId *string        `json:"job_title_id,omitempty"` // 职务ID
	Name       *string        `json:"name,omitempty"`         // 职务名称。1-100字符,支持中、英文及符号
	I18nName   []*I18nContent `json:"i18n_name,omitempty"`    // 多语言职务名称
	Status     *bool          `json:"status,omitempty"`       // 是否启用
}

type JobTitleBuilder added in v3.0.20

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

func NewJobTitleBuilder added in v3.0.20

func NewJobTitleBuilder() *JobTitleBuilder

func (*JobTitleBuilder) Build added in v3.0.20

func (builder *JobTitleBuilder) Build() *JobTitle

func (*JobTitleBuilder) I18nName added in v3.0.20

func (builder *JobTitleBuilder) I18nName(i18nName []*I18nContent) *JobTitleBuilder

多语言职务名称

示例值:

func (*JobTitleBuilder) JobTitleId added in v3.0.20

func (builder *JobTitleBuilder) JobTitleId(jobTitleId string) *JobTitleBuilder

职务ID

示例值:b5565c46b749

func (*JobTitleBuilder) Name added in v3.0.20

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

职务名称。1-100字符,支持中、英文及符号

示例值:高级工程师

func (*JobTitleBuilder) Status added in v3.0.20

func (builder *JobTitleBuilder) Status(status bool) *JobTitleBuilder

是否启用

示例值:true 表示启用, false表示未启用

type ListCustomAttrIterator

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

func (*ListCustomAttrIterator) Next

func (iterator *ListCustomAttrIterator) Next() (bool, *CustomAttr, error)

func (*ListCustomAttrIterator) NextPageToken

func (iterator *ListCustomAttrIterator) NextPageToken() *string

type ListCustomAttrReq

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

type ListCustomAttrReqBuilder

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

func NewListCustomAttrReqBuilder

func NewListCustomAttrReqBuilder() *ListCustomAttrReqBuilder

func (*ListCustomAttrReqBuilder) Build

func (builder *ListCustomAttrReqBuilder) Build() *ListCustomAttrReq

func (*ListCustomAttrReqBuilder) Limit

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

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

func (*ListCustomAttrReqBuilder) PageSize

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

分页大小

示例值:10

func (*ListCustomAttrReqBuilder) PageToken

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

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

示例值:AQD9/Rn9eij9Pm39ED40/RYU5lvOM4s6zgbeeNNaWd%2BVKwAsoreeRWk0J2noGvJy

type ListCustomAttrResp

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

func (*ListCustomAttrResp) Success

func (resp *ListCustomAttrResp) Success() bool

type ListCustomAttrRespData

type ListCustomAttrRespData struct {
	Items     []*CustomAttr `json:"items,omitempty"`      // 自定义字段定义
	PageToken *string       `json:"page_token,omitempty"` // 分页标记
	HasMore   *bool         `json:"has_more,omitempty"`   // 是否还有下一页
}

type ListDepartmentIterator

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

func (*ListDepartmentIterator) Next

func (iterator *ListDepartmentIterator) Next() (bool, *Department, error)

func (*ListDepartmentIterator) NextPageToken

func (iterator *ListDepartmentIterator) NextPageToken() *string

type ListDepartmentReq

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

type ListDepartmentReqBuilder

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

func NewListDepartmentReqBuilder

func NewListDepartmentReqBuilder() *ListDepartmentReqBuilder

func (*ListDepartmentReqBuilder) Build

func (builder *ListDepartmentReqBuilder) Build() *ListDepartmentReq

func (*ListDepartmentReqBuilder) DepartmentIdType

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

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

示例值:

func (*ListDepartmentReqBuilder) FetchChild

func (builder *ListDepartmentReqBuilder) FetchChild(fetchChild bool) *ListDepartmentReqBuilder

是否递归获取子部门

示例值:false

func (*ListDepartmentReqBuilder) Limit

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

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

func (*ListDepartmentReqBuilder) PageSize

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

分页大小

示例值:10

func (*ListDepartmentReqBuilder) PageToken

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

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

示例值:5bc498db4617

func (*ListDepartmentReqBuilder) ParentDepartmentId

func (builder *ListDepartmentReqBuilder) ParentDepartmentId(parentDepartmentId string) *ListDepartmentReqBuilder

父部门的ID,填上获取部门下所有子部门

示例值:od-80884c92e43e

func (*ListDepartmentReqBuilder) UserIdType

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

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

示例值:

type ListDepartmentResp

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

func (*ListDepartmentResp) Success

func (resp *ListDepartmentResp) Success() bool

type ListDepartmentRespData

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

type ListDepartmentUnitReq

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

type ListDepartmentUnitReqBuilder

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

func NewListDepartmentUnitReqBuilder

func NewListDepartmentUnitReqBuilder() *ListDepartmentUnitReqBuilder

func (*ListDepartmentUnitReqBuilder) Build

func (*ListDepartmentUnitReqBuilder) DepartmentIdType

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

此次调用中预获取的部门ID的类型

示例值:open_department_id

func (*ListDepartmentUnitReqBuilder) PageSize

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

分页大小

示例值:50

func (*ListDepartmentUnitReqBuilder) PageToken

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

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

示例值:AQD9/Rn9eij9Pm39ED40/dk53s4Ebp882DYfFaPFbz00L4CMZJrqGdzNyc8BcZtDbwVUvRmQTvyMYicnGWrde9X56TgdBuS+JKiSIkdexPw=

func (*ListDepartmentUnitReqBuilder) UnitId

单位ID

示例值:BU121

type ListDepartmentUnitResp

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

func (*ListDepartmentUnitResp) Success

func (resp *ListDepartmentUnitResp) Success() bool

type ListDepartmentUnitRespData

type ListDepartmentUnitRespData struct {
	Departmentlist []*UnitDepartment `json:"departmentlist,omitempty"` // 单位绑定的部门列表
	HasMore        *bool             `json:"has_more,omitempty"`       // 是否还有分页数据
	PageToken      *string           `json:"page_token,omitempty"`     // 下次分页请求标记
}

type ListEmployeeTypeEnumIterator

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

func (*ListEmployeeTypeEnumIterator) Next

func (*ListEmployeeTypeEnumIterator) NextPageToken

func (iterator *ListEmployeeTypeEnumIterator) NextPageToken() *string

type ListEmployeeTypeEnumReq

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

type ListEmployeeTypeEnumReqBuilder

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

func NewListEmployeeTypeEnumReqBuilder

func NewListEmployeeTypeEnumReqBuilder() *ListEmployeeTypeEnumReqBuilder

func (*ListEmployeeTypeEnumReqBuilder) Build

func (*ListEmployeeTypeEnumReqBuilder) Limit

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

func (*ListEmployeeTypeEnumReqBuilder) PageSize

分页大小

示例值:10

func (*ListEmployeeTypeEnumReqBuilder) PageToken

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

示例值:3

type ListEmployeeTypeEnumResp

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

func (*ListEmployeeTypeEnumResp) Success

func (resp *ListEmployeeTypeEnumResp) Success() bool

type ListEmployeeTypeEnumRespData

type ListEmployeeTypeEnumRespData struct {
	Items     []*EmployeeTypeEnum `json:"items,omitempty"`      // 枚举数据
	HasMore   *bool               `json:"has_more,omitempty"`   // 是否下一页
	PageToken *string             `json:"page_token,omitempty"` // 分页token
}

type ListFunctionalRoleMemberIterator added in v3.0.19

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

func (*ListFunctionalRoleMemberIterator) Next added in v3.0.19

func (*ListFunctionalRoleMemberIterator) NextPageToken added in v3.0.19

func (iterator *ListFunctionalRoleMemberIterator) NextPageToken() *string

type ListFunctionalRoleMemberReq added in v3.0.19

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

type ListFunctionalRoleMemberReqBuilder added in v3.0.19

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

func NewListFunctionalRoleMemberReqBuilder added in v3.0.19

func NewListFunctionalRoleMemberReqBuilder() *ListFunctionalRoleMemberReqBuilder

func (*ListFunctionalRoleMemberReqBuilder) Build added in v3.0.19

func (*ListFunctionalRoleMemberReqBuilder) DepartmentIdType added in v3.0.19

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

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

示例值:open_department_id

func (*ListFunctionalRoleMemberReqBuilder) Limit added in v3.0.19

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

func (*ListFunctionalRoleMemberReqBuilder) PageSize added in v3.0.19

分页大小

示例值:50

func (*ListFunctionalRoleMemberReqBuilder) PageToken added in v3.0.19

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

示例值:dawdewd

func (*ListFunctionalRoleMemberReqBuilder) RoleId added in v3.0.19

角色的唯一标识,单租户下唯一

示例值:7vrj3vk70xk7v5r

func (*ListFunctionalRoleMemberReqBuilder) UserIdType added in v3.0.19

用户 ID 类型

示例值:open_id

type ListFunctionalRoleMemberResp added in v3.0.19

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

func (*ListFunctionalRoleMemberResp) Success added in v3.0.19

func (resp *ListFunctionalRoleMemberResp) Success() bool

type ListFunctionalRoleMemberRespData added in v3.0.19

type ListFunctionalRoleMemberRespData struct {
	Members   []*FunctionalRoleMember `json:"members,omitempty"`    // 角色成员列表
	PageToken *string                 `json:"page_token,omitempty"` // 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
	HasMore   *bool                   `json:"has_more,omitempty"`   // 是否还有值
}

type ListJobFamilyIterator added in v3.0.19

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

func (*ListJobFamilyIterator) Next added in v3.0.19

func (iterator *ListJobFamilyIterator) Next() (bool, *JobFamily, error)

func (*ListJobFamilyIterator) NextPageToken added in v3.0.19

func (iterator *ListJobFamilyIterator) NextPageToken() *string

type ListJobFamilyReq added in v3.0.19

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

type ListJobFamilyReqBuilder added in v3.0.19

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

func NewListJobFamilyReqBuilder added in v3.0.19

func NewListJobFamilyReqBuilder() *ListJobFamilyReqBuilder

func (*ListJobFamilyReqBuilder) Build added in v3.0.19

func (builder *ListJobFamilyReqBuilder) Build() *ListJobFamilyReq

func (*ListJobFamilyReqBuilder) Limit added in v3.0.19

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

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

func (*ListJobFamilyReqBuilder) Name added in v3.0.19

序列名称,传入该字段时,可查询指定序列名称对应的序列信息

示例值:2-2

func (*ListJobFamilyReqBuilder) PageSize added in v3.0.19

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

分页大小

示例值:10

func (*ListJobFamilyReqBuilder) PageToken added in v3.0.19

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

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

示例值:"3"

type ListJobFamilyResp added in v3.0.19

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

func (*ListJobFamilyResp) Success added in v3.0.19

func (resp *ListJobFamilyResp) Success() bool

type ListJobFamilyRespData added in v3.0.19

type ListJobFamilyRespData struct {
	Items     []*JobFamily `json:"items,omitempty"`      // 序列信息
	PageToken *string      `json:"page_token,omitempty"` // 下一页分页的token
	HasMore   *bool        `json:"has_more,omitempty"`   // 是否有下一页数据
}

type ListJobLevelIterator added in v3.0.19

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

func (*ListJobLevelIterator) Next added in v3.0.19

func (iterator *ListJobLevelIterator) Next() (bool, *JobLevel, error)

func (*ListJobLevelIterator) NextPageToken added in v3.0.19

func (iterator *ListJobLevelIterator) NextPageToken() *string

type ListJobLevelReq added in v3.0.19

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

type ListJobLevelReqBuilder added in v3.0.19

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

func NewListJobLevelReqBuilder added in v3.0.19

func NewListJobLevelReqBuilder() *ListJobLevelReqBuilder

func (*ListJobLevelReqBuilder) Build added in v3.0.19

func (builder *ListJobLevelReqBuilder) Build() *ListJobLevelReq

func (*ListJobLevelReqBuilder) Limit added in v3.0.19

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

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

func (*ListJobLevelReqBuilder) Name added in v3.0.19

传入该字段时,可查询指定职级名称对应的职级信息。

示例值:高级

func (*ListJobLevelReqBuilder) PageSize added in v3.0.19

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

分页大小

示例值:10

func (*ListJobLevelReqBuilder) PageToken added in v3.0.19

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

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

示例值:"3"

type ListJobLevelResp added in v3.0.19

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

func (*ListJobLevelResp) Success added in v3.0.19

func (resp *ListJobLevelResp) Success() bool

type ListJobLevelRespData added in v3.0.19

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

type ListJobTitleIterator added in v3.0.25

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

func (*ListJobTitleIterator) Next added in v3.0.25

func (iterator *ListJobTitleIterator) Next() (bool, *JobTitle, error)

func (*ListJobTitleIterator) NextPageToken added in v3.0.25

func (iterator *ListJobTitleIterator) NextPageToken() *string

type ListJobTitleReq added in v3.0.25

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

type ListJobTitleReqBuilder added in v3.0.25

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

func NewListJobTitleReqBuilder added in v3.0.25

func NewListJobTitleReqBuilder() *ListJobTitleReqBuilder

func (*ListJobTitleReqBuilder) Build added in v3.0.25

func (builder *ListJobTitleReqBuilder) Build() *ListJobTitleReq

func (*ListJobTitleReqBuilder) Limit added in v3.0.25

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

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

func (*ListJobTitleReqBuilder) PageSize added in v3.0.25

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

分页大小

示例值:10

func (*ListJobTitleReqBuilder) PageToken added in v3.0.25

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

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

示例值:"xxx"

type ListJobTitleResp added in v3.0.25

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

func (*ListJobTitleResp) Success added in v3.0.25

func (resp *ListJobTitleResp) Success() bool

type ListJobTitleRespData added in v3.0.25

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

type ListScopeReq

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

type ListScopeReqBuilder

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

func NewListScopeReqBuilder

func NewListScopeReqBuilder() *ListScopeReqBuilder

func (*ListScopeReqBuilder) Build

func (builder *ListScopeReqBuilder) Build() *ListScopeReq

func (*ListScopeReqBuilder) DepartmentIdType

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

返回值的部门ID的类型

示例值:department_id

func (*ListScopeReqBuilder) PageSize

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

分页大小,返回值所有列表长度之和不超过这个值

示例值:50

func (*ListScopeReqBuilder) PageToken

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

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

示例值:AQD9/Rn9eij9Pm39ED40/dk53s4Ebp882DYfFaPFbz00L4CMZJrqGdzNyc8BcZtDbwVUvRmQTvyMYicnGWrde9X56TgdBuS+JKiSIkdexPw=

func (*ListScopeReqBuilder) UserIdType

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

返回值的用户ID的类型

示例值:user_id

type ListScopeResp

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

func (*ListScopeResp) Success

func (resp *ListScopeResp) Success() bool

type ListScopeRespData

type ListScopeRespData struct {
	DepartmentIds []string `json:"department_ids,omitempty"` // 已授权部门列表,授权范围为全员可见时返回的是当前企业的所有一级部门列表
	UserIds       []string `json:"user_ids,omitempty"`       // 已授权用户列表,应用申请了获取用户user_id 权限时返回;当授权范围为全员可见时返回的是当前企业所有顶级部门用户列表
	GroupIds      []string `json:"group_ids,omitempty"`      // 已授权的用户组,授权范围为全员可见时返回的是当前企业所有用户组
	HasMore       *bool    `json:"has_more,omitempty"`       // 是否还有更多项
	PageToken     *string  `json:"page_token,omitempty"`     // 分页标记,当 has_more 为 true 时,会同时返回新的 page_token
}

type ListUnitReq

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

type ListUnitReqBuilder

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

func NewListUnitReqBuilder

func NewListUnitReqBuilder() *ListUnitReqBuilder

func (*ListUnitReqBuilder) Build

func (builder *ListUnitReqBuilder) Build() *ListUnitReq

func (*ListUnitReqBuilder) PageSize

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

分页大小,默认50,取值范围 1-100

示例值:50

func (*ListUnitReqBuilder) PageToken

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

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

示例值:AQD9/Rn9eij9Pm39ED40/dk53s4Ebp882DYfFaPFbz00L4CMZJrqGdzNyc8BcZtDbwVUvRmQTvyMYicnGWrde9X56TgdBuS+JKiSIkdexPw=

type ListUnitResp

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

func (*ListUnitResp) Success

func (resp *ListUnitResp) Success() bool

type ListUnitRespData

type ListUnitRespData struct {
	Unitlist  []*Unit `json:"unitlist,omitempty"`   // 单位列表
	HasMore   *bool   `json:"has_more,omitempty"`   // 是否还有分页数据
	PageToken *string `json:"page_token,omitempty"` // 分页下次调用的page_token值
}

type ListUserIterator

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

func (*ListUserIterator) Next

func (iterator *ListUserIterator) Next() (bool, *User, error)

func (*ListUserIterator) NextPageToken

func (iterator *ListUserIterator) NextPageToken() *string

type ListUserReq

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

type ListUserReqBuilder

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

func NewListUserReqBuilder

func NewListUserReqBuilder() *ListUserReqBuilder

func (*ListUserReqBuilder) Build

func (builder *ListUserReqBuilder) Build() *ListUserReq

func (*ListUserReqBuilder) DepartmentId

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

填写该字段表示获取部门下所有用户,选填。

示例值:

func (*ListUserReqBuilder) DepartmentIdType

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

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

示例值:

func (*ListUserReqBuilder) Limit

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

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

func (*ListUserReqBuilder) PageSize

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

分页大小

示例值:

func (*ListUserReqBuilder) PageToken

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

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

示例值:

func (*ListUserReqBuilder) UserIdType

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

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

示例值:

type ListUserResp

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

func (*ListUserResp) Success

func (resp *ListUserResp) Success() bool

type ListUserRespData

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

type ListWorkCityIterator added in v3.0.25

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

func (*ListWorkCityIterator) Next added in v3.0.25

func (iterator *ListWorkCityIterator) Next() (bool, *WorkCity, error)

func (*ListWorkCityIterator) NextPageToken added in v3.0.25

func (iterator *ListWorkCityIterator) NextPageToken() *string

type ListWorkCityReq added in v3.0.25

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

type ListWorkCityReqBuilder added in v3.0.25

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

func NewListWorkCityReqBuilder added in v3.0.25

func NewListWorkCityReqBuilder() *ListWorkCityReqBuilder

func (*ListWorkCityReqBuilder) Build added in v3.0.25

func (builder *ListWorkCityReqBuilder) Build() *ListWorkCityReq

func (*ListWorkCityReqBuilder) Limit added in v3.0.25

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

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

func (*ListWorkCityReqBuilder) PageSize added in v3.0.25

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

分页大小

示例值:10

func (*ListWorkCityReqBuilder) PageToken added in v3.0.25

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

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

示例值:"xxx"

type ListWorkCityResp added in v3.0.25

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

func (*ListWorkCityResp) Success added in v3.0.25

func (resp *ListWorkCityResp) Success() bool

type ListWorkCityRespData added in v3.0.25

type ListWorkCityRespData struct {
	Items     []*WorkCity `json:"items,omitempty"`      // 工作城市列表
	PageToken *string     `json:"page_token,omitempty"` // 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token
	HasMore   *bool       `json:"has_more,omitempty"`   // 是否还有更多项
}

type MemberBelongGroupReq

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

type MemberBelongGroupReqBuilder

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

func NewMemberBelongGroupReqBuilder

func NewMemberBelongGroupReqBuilder() *MemberBelongGroupReqBuilder

func (*MemberBelongGroupReqBuilder) Build

func (*MemberBelongGroupReqBuilder) GroupType

func (builder *MemberBelongGroupReqBuilder) GroupType(groupType int) *MemberBelongGroupReqBuilder

欲获取的用户组类型

示例值:1

func (*MemberBelongGroupReqBuilder) MemberId

func (builder *MemberBelongGroupReqBuilder) MemberId(memberId string) *MemberBelongGroupReqBuilder

成员ID

示例值:u287xj12

func (*MemberBelongGroupReqBuilder) MemberIdType

func (builder *MemberBelongGroupReqBuilder) MemberIdType(memberIdType string) *MemberBelongGroupReqBuilder

成员ID类型

示例值:open_id

func (*MemberBelongGroupReqBuilder) PageSize

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

分页查询大小

示例值:500

func (*MemberBelongGroupReqBuilder) PageToken

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

分页查询Token

示例值:AQD9/Rn9eij9Pm39ED40/dk53s4Ebp882DYfFaPFbz00L4CMZJrqGdzNyc8BcZtDbwVUvRmQTvyMYicnGWrde9X56TgdBuS+JKiSIkdexPw=

type MemberBelongGroupResp

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

func (*MemberBelongGroupResp) Success

func (resp *MemberBelongGroupResp) Success() bool

type MemberBelongGroupRespData

type MemberBelongGroupRespData struct {
	GroupList []string `json:"group_list,omitempty"` // 用户组ID列表
	PageToken *string  `json:"page_token,omitempty"` // 分页查询Token
	HasMore   *bool    `json:"has_more,omitempty"`   // 是否有更多结果
}

type MemberResult

type MemberResult struct {
	MemberId *string `json:"member_id,omitempty"` // 成员ID
	Code     *int    `json:"code,omitempty"`      // 结果响应码,0表示成功
}

type MemberResultBuilder

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

func NewMemberResultBuilder

func NewMemberResultBuilder() *MemberResultBuilder

func (*MemberResultBuilder) Build

func (builder *MemberResultBuilder) Build() *MemberResult

func (*MemberResultBuilder) Code

func (builder *MemberResultBuilder) Code(code int) *MemberResultBuilder

结果响应码,0表示成功

示例值:0

func (*MemberResultBuilder) MemberId

func (builder *MemberResultBuilder) MemberId(memberId string) *MemberResultBuilder

成员ID

示例值:u287xj12

type Memberlist

type Memberlist struct {
	MemberId     *string `json:"member_id,omitempty"`      // 成员ID
	MemberType   *string `json:"member_type,omitempty"`    // 用户组成员的类型,取值为 user或department。
	MemberIdType *string `json:"member_id_type,omitempty"` // 当member_type为user时,member_id_type表示user_id_type,可选值为open_id, union_id, user_id。仅在请求参数中有效,响应体中不会返回此参数。
}

type MemberlistBuilder

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

func NewMemberlistBuilder

func NewMemberlistBuilder() *MemberlistBuilder

func (*MemberlistBuilder) Build

func (builder *MemberlistBuilder) Build() *Memberlist

func (*MemberlistBuilder) MemberId

func (builder *MemberlistBuilder) MemberId(memberId string) *MemberlistBuilder

成员ID

示例值:u287xj12

func (*MemberlistBuilder) MemberIdType

func (builder *MemberlistBuilder) MemberIdType(memberIdType string) *MemberlistBuilder

当member_type为user时,member_id_type表示user_id_type,可选值为open_id, union_id, user_id。仅在请求参数中有效,响应体中不会返回此参数。

示例值:user_id

func (*MemberlistBuilder) MemberType

func (builder *MemberlistBuilder) MemberType(memberType string) *MemberlistBuilder

用户组成员的类型,取值为 user或department。

示例值:user

type NotificationOption

type NotificationOption struct {
	Channels []string `json:"channels,omitempty"` // 通道列表
	Language *string  `json:"language,omitempty"` // 语言类型
}

type NotificationOptionBuilder

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

func NewNotificationOptionBuilder

func NewNotificationOptionBuilder() *NotificationOptionBuilder

func (*NotificationOptionBuilder) Build

func (*NotificationOptionBuilder) Channels

func (builder *NotificationOptionBuilder) Channels(channels []string) *NotificationOptionBuilder

通道列表

示例值:["sms", "email"]

func (*NotificationOptionBuilder) Language

func (builder *NotificationOptionBuilder) Language(language string) *NotificationOptionBuilder

语言类型

示例值:zh-CN

type OldDepartmentObject

type OldDepartmentObject struct {
	Status           *DepartmentStatus `json:"status,omitempty"`             // 部门状态
	OpenDepartmentId *string           `json:"open_department_id,omitempty"` // 部门open_id
}

type OldDepartmentObjectBuilder

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

func NewOldDepartmentObjectBuilder

func NewOldDepartmentObjectBuilder() *OldDepartmentObjectBuilder

func (*OldDepartmentObjectBuilder) Build

func (*OldDepartmentObjectBuilder) OpenDepartmentId

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

部门open_id

示例值:od-xxxxxxxx

func (*OldDepartmentObjectBuilder) Status

部门状态

示例值:

type OldUserObject

type OldUserObject struct {
	DepartmentIds []string `json:"department_ids,omitempty"` // 用户所属部门的ID列表
	OpenId        *string  `json:"open_id,omitempty"`        // 用户open_id
}

type OldUserObjectBuilder

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

func NewOldUserObjectBuilder

func NewOldUserObjectBuilder() *OldUserObjectBuilder

func (*OldUserObjectBuilder) Build

func (builder *OldUserObjectBuilder) Build() *OldUserObject

func (*OldUserObjectBuilder) DepartmentIds

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

用户所属部门的ID列表

示例值:

func (*OldUserObjectBuilder) OpenId

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

用户open_id

示例值:ou_xxxxxxxxxx

type P1ContactScopeChangedV3

type P1ContactScopeChangedV3 struct {
	*larkevent.EventBase
	*larkevent.EventReq
	Event *P1ContactScopeChangedV3Data `json:"event"`
}

func (*P1ContactScopeChangedV3) RawReq

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

type P1ContactScopeChangedV3Data

type P1ContactScopeChangedV3Data struct {
	Type      string `json:"type"`       // 事件类型
	AppID     string `json:"app_id"`     // 应用ID
	TenantKey string `json:"tenant_key"` //企业标识
}

type P1ContactScopeChangedV3Handler

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

func (*P1ContactScopeChangedV3Handler) Event

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

func (*P1ContactScopeChangedV3Handler) Handle

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

type P1DepartmentChangedV3

type P1DepartmentChangedV3 struct {
	*larkevent.EventBase
	*larkevent.EventReq
	Event *P1DepartmentChangedV3Data `json:"event"`
}

func (*P1DepartmentChangedV3) RawReq

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

type P1DepartmentChangedV3Data

type P1DepartmentChangedV3Data struct {
	Type             string `json:"type"`               // 事件类型,包括 dept_add, dept_update, dept_delete
	AppID            string `json:"app_id"`             // 应用ID
	TenantKey        string `json:"tenant_key"`         // 企业标识
	OpenID           string `json:"open_id,omitempty"`  // 员工对此应用的唯一标识,同一员工对不同应用的open_id不同
	OpenDepartmentId string `json:"open_department_id"` // 部门的Id,已废弃
}

type P1DepartmentChangedV3Handler

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

func NewP1DepartmentChangedV3Handler

func NewP1DepartmentChangedV3Handler(handler func(context.Context, *P1DepartmentChangedV3) error) *P1DepartmentChangedV3Handler

func (*P1DepartmentChangedV3Handler) Event

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

func (*P1DepartmentChangedV3Handler) Handle

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

type P1UserChangedV3

type P1UserChangedV3 struct {
	*larkevent.EventBase
	*larkevent.EventReq
	Event *P1UserChangedV3Data `json:"event"`
}

func (*P1UserChangedV3) RawReq

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

type P1UserChangedV3Data

type P1UserChangedV3Data struct {
	Type       string `json:"type"`               // 事件类型
	AppID      string `json:"app_id"`             // 应用ID
	TenantKey  string `json:"tenant_key"`         // 企业标识
	OpenID     string `json:"open_id,omitempty"`  // 员工对此应用的唯一标识,同一员工对不同应用的open_id不同
	EmployeeId string `json:"employee_id"`        // 即“用户ID”,仅企业自建应用会返回
	UnionId    string `json:"union_id,omitempty"` // 员工对此ISV的唯一标识,同一员工对同一个ISV名下所有应用的union_id相同
}

type P1UserChangedV3Handler

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

func NewP1UserChangedV3Handler

func NewP1UserChangedV3Handler(handler func(context.Context, *P1UserChangedV3) error) *P1UserChangedV3Handler

func (*P1UserChangedV3Handler) Event

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

func (*P1UserChangedV3Handler) Handle

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

type P1UserStatusChangedV3

type P1UserStatusChangedV3 struct {
	*larkevent.EventBase
	*larkevent.EventReq
	Event *P1UserStatusChangedV3Data `json:"event"`
}

func (*P1UserStatusChangedV3) RawReq

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

type P1UserStatusChangedV3Data

type P1UserStatusChangedV3Data struct {
	Type          string          `json:"type"`               // 事件类型
	AppID         string          `json:"app_id"`             // 应用ID
	TenantKey     string          `json:"tenant_key"`         // 企业标识
	OpenID        string          `json:"open_id,omitempty"`  // 员工对此应用的唯一标识,同一员工对不同应用的open_id不同
	EmployeeId    string          `json:"employee_id"`        // 即“用户ID”,仅企业自建应用会返回
	UnionId       string          `json:"union_id,omitempty"` // 员工对此ISV的唯一标识,同一员工对同一个ISV名下所有应用的union_id相同
	BeforeStatus  *P1UserStatusV3 `json:"before_status"`      // 变化前的状态
	CurrentStatus *P1UserStatusV3 `json:"current_status"`     // 变化后的状态
	ChangeTime    string          `json:"change_time"`        // 状态更新的时间
}

type P1UserStatusChangedV3Handler

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

func NewP1UserStatusChangedV3Handler

func NewP1UserStatusChangedV3Handler(handler func(context.Context, *P1UserStatusChangedV3) error) *P1UserStatusChangedV3Handler

func (*P1UserStatusChangedV3Handler) Event

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

func (*P1UserStatusChangedV3Handler) Handle

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

type P1UserStatusV3

type P1UserStatusV3 struct {
	IsActive   bool `json:"is_active"`   // 账号是否已激活
	IsFrozen   bool `json:"is_frozen"`   // 账号是否冻结
	IsResigned bool `json:"is_resigned"` // 是否离职
}

type P2CustomAttrEventUpdatedV3

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

func (*P2CustomAttrEventUpdatedV3) RawReq

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

type P2CustomAttrEventUpdatedV3Data

type P2CustomAttrEventUpdatedV3Data struct {
	Object    *CustomAttrEvent `json:"object,omitempty"`     // 变更后信息
	OldObject *CustomAttrEvent `json:"old_object,omitempty"` // 变更前信息
}

type P2CustomAttrEventUpdatedV3Handler

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

消息处理器定义

func (*P2CustomAttrEventUpdatedV3Handler) Event

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

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

func (*P2CustomAttrEventUpdatedV3Handler) Handle

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

回调开发者注册的handle

type P2DepartmentCreatedV3

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

func (*P2DepartmentCreatedV3) RawReq

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

type P2DepartmentCreatedV3Data

type P2DepartmentCreatedV3Data struct {
	Object *DepartmentEvent `json:"object,omitempty"` // 部门信息
}

type P2DepartmentCreatedV3Handler

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

消息处理器定义

func NewP2DepartmentCreatedV3Handler

func NewP2DepartmentCreatedV3Handler(handler func(context.Context, *P2DepartmentCreatedV3) error) *P2DepartmentCreatedV3Handler

func (*P2DepartmentCreatedV3Handler) Event

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

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

func (*P2DepartmentCreatedV3Handler) Handle

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

回调开发者注册的handle

type P2DepartmentDeletedV3

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

func (*P2DepartmentDeletedV3) RawReq

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

type P2DepartmentDeletedV3Data

type P2DepartmentDeletedV3Data struct {
	Object    *DepartmentEvent     `json:"object,omitempty"`     // 部门信息
	OldObject *OldDepartmentObject `json:"old_object,omitempty"` // 部门被删除前的信息
}

type P2DepartmentDeletedV3Handler

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

消息处理器定义

func NewP2DepartmentDeletedV3Handler

func NewP2DepartmentDeletedV3Handler(handler func(context.Context, *P2DepartmentDeletedV3) error) *P2DepartmentDeletedV3Handler

func (*P2DepartmentDeletedV3Handler) Event

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

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

func (*P2DepartmentDeletedV3Handler) Handle

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

回调开发者注册的handle

type P2DepartmentUpdatedV3

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

func (*P2DepartmentUpdatedV3) RawReq

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

type P2DepartmentUpdatedV3Data

type P2DepartmentUpdatedV3Data struct {
	Object    *DepartmentEvent `json:"object,omitempty"`     // 更新后信息
	OldObject *DepartmentEvent `json:"old_object,omitempty"` // 更新前信息
}

type P2DepartmentUpdatedV3Handler

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

消息处理器定义

func NewP2DepartmentUpdatedV3Handler

func NewP2DepartmentUpdatedV3Handler(handler func(context.Context, *P2DepartmentUpdatedV3) error) *P2DepartmentUpdatedV3Handler

func (*P2DepartmentUpdatedV3Handler) Event

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

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

func (*P2DepartmentUpdatedV3Handler) Handle

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

回调开发者注册的handle

type P2EmployeeTypeEnumActivedV3

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

func (*P2EmployeeTypeEnumActivedV3) RawReq

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

type P2EmployeeTypeEnumActivedV3Data

type P2EmployeeTypeEnumActivedV3Data struct {
	OldEnum *EmployeeTypeEnum `json:"old_enum,omitempty"` // 旧枚举类型
	NewEnum *EmployeeTypeEnum `json:"new_enum,omitempty"` // 新枚举类型
}

type P2EmployeeTypeEnumActivedV3Handler

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

消息处理器定义

func (*P2EmployeeTypeEnumActivedV3Handler) Event

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

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

func (*P2EmployeeTypeEnumActivedV3Handler) Handle

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

回调开发者注册的handle

type P2EmployeeTypeEnumCreatedV3

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

func (*P2EmployeeTypeEnumCreatedV3) RawReq

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

type P2EmployeeTypeEnumCreatedV3Data

type P2EmployeeTypeEnumCreatedV3Data struct {
	NewEnum *EmployeeTypeEnum `json:"new_enum,omitempty"` // 新枚举类型
}

type P2EmployeeTypeEnumCreatedV3Handler

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

消息处理器定义

func (*P2EmployeeTypeEnumCreatedV3Handler) Event

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

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

func (*P2EmployeeTypeEnumCreatedV3Handler) Handle

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

回调开发者注册的handle

type P2EmployeeTypeEnumDeactivatedV3

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

func (*P2EmployeeTypeEnumDeactivatedV3) RawReq

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

type P2EmployeeTypeEnumDeactivatedV3Data

type P2EmployeeTypeEnumDeactivatedV3Data struct {
	OldEnum *EmployeeTypeEnum `json:"old_enum,omitempty"` // 旧枚举类型
	NewEnum *EmployeeTypeEnum `json:"new_enum,omitempty"` // 新枚举类型
}

type P2EmployeeTypeEnumDeactivatedV3Handler

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

消息处理器定义

func (*P2EmployeeTypeEnumDeactivatedV3Handler) Event

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

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

func (*P2EmployeeTypeEnumDeactivatedV3Handler) Handle

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

回调开发者注册的handle

type P2EmployeeTypeEnumDeletedV3

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

func (*P2EmployeeTypeEnumDeletedV3) RawReq

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

type P2EmployeeTypeEnumDeletedV3Data

type P2EmployeeTypeEnumDeletedV3Data struct {
	OldEnum *EmployeeTypeEnum `json:"old_enum,omitempty"` // 旧枚举类型
}

type P2EmployeeTypeEnumDeletedV3Handler

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

消息处理器定义

func (*P2EmployeeTypeEnumDeletedV3Handler) Event

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

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

func (*P2EmployeeTypeEnumDeletedV3Handler) Handle

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

回调开发者注册的handle

type P2EmployeeTypeEnumUpdatedV3

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

func (*P2EmployeeTypeEnumUpdatedV3) RawReq

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

type P2EmployeeTypeEnumUpdatedV3Data

type P2EmployeeTypeEnumUpdatedV3Data struct {
	OldEnum *EmployeeTypeEnum `json:"old_enum,omitempty"` // 旧枚举类型
	NewEnum *EmployeeTypeEnum `json:"new_enum,omitempty"` // 新枚举类型
}

type P2EmployeeTypeEnumUpdatedV3Handler

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

消息处理器定义

func (*P2EmployeeTypeEnumUpdatedV3Handler) Event

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

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

func (*P2EmployeeTypeEnumUpdatedV3Handler) Handle

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

回调开发者注册的handle

type P2ScopeUpdatedV3

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

func (*P2ScopeUpdatedV3) RawReq

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

type P2ScopeUpdatedV3Data

type P2ScopeUpdatedV3Data struct {
	Added   *Scope `json:"added,omitempty"`   // 当通讯录范围权限变更时,新增的对象
	Removed *Scope `json:"removed,omitempty"` // 当通讯录范围权限发生变更时,移除的对象
}

type P2ScopeUpdatedV3Handler

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

消息处理器定义

func NewP2ScopeUpdatedV3Handler

func NewP2ScopeUpdatedV3Handler(handler func(context.Context, *P2ScopeUpdatedV3) error) *P2ScopeUpdatedV3Handler

func (*P2ScopeUpdatedV3Handler) Event

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

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

func (*P2ScopeUpdatedV3Handler) Handle

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

回调开发者注册的handle

type P2UserCreatedV3

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

func (*P2UserCreatedV3) RawReq

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

type P2UserCreatedV3Data

type P2UserCreatedV3Data struct {
	Object *UserEvent `json:"object,omitempty"` // 事件信息
}

type P2UserCreatedV3Handler

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

消息处理器定义

func NewP2UserCreatedV3Handler

func NewP2UserCreatedV3Handler(handler func(context.Context, *P2UserCreatedV3) error) *P2UserCreatedV3Handler

func (*P2UserCreatedV3Handler) Event

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

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

func (*P2UserCreatedV3Handler) Handle

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

回调开发者注册的handle

type P2UserDeletedV3

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

func (*P2UserDeletedV3) RawReq

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

type P2UserDeletedV3Data

type P2UserDeletedV3Data struct {
	Object    *UserEvent     `json:"object,omitempty"`     // 员工信息
	OldObject *OldUserObject `json:"old_object,omitempty"` // 删除前信息
}

type P2UserDeletedV3Handler

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

消息处理器定义

func NewP2UserDeletedV3Handler

func NewP2UserDeletedV3Handler(handler func(context.Context, *P2UserDeletedV3) error) *P2UserDeletedV3Handler

func (*P2UserDeletedV3Handler) Event

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

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

func (*P2UserDeletedV3Handler) Handle

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

回调开发者注册的handle

type P2UserUpdatedV3

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

func (*P2UserUpdatedV3) RawReq

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

type P2UserUpdatedV3Data

type P2UserUpdatedV3Data struct {
	Object    *UserEvent `json:"object,omitempty"`     // 变更后信息
	OldObject *UserEvent `json:"old_object,omitempty"` // 变更前信息,body中只包含有变更的字段
}

type P2UserUpdatedV3Handler

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

消息处理器定义

func NewP2UserUpdatedV3Handler

func NewP2UserUpdatedV3Handler(handler func(context.Context, *P2UserUpdatedV3) error) *P2UserUpdatedV3Handler

func (*P2UserUpdatedV3Handler) Event

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

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

func (*P2UserUpdatedV3Handler) Handle

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

回调开发者注册的handle

type ParentDepartmentIterator

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

func (*ParentDepartmentIterator) Next

func (iterator *ParentDepartmentIterator) Next() (bool, *Department, error)

func (*ParentDepartmentIterator) NextPageToken

func (iterator *ParentDepartmentIterator) NextPageToken() *string

type ParentDepartmentReq

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

type ParentDepartmentReqBuilder

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

func NewParentDepartmentReqBuilder

func NewParentDepartmentReqBuilder() *ParentDepartmentReqBuilder

func (*ParentDepartmentReqBuilder) Build

func (*ParentDepartmentReqBuilder) DepartmentId

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

部门ID

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

func (*ParentDepartmentReqBuilder) DepartmentIdType

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

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

示例值:open_department_id

func (*ParentDepartmentReqBuilder) Limit

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

func (*ParentDepartmentReqBuilder) PageSize

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

分页大小

示例值:10

func (*ParentDepartmentReqBuilder) PageToken

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

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

示例值:AQD9/Rn9eij9Pm39ED40/RD/cIFmu77WxpxPB/2oHfQLZ%2BG8JG6tK7%2BZnHiT7COhD2hMSICh/eBl7cpzU6JEC3J7COKNe4jrQ8ExwBCR

func (*ParentDepartmentReqBuilder) UserIdType

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

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

示例值:

type ParentDepartmentResp

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

func (*ParentDepartmentResp) Success

func (resp *ParentDepartmentResp) Success() bool

type ParentDepartmentRespData

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

type PatchDepartmentReq

type PatchDepartmentReq struct {
	Department *Department `body:""`
	// contains filtered or unexported fields
}

type PatchDepartmentReqBuilder

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

func NewPatchDepartmentReqBuilder

func NewPatchDepartmentReqBuilder() *PatchDepartmentReqBuilder

func (*PatchDepartmentReqBuilder) Build

func (*PatchDepartmentReqBuilder) Department

func (builder *PatchDepartmentReqBuilder) Department(department *Department) *PatchDepartmentReqBuilder

该接口用于更新通讯录中部门的信息。

func (*PatchDepartmentReqBuilder) DepartmentId

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

部门ID,需要与查询参数中传入的department_id_type类型保持一致。;;注意:除需要满足正则规则外,同时不能以od-开头

示例值:D096

func (*PatchDepartmentReqBuilder) DepartmentIdType

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

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

示例值:open_department_id

func (*PatchDepartmentReqBuilder) UserIdType

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

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

示例值:

type PatchDepartmentResp

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

func (*PatchDepartmentResp) Success

func (resp *PatchDepartmentResp) Success() bool

type PatchDepartmentRespData

type PatchDepartmentRespData struct {
	Department *Department `json:"department,omitempty"` // 部门信息
}

type PatchGroupReq

type PatchGroupReq struct {
	Group *Group `body:""`
	// contains filtered or unexported fields
}

type PatchGroupReqBuilder

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

func NewPatchGroupReqBuilder

func NewPatchGroupReqBuilder() *PatchGroupReqBuilder

func (*PatchGroupReqBuilder) Build

func (builder *PatchGroupReqBuilder) Build() *PatchGroupReq

func (*PatchGroupReqBuilder) DepartmentIdType added in v3.0.20

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

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

示例值:open_department_id

func (*PatchGroupReqBuilder) Group added in v3.0.22

func (builder *PatchGroupReqBuilder) Group(group *Group) *PatchGroupReqBuilder

使用该接口更新用户组信息,请注意更新用户组时应用的通讯录权限范围需为“全部员工”,否则会更新失败。[点击了解通讯录权限范围](https://open.feishu.cn/document/ukTMukTMukTM/uETNz4SM1MjLxUzM/v3/guides/scope_authority)。

func (*PatchGroupReqBuilder) GroupId

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

用户组ID

示例值:g187131

func (*PatchGroupReqBuilder) UserIdType added in v3.0.20

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

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

示例值:open_id

type PatchGroupResp

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

func (*PatchGroupResp) Success

func (resp *PatchGroupResp) Success() bool

type PatchUnitPathReqBodyBuilder

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

func NewPatchUnitPathReqBodyBuilder

func NewPatchUnitPathReqBodyBuilder() *PatchUnitPathReqBodyBuilder

func (*PatchUnitPathReqBodyBuilder) Build

func (builder *PatchUnitPathReqBodyBuilder) Build() (*PatchUnitReqBody, error)

func (*PatchUnitPathReqBodyBuilder) Name

单位的名字

示例值:消费者事业部

type PatchUnitReq

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

type PatchUnitReqBody

type PatchUnitReqBody struct {
	Name *string `json:"name,omitempty"` // 单位的名字
}

type PatchUnitReqBodyBuilder

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

func NewPatchUnitReqBodyBuilder

func NewPatchUnitReqBodyBuilder() *PatchUnitReqBodyBuilder

func (*PatchUnitReqBodyBuilder) Build

func (builder *PatchUnitReqBodyBuilder) Build() *PatchUnitReqBody

func (*PatchUnitReqBodyBuilder) Name

单位的名字

示例值:消费者事业部

type PatchUnitReqBuilder

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

func NewPatchUnitReqBuilder

func NewPatchUnitReqBuilder() *PatchUnitReqBuilder

func (*PatchUnitReqBuilder) Body

调用该接口,需要有更新单位的权限。注意:单位功能属于旗舰版付费功能,企业需开通对应版本才可以修改单位

func (*PatchUnitReqBuilder) Build

func (builder *PatchUnitReqBuilder) Build() *PatchUnitReq

func (*PatchUnitReqBuilder) UnitId

func (builder *PatchUnitReqBuilder) UnitId(unitId string) *PatchUnitReqBuilder

单位ID

示例值:BU121

type PatchUnitResp

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

func (*PatchUnitResp) Success

func (resp *PatchUnitResp) Success() bool

type PatchUserReq

type PatchUserReq struct {
	User *User `body:""`
	// contains filtered or unexported fields
}

type PatchUserReqBuilder

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

func NewPatchUserReqBuilder

func NewPatchUserReqBuilder() *PatchUserReqBuilder

func (*PatchUserReqBuilder) Build

func (builder *PatchUserReqBuilder) Build() *PatchUserReq

func (*PatchUserReqBuilder) DepartmentIdType

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

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

示例值:open_department_id

func (*PatchUserReqBuilder) User

func (builder *PatchUserReqBuilder) User(user *User) *PatchUserReqBuilder

该接口用于更新通讯录中用户的字段,未传递的参数不会更新。

func (*PatchUserReqBuilder) UserId

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

用户ID,需要与查询参数中的user_id_type类型保持一致。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*PatchUserReqBuilder) UserIdType

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

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

示例值:

type PatchUserResp

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

func (*PatchUserResp) Success

func (resp *PatchUserResp) Success() bool

type PatchUserRespData

type PatchUserRespData struct {
	User *User `json:"user,omitempty"` // 用户信息
}

type ProductI18nName added in v3.0.18

type ProductI18nName struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 席位中文名
	JaJp *string `json:"ja_jp,omitempty"` // 席位日文名
	EnUs *string `json:"en_us,omitempty"` // 席位英文名
}

type ProductI18nNameBuilder added in v3.0.18

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

func NewProductI18nNameBuilder added in v3.0.18

func NewProductI18nNameBuilder() *ProductI18nNameBuilder

func (*ProductI18nNameBuilder) Build added in v3.0.18

func (builder *ProductI18nNameBuilder) Build() *ProductI18nName

func (*ProductI18nNameBuilder) EnUs added in v3.0.18

席位英文名

示例值:en_name

func (*ProductI18nNameBuilder) JaJp added in v3.0.18

席位日文名

示例值:ja_jp_name

func (*ProductI18nNameBuilder) ZhCn added in v3.0.18

席位中文名

示例值:zh_cn_name

type RemoveGroupMemberPathReqBodyBuilder

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

func NewRemoveGroupMemberPathReqBodyBuilder

func NewRemoveGroupMemberPathReqBodyBuilder() *RemoveGroupMemberPathReqBodyBuilder

func (*RemoveGroupMemberPathReqBodyBuilder) Build

func (*RemoveGroupMemberPathReqBodyBuilder) MemberId

操作移除的用户组成员ID

示例值:xj82871k

func (*RemoveGroupMemberPathReqBodyBuilder) MemberIdType

当member_type =user时候,member_id_type表示user_id_type,枚举值为open_id, union_id, user_id

示例值:open_id

func (*RemoveGroupMemberPathReqBodyBuilder) MemberType

用户组成员的类型,取值为 user

示例值:user

type RemoveGroupMemberReq

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

type RemoveGroupMemberReqBody

type RemoveGroupMemberReqBody struct {
	MemberType   *string `json:"member_type,omitempty"`    // 用户组成员的类型,取值为 user
	MemberId     *string `json:"member_id,omitempty"`      // 操作移除的用户组成员ID
	MemberIdType *string `json:"member_id_type,omitempty"` // 当member_type =user时候,member_id_type表示user_id_type,枚举值为open_id, union_id, user_id
}

type RemoveGroupMemberReqBodyBuilder

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

func NewRemoveGroupMemberReqBodyBuilder

func NewRemoveGroupMemberReqBodyBuilder() *RemoveGroupMemberReqBodyBuilder

func (*RemoveGroupMemberReqBodyBuilder) Build

func (*RemoveGroupMemberReqBodyBuilder) MemberId

操作移除的用户组成员ID

示例值:xj82871k

func (*RemoveGroupMemberReqBodyBuilder) MemberIdType

func (builder *RemoveGroupMemberReqBodyBuilder) MemberIdType(memberIdType string) *RemoveGroupMemberReqBodyBuilder

当member_type =user时候,member_id_type表示user_id_type,枚举值为open_id, union_id, user_id

示例值:open_id

func (*RemoveGroupMemberReqBodyBuilder) MemberType

用户组成员的类型,取值为 user

示例值:user

type RemoveGroupMemberReqBuilder

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

func NewRemoveGroupMemberReqBuilder

func NewRemoveGroupMemberReqBuilder() *RemoveGroupMemberReqBuilder

func (*RemoveGroupMemberReqBuilder) Body

从用户组中移除成员 (目前成员仅支持用户,未来会支持部门),如果应用的通讯录权限范围是“全部员工”,则可将任何成员移出任何用户组。如果应用的通讯录权限范围不是“全部员工”,则仅可将通讯录权限范围中的成员从通讯录权限范围的用户组中移除, [点击了解通讯录权限范围](https://open.feishu.cn/document/ukTMukTMukTM/uETNz4SM1MjLxUzM/v3/guides/scope_authority)。

func (*RemoveGroupMemberReqBuilder) Build

func (*RemoveGroupMemberReqBuilder) GroupId

用户组ID

示例值:g198123

type RemoveGroupMemberResp

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

func (*RemoveGroupMemberResp) Success

func (resp *RemoveGroupMemberResp) Success() bool

type ResourceAcceptor added in v3.0.1

type ResourceAcceptor struct {
	ProcessingType *string `json:"processing_type,omitempty"`  // 邮件处理方式
	AcceptorUserId *string `json:"acceptor_user_id,omitempty"` // 在 processing_type 为 1 (转移资源时),邮件资源接收者
}

type ResourceAcceptorBuilder added in v3.0.1

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

func NewResourceAcceptorBuilder added in v3.0.1

func NewResourceAcceptorBuilder() *ResourceAcceptorBuilder

func (*ResourceAcceptorBuilder) AcceptorUserId added in v3.0.1

func (builder *ResourceAcceptorBuilder) AcceptorUserId(acceptorUserId string) *ResourceAcceptorBuilder

在 processing_type 为 1 (转移资源时),邮件资源接收者

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*ResourceAcceptorBuilder) Build added in v3.0.1

func (builder *ResourceAcceptorBuilder) Build() *ResourceAcceptor

func (*ResourceAcceptorBuilder) ProcessingType added in v3.0.1

func (builder *ResourceAcceptorBuilder) ProcessingType(processingType string) *ResourceAcceptorBuilder

邮件处理方式

示例值:1

type ResurrectUserPathReqBodyBuilder added in v3.0.20

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

func NewResurrectUserPathReqBodyBuilder added in v3.0.20

func NewResurrectUserPathReqBodyBuilder() *ResurrectUserPathReqBodyBuilder

func (*ResurrectUserPathReqBodyBuilder) Build added in v3.0.20

func (*ResurrectUserPathReqBodyBuilder) Departments added in v3.0.20

指定恢复后用户所在部门

示例值:

func (*ResurrectUserPathReqBodyBuilder) SubscriptionIds added in v3.0.20

func (builder *ResurrectUserPathReqBodyBuilder) SubscriptionIds(subscriptionIds []string) *ResurrectUserPathReqBodyBuilder

指定恢复后分配的席位

示例值:

type ResurrectUserReq added in v3.0.20

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

type ResurrectUserReqBody added in v3.0.20

type ResurrectUserReqBody struct {
	Departments     []*UserDepartmentInfo `json:"departments,omitempty"`      // 指定恢复后用户所在部门
	SubscriptionIds []string              `json:"subscription_ids,omitempty"` // 指定恢复后分配的席位
}

type ResurrectUserReqBodyBuilder added in v3.0.20

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

func NewResurrectUserReqBodyBuilder added in v3.0.20

func NewResurrectUserReqBodyBuilder() *ResurrectUserReqBodyBuilder

func (*ResurrectUserReqBodyBuilder) Build added in v3.0.20

func (*ResurrectUserReqBodyBuilder) Departments added in v3.0.20

func (builder *ResurrectUserReqBodyBuilder) Departments(departments []*UserDepartmentInfo) *ResurrectUserReqBodyBuilder

指定恢复后用户所在部门

示例值:

func (*ResurrectUserReqBodyBuilder) SubscriptionIds added in v3.0.20

func (builder *ResurrectUserReqBodyBuilder) SubscriptionIds(subscriptionIds []string) *ResurrectUserReqBodyBuilder

指定恢复后分配的席位

示例值:

type ResurrectUserReqBuilder added in v3.0.20

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

func NewResurrectUserReqBuilder added in v3.0.20

func NewResurrectUserReqBuilder() *ResurrectUserReqBuilder

func (*ResurrectUserReqBuilder) Body added in v3.0.20

该接口用于恢复已删除用户(已离职的成员),仅自建应用可申请,应用商店应用无权调用接口。

func (*ResurrectUserReqBuilder) Build added in v3.0.20

func (builder *ResurrectUserReqBuilder) Build() *ResurrectUserReq

func (*ResurrectUserReqBuilder) DepartmentIdType added in v3.0.20

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

部门id类型

示例值:department_id

func (*ResurrectUserReqBuilder) UserId added in v3.0.20

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

用户ID,需要与查询参数中的user_id_type类型保持一致。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*ResurrectUserReqBuilder) UserIdType added in v3.0.20

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

用户id类型

示例值:user_id

type ResurrectUserResp added in v3.0.20

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

func (*ResurrectUserResp) Success added in v3.0.20

func (resp *ResurrectUserResp) Success() bool

type Scope

type Scope struct {
	Departments []*Department `json:"departments,omitempty"` // 部门对象
	Users       []*User       `json:"users,omitempty"`       // 用户对象
	UserGroups  []*UserGroup  `json:"user_groups,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) Departments

func (builder *ScopeBuilder) Departments(departments []*Department) *ScopeBuilder

部门对象

示例值:

func (*ScopeBuilder) UserGroups

func (builder *ScopeBuilder) UserGroups(userGroups []*UserGroup) *ScopeBuilder

用户组对象

示例值:

func (*ScopeBuilder) Users

func (builder *ScopeBuilder) Users(users []*User) *ScopeBuilder

用户对象

示例值:

type ScopesFunctionalRoleMemberPathReqBodyBuilder added in v3.0.19

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

func NewScopesFunctionalRoleMemberPathReqBodyBuilder added in v3.0.19

func NewScopesFunctionalRoleMemberPathReqBodyBuilder() *ScopesFunctionalRoleMemberPathReqBodyBuilder

func (*ScopesFunctionalRoleMemberPathReqBodyBuilder) Build added in v3.0.19

func (*ScopesFunctionalRoleMemberPathReqBodyBuilder) Departments added in v3.0.19

角色内用户的管理范围

示例值:

func (*ScopesFunctionalRoleMemberPathReqBodyBuilder) Members added in v3.0.19

角色修改的角色成员列表(一批用户的UserID列表)

示例值:

type ScopesFunctionalRoleMemberReq added in v3.0.19

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

type ScopesFunctionalRoleMemberReqBody added in v3.0.19

type ScopesFunctionalRoleMemberReqBody struct {
	Members     []string `json:"members,omitempty"`     // 角色修改的角色成员列表(一批用户的UserID列表)
	Departments []string `json:"departments,omitempty"` // 角色内用户的管理范围
}

type ScopesFunctionalRoleMemberReqBodyBuilder added in v3.0.19

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

func NewScopesFunctionalRoleMemberReqBodyBuilder added in v3.0.19

func NewScopesFunctionalRoleMemberReqBodyBuilder() *ScopesFunctionalRoleMemberReqBodyBuilder

func (*ScopesFunctionalRoleMemberReqBodyBuilder) Build added in v3.0.19

func (*ScopesFunctionalRoleMemberReqBodyBuilder) Departments added in v3.0.19

角色内用户的管理范围

示例值:

func (*ScopesFunctionalRoleMemberReqBodyBuilder) Members added in v3.0.19

角色修改的角色成员列表(一批用户的UserID列表)

示例值:

type ScopesFunctionalRoleMemberReqBuilder added in v3.0.19

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

func NewScopesFunctionalRoleMemberReqBuilder added in v3.0.19

func NewScopesFunctionalRoleMemberReqBuilder() *ScopesFunctionalRoleMemberReqBuilder

func (*ScopesFunctionalRoleMemberReqBuilder) Body added in v3.0.19

func (*ScopesFunctionalRoleMemberReqBuilder) Build added in v3.0.19

func (*ScopesFunctionalRoleMemberReqBuilder) DepartmentIdType added in v3.0.19

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

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

示例值:open_department_id

func (*ScopesFunctionalRoleMemberReqBuilder) RoleId added in v3.0.19

角色的唯一标识,单租户下唯一

示例值:7vrj3vk70xk7v5r

func (*ScopesFunctionalRoleMemberReqBuilder) UserIdType added in v3.0.19

用户 ID 类型

示例值:open_id

type ScopesFunctionalRoleMemberResp added in v3.0.19

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

func (*ScopesFunctionalRoleMemberResp) Success added in v3.0.19

func (resp *ScopesFunctionalRoleMemberResp) Success() bool

type ScopesFunctionalRoleMemberRespData added in v3.0.19

type ScopesFunctionalRoleMemberRespData struct {
	Results []*FunctionalRoleMemberResult `json:"results,omitempty"` // 批量更新角色成员管理范围结果集
}

type SearchDepartmentIterator

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

func (*SearchDepartmentIterator) Next

func (iterator *SearchDepartmentIterator) Next() (bool, *Department, error)

func (*SearchDepartmentIterator) NextPageToken

func (iterator *SearchDepartmentIterator) NextPageToken() *string

type SearchDepartmentPathReqBodyBuilder

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

func NewSearchDepartmentPathReqBodyBuilder

func NewSearchDepartmentPathReqBodyBuilder() *SearchDepartmentPathReqBodyBuilder

func (*SearchDepartmentPathReqBodyBuilder) Build

func (*SearchDepartmentPathReqBodyBuilder) Query

搜索关键词,匹配字段为部门名称(不支持匹配部门国际化名称)

示例值:DemoName

type SearchDepartmentReq

type SearchDepartmentReq struct {
	Body  *SearchDepartmentReqBody `body:""`
	Limit int                      // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type SearchDepartmentReqBody

type SearchDepartmentReqBody struct {
	Query *string `json:"query,omitempty"` // 搜索关键词,匹配字段为部门名称(不支持匹配部门国际化名称)
}

type SearchDepartmentReqBodyBuilder

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

func NewSearchDepartmentReqBodyBuilder

func NewSearchDepartmentReqBodyBuilder() *SearchDepartmentReqBodyBuilder

func (*SearchDepartmentReqBodyBuilder) Build

func (*SearchDepartmentReqBodyBuilder) Query

搜索关键词,匹配字段为部门名称(不支持匹配部门国际化名称)

示例值:DemoName

type SearchDepartmentReqBuilder

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

func NewSearchDepartmentReqBuilder

func NewSearchDepartmentReqBuilder() *SearchDepartmentReqBuilder

func (*SearchDepartmentReqBuilder) Body

搜索部门,用户通过关键词查询可见的部门数据,部门可见性需要管理员在后台配置。

func (*SearchDepartmentReqBuilder) Build

func (*SearchDepartmentReqBuilder) DepartmentIdType

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

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

示例值:open_department_id

func (*SearchDepartmentReqBuilder) Limit

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

func (*SearchDepartmentReqBuilder) PageSize

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

分页大小

示例值:10

func (*SearchDepartmentReqBuilder) PageToken

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

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

示例值:AQD9/Rn9eij9Pm39ED40/RD/cIFmu77WxpxPB/2oHfQLZ+G8JG6tK7+ZnHiT7COhD2hMSICh/eBl7cpzU6JEC3J7COKNe4jrQ8ExwBCR

func (*SearchDepartmentReqBuilder) UserIdType

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

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

示例值:

type SearchDepartmentResp

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

func (*SearchDepartmentResp) Success

func (resp *SearchDepartmentResp) Success() bool

type SearchDepartmentRespData

type SearchDepartmentRespData struct {
	Items     []*Department `json:"items,omitempty"`      //
	PageToken *string       `json:"page_token,omitempty"` // 翻页 token,传入返回下一页,首页不需要传入
	HasMore   *bool         `json:"has_more,omitempty"`   // 是否还有下一页
}

type ShareDepartment added in v3.0.1

type ShareDepartment struct {
	OpenId   *string             `json:"open_id,omitempty"`   // 共享部门的open id
	Name     *string             `json:"name,omitempty"`      // 部门名称
	I18nName *DepartmentI18nName `json:"i18n_name,omitempty"` // 国际化的部门名称
	Order    *string             `json:"order,omitempty"`     // 部门的排序
}

type ShareDepartmentBuilder added in v3.0.1

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

func NewShareDepartmentBuilder added in v3.0.1

func NewShareDepartmentBuilder() *ShareDepartmentBuilder

func (*ShareDepartmentBuilder) Build added in v3.0.1

func (builder *ShareDepartmentBuilder) Build() *ShareDepartment

func (*ShareDepartmentBuilder) I18nName added in v3.0.1

国际化的部门名称

示例值:

func (*ShareDepartmentBuilder) Name added in v3.0.1

部门名称

示例值:测试部门

func (*ShareDepartmentBuilder) OpenId added in v3.0.1

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

共享部门的open id

示例值:od-b025f41e599bf3d3fb5dc56b7f86142b

func (*ShareDepartmentBuilder) Order added in v3.0.1

func (builder *ShareDepartmentBuilder) Order(order string) *ShareDepartmentBuilder

部门的排序

示例值:6000

type ShareUser added in v3.0.1

type ShareUser struct {
	OpenId *string     `json:"open_id,omitempty"` // 用户的open_id
	Name   *string     `json:"name,omitempty"`    // 用户的名称
	EnName *string     `json:"en_name,omitempty"` // 英文名
	Avatar *AvatarInfo `json:"avatar,omitempty"`  // 用户头像信息
}

type ShareUserBuilder added in v3.0.1

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

func NewShareUserBuilder added in v3.0.1

func NewShareUserBuilder() *ShareUserBuilder

func (*ShareUserBuilder) Avatar added in v3.0.1

func (builder *ShareUserBuilder) Avatar(avatar *AvatarInfo) *ShareUserBuilder

用户头像信息

示例值:

func (*ShareUserBuilder) Build added in v3.0.1

func (builder *ShareUserBuilder) Build() *ShareUser

func (*ShareUserBuilder) EnName added in v3.0.1

func (builder *ShareUserBuilder) EnName(enName string) *ShareUserBuilder

英文名

示例值:testUser

func (*ShareUserBuilder) Name added in v3.0.1

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

用户的名称

示例值:测试用户

func (*ShareUserBuilder) OpenId added in v3.0.1

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

用户的open_id

示例值:ou_496670738e90fb26f899088a125226c5

type SimplelistGroupIterator

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

func (*SimplelistGroupIterator) Next

func (iterator *SimplelistGroupIterator) Next() (bool, *Group, error)

func (*SimplelistGroupIterator) NextPageToken

func (iterator *SimplelistGroupIterator) NextPageToken() *string

type SimplelistGroupMemberReq

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

type SimplelistGroupMemberReqBuilder

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

func NewSimplelistGroupMemberReqBuilder

func NewSimplelistGroupMemberReqBuilder() *SimplelistGroupMemberReqBuilder

func (*SimplelistGroupMemberReqBuilder) Build

func (*SimplelistGroupMemberReqBuilder) GroupId

用户组ID

示例值:g128187

func (*SimplelistGroupMemberReqBuilder) MemberIdType

func (builder *SimplelistGroupMemberReqBuilder) MemberIdType(memberIdType string) *SimplelistGroupMemberReqBuilder

欲获取成员ID类型。;当member_type=user时候,member_id_type表示user_id_type,枚举值open_id, union_id和user_id。;当member_type=department时候,member_id_type表示department_id_type,枚举值open_id和department_id。

示例值:open_id

func (*SimplelistGroupMemberReqBuilder) MemberType

欲获取的用户组成员类型。

示例值:user

func (*SimplelistGroupMemberReqBuilder) PageSize

分页大小

示例值:50

func (*SimplelistGroupMemberReqBuilder) PageToken

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

示例值:AQD9/Rn9eij9Pm39ED40/dk53s4Ebp882DYfFaPFbz00L4CMZJrqGdzNyc8BcZtDbwVUvRmQTvyMYicnGWrde9X56TgdBuS+JKiSIkdexPw=

type SimplelistGroupMemberResp

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

func (*SimplelistGroupMemberResp) Success

func (resp *SimplelistGroupMemberResp) Success() bool

type SimplelistGroupMemberRespData

type SimplelistGroupMemberRespData struct {
	Memberlist []*Memberlist `json:"memberlist,omitempty"` // 成员列表
	PageToken  *string       `json:"page_token,omitempty"` // 下次分页获取的page_token
	HasMore    *bool         `json:"has_more,omitempty"`   // 是否还需要分页获取
}

type SimplelistGroupReq

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

type SimplelistGroupReqBuilder

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

func NewSimplelistGroupReqBuilder

func NewSimplelistGroupReqBuilder() *SimplelistGroupReqBuilder

func (*SimplelistGroupReqBuilder) Build

func (*SimplelistGroupReqBuilder) Limit

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

func (*SimplelistGroupReqBuilder) PageSize

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

分页大小

示例值:50

func (*SimplelistGroupReqBuilder) PageToken

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

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

示例值:AQD9/Rn9eij9Pm39ED40/dk53s4Ebp882DYfFaPFbz00L4CMZJrqGdzNyc8BcZtDbwVUvRmQTvyMYicnGWrde9X56TgdBuS+JKiSIkdexPw=

func (*SimplelistGroupReqBuilder) Type

用户组类型

示例值:1

type SimplelistGroupResp

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

func (*SimplelistGroupResp) Success

func (resp *SimplelistGroupResp) Success() bool

type SimplelistGroupRespData

type SimplelistGroupRespData struct {
	Grouplist []*Group `json:"grouplist,omitempty"`  // 用户组列表
	PageToken *string  `json:"page_token,omitempty"` // 下次分页获取的page_token
	HasMore   *bool    `json:"has_more,omitempty"`   // 是否还需要分页获取
}

type UnbindDepartmentChatDepartmentPathReqBodyBuilder

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

func NewUnbindDepartmentChatDepartmentPathReqBodyBuilder

func NewUnbindDepartmentChatDepartmentPathReqBodyBuilder() *UnbindDepartmentChatDepartmentPathReqBodyBuilder

func (*UnbindDepartmentChatDepartmentPathReqBodyBuilder) Build

func (*UnbindDepartmentChatDepartmentPathReqBodyBuilder) DepartmentId

部门ID

示例值:D096

type UnbindDepartmentChatDepartmentReq

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

type UnbindDepartmentChatDepartmentReqBody

type UnbindDepartmentChatDepartmentReqBody struct {
	DepartmentId *string `json:"department_id,omitempty"` // 部门ID
}

type UnbindDepartmentChatDepartmentReqBodyBuilder

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

func NewUnbindDepartmentChatDepartmentReqBodyBuilder

func NewUnbindDepartmentChatDepartmentReqBodyBuilder() *UnbindDepartmentChatDepartmentReqBodyBuilder

func (*UnbindDepartmentChatDepartmentReqBodyBuilder) Build

func (*UnbindDepartmentChatDepartmentReqBodyBuilder) DepartmentId

部门ID

示例值:D096

type UnbindDepartmentChatDepartmentReqBuilder

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

func NewUnbindDepartmentChatDepartmentReqBuilder

func NewUnbindDepartmentChatDepartmentReqBuilder() *UnbindDepartmentChatDepartmentReqBuilder

func (*UnbindDepartmentChatDepartmentReqBuilder) Body

通过该接口将部门群转为普通群。

func (*UnbindDepartmentChatDepartmentReqBuilder) Build

func (*UnbindDepartmentChatDepartmentReqBuilder) DepartmentIdType

此次调用中使用的部门ID的类型,默认为"open_department_id"

示例值:open_department_id

type UnbindDepartmentChatDepartmentResp

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

func (*UnbindDepartmentChatDepartmentResp) Success

func (resp *UnbindDepartmentChatDepartmentResp) Success() bool

type UnbindDepartmentUnitPathReqBodyBuilder

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

func NewUnbindDepartmentUnitPathReqBodyBuilder

func NewUnbindDepartmentUnitPathReqBodyBuilder() *UnbindDepartmentUnitPathReqBodyBuilder

func (*UnbindDepartmentUnitPathReqBodyBuilder) Build

func (*UnbindDepartmentUnitPathReqBodyBuilder) DepartmentId

预解除关联的部门ID

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

func (*UnbindDepartmentUnitPathReqBodyBuilder) DepartmentIdType

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

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

示例值:open_department_id

func (*UnbindDepartmentUnitPathReqBodyBuilder) UnitId

单位ID

示例值:BU121

type UnbindDepartmentUnitReq

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

type UnbindDepartmentUnitReqBody

type UnbindDepartmentUnitReqBody struct {
	UnitId           *string `json:"unit_id,omitempty"`            // 单位ID
	DepartmentId     *string `json:"department_id,omitempty"`      // 预解除关联的部门ID
	DepartmentIdType *string `json:"department_id_type,omitempty"` // 此次调用中使用的部门ID的类型
}

type UnbindDepartmentUnitReqBodyBuilder

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

func NewUnbindDepartmentUnitReqBodyBuilder

func NewUnbindDepartmentUnitReqBodyBuilder() *UnbindDepartmentUnitReqBodyBuilder

func (*UnbindDepartmentUnitReqBodyBuilder) Build

func (*UnbindDepartmentUnitReqBodyBuilder) DepartmentId

预解除关联的部门ID

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

func (*UnbindDepartmentUnitReqBodyBuilder) DepartmentIdType

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

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

示例值:open_department_id

func (*UnbindDepartmentUnitReqBodyBuilder) UnitId

单位ID

示例值:BU121

type UnbindDepartmentUnitReqBuilder

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

func NewUnbindDepartmentUnitReqBuilder

func NewUnbindDepartmentUnitReqBuilder() *UnbindDepartmentUnitReqBuilder

func (*UnbindDepartmentUnitReqBuilder) Body

通过该接口解除部门与单位的绑定关系,需更新单位的权限,需对应部门的通讯录权限。由于单位是旗舰版付费功能,企业需开通相关功能,否则会解绑失败

func (*UnbindDepartmentUnitReqBuilder) Build

type UnbindDepartmentUnitResp

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

func (*UnbindDepartmentUnitResp) Success

func (resp *UnbindDepartmentUnitResp) Success() bool

type Unit

type Unit struct {
	UnitId   *string `json:"unit_id,omitempty"`   // 单位ID
	Name     *string `json:"name,omitempty"`      // 单位的名字
	UnitType *string `json:"unit_type,omitempty"` // 单位的类型
}

type UnitBuilder

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

func NewUnitBuilder

func NewUnitBuilder() *UnitBuilder

func (*UnitBuilder) Build

func (builder *UnitBuilder) Build() *Unit

func (*UnitBuilder) Name

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

单位的名字

示例值:消费者事业部

func (*UnitBuilder) UnitId

func (builder *UnitBuilder) UnitId(unitId string) *UnitBuilder

单位ID

示例值:BU121

func (*UnitBuilder) UnitType

func (builder *UnitBuilder) UnitType(unitType string) *UnitBuilder

单位的类型

示例值:事业部

type UnitDepartment

type UnitDepartment struct {
	UnitId       *string `json:"unit_id,omitempty"`       // 单位ID
	DepartmentId *string `json:"department_id,omitempty"` // 部门ID
}

type UnitDepartmentBuilder

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

func NewUnitDepartmentBuilder

func NewUnitDepartmentBuilder() *UnitDepartmentBuilder

func (*UnitDepartmentBuilder) Build

func (builder *UnitDepartmentBuilder) Build() *UnitDepartment

func (*UnitDepartmentBuilder) DepartmentId

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

部门ID

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

func (*UnitDepartmentBuilder) UnitId

func (builder *UnitDepartmentBuilder) UnitId(unitId string) *UnitDepartmentBuilder

单位ID

示例值:BU121

type UpdateDepartmentIdDepartmentPathReqBodyBuilder added in v3.0.32

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

func NewUpdateDepartmentIdDepartmentPathReqBodyBuilder added in v3.0.32

func NewUpdateDepartmentIdDepartmentPathReqBodyBuilder() *UpdateDepartmentIdDepartmentPathReqBodyBuilder

func (*UpdateDepartmentIdDepartmentPathReqBodyBuilder) Build added in v3.0.32

func (*UpdateDepartmentIdDepartmentPathReqBodyBuilder) NewDepartmentId added in v3.0.32

本部门的自定义部门新ID

示例值:

type UpdateDepartmentIdDepartmentReq added in v3.0.32

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

type UpdateDepartmentIdDepartmentReqBody added in v3.0.32

type UpdateDepartmentIdDepartmentReqBody struct {
	NewDepartmentId *string `json:"new_department_id,omitempty"` // 本部门的自定义部门新ID
}

type UpdateDepartmentIdDepartmentReqBodyBuilder added in v3.0.32

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

func NewUpdateDepartmentIdDepartmentReqBodyBuilder added in v3.0.32

func NewUpdateDepartmentIdDepartmentReqBodyBuilder() *UpdateDepartmentIdDepartmentReqBodyBuilder

func (*UpdateDepartmentIdDepartmentReqBodyBuilder) Build added in v3.0.32

func (*UpdateDepartmentIdDepartmentReqBodyBuilder) NewDepartmentId added in v3.0.32

本部门的自定义部门新ID

示例值:

type UpdateDepartmentIdDepartmentReqBuilder added in v3.0.32

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

func NewUpdateDepartmentIdDepartmentReqBuilder added in v3.0.32

func NewUpdateDepartmentIdDepartmentReqBuilder() *UpdateDepartmentIdDepartmentReqBuilder

func (*UpdateDepartmentIdDepartmentReqBuilder) Body added in v3.0.32

func (*UpdateDepartmentIdDepartmentReqBuilder) Build added in v3.0.32

func (*UpdateDepartmentIdDepartmentReqBuilder) DepartmentId added in v3.0.32

需要更新ID部门的ID

示例值:

func (*UpdateDepartmentIdDepartmentReqBuilder) DepartmentIdType added in v3.0.32

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

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

示例值:

type UpdateDepartmentIdDepartmentResp added in v3.0.32

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

func (*UpdateDepartmentIdDepartmentResp) Success added in v3.0.32

func (resp *UpdateDepartmentIdDepartmentResp) Success() bool

type UpdateDepartmentReq

type UpdateDepartmentReq struct {
	Department *Department `body:""`
	// contains filtered or unexported fields
}

type UpdateDepartmentReqBuilder

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

func NewUpdateDepartmentReqBuilder

func NewUpdateDepartmentReqBuilder() *UpdateDepartmentReqBuilder

func (*UpdateDepartmentReqBuilder) Build

func (*UpdateDepartmentReqBuilder) Department

func (builder *UpdateDepartmentReqBuilder) Department(department *Department) *UpdateDepartmentReqBuilder

该接口用于更新当前部门所有信息。

func (*UpdateDepartmentReqBuilder) DepartmentId

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

部门ID,需要与查询参数中传入的department_id_type类型保持一致。;;;注意:除需要满足正则规则外,同时不能以od-开头

示例值:D096

func (*UpdateDepartmentReqBuilder) DepartmentIdType

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

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

示例值:open_department_id

func (*UpdateDepartmentReqBuilder) UserIdType

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

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

示例值:

type UpdateDepartmentResp

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

func (*UpdateDepartmentResp) Success

func (resp *UpdateDepartmentResp) Success() bool

type UpdateDepartmentRespData

type UpdateDepartmentRespData struct {
	Department *Department `json:"department,omitempty"` // 部门信息
}

type UpdateEmployeeTypeEnumReq

type UpdateEmployeeTypeEnumReq struct {
	EmployeeTypeEnum *EmployeeTypeEnum `body:""`
	// contains filtered or unexported fields
}

type UpdateEmployeeTypeEnumReqBuilder

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

func NewUpdateEmployeeTypeEnumReqBuilder

func NewUpdateEmployeeTypeEnumReqBuilder() *UpdateEmployeeTypeEnumReqBuilder

func (*UpdateEmployeeTypeEnumReqBuilder) Build

func (*UpdateEmployeeTypeEnumReqBuilder) EmployeeTypeEnum

func (builder *UpdateEmployeeTypeEnumReqBuilder) EmployeeTypeEnum(employeeTypeEnum *EmployeeTypeEnum) *UpdateEmployeeTypeEnumReqBuilder

更新自定义人员类型

func (*UpdateEmployeeTypeEnumReqBuilder) EnumId

枚举值id

示例值:exGeIjow7zIqWMy+ONkFxA==

type UpdateEmployeeTypeEnumResp

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

func (*UpdateEmployeeTypeEnumResp) Success

func (resp *UpdateEmployeeTypeEnumResp) Success() bool

type UpdateEmployeeTypeEnumRespData

type UpdateEmployeeTypeEnumRespData struct {
	EmployeeTypeEnum *EmployeeTypeEnum `json:"employee_type_enum,omitempty"` // 更新后的人员类型字段
}

type UpdateFunctionalRolePathReqBodyBuilder added in v3.0.19

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

func NewUpdateFunctionalRolePathReqBodyBuilder added in v3.0.19

func NewUpdateFunctionalRolePathReqBodyBuilder() *UpdateFunctionalRolePathReqBodyBuilder

func (*UpdateFunctionalRolePathReqBodyBuilder) Build added in v3.0.19

func (*UpdateFunctionalRolePathReqBodyBuilder) RoleName added in v3.0.19

修改的角色名称,在单租户下唯一

示例值:考勤管理员

type UpdateFunctionalRoleReq added in v3.0.19

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

type UpdateFunctionalRoleReqBody added in v3.0.19

type UpdateFunctionalRoleReqBody struct {
	RoleName *string `json:"role_name,omitempty"` // 修改的角色名称,在单租户下唯一
}

type UpdateFunctionalRoleReqBodyBuilder added in v3.0.19

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

func NewUpdateFunctionalRoleReqBodyBuilder added in v3.0.19

func NewUpdateFunctionalRoleReqBodyBuilder() *UpdateFunctionalRoleReqBodyBuilder

func (*UpdateFunctionalRoleReqBodyBuilder) Build added in v3.0.19

func (*UpdateFunctionalRoleReqBodyBuilder) RoleName added in v3.0.19

修改的角色名称,在单租户下唯一

示例值:考勤管理员

type UpdateFunctionalRoleReqBuilder added in v3.0.19

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

func NewUpdateFunctionalRoleReqBuilder added in v3.0.19

func NewUpdateFunctionalRoleReqBuilder() *UpdateFunctionalRoleReqBuilder

func (*UpdateFunctionalRoleReqBuilder) Body added in v3.0.19

func (*UpdateFunctionalRoleReqBuilder) Build added in v3.0.19

func (*UpdateFunctionalRoleReqBuilder) RoleId added in v3.0.19

角色的唯一标识,单租户下唯一

示例值:7vrj3vk70xk7v5r

type UpdateFunctionalRoleResp added in v3.0.19

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

func (*UpdateFunctionalRoleResp) Success added in v3.0.19

func (resp *UpdateFunctionalRoleResp) Success() bool

type UpdateJobFamilyReq added in v3.0.19

type UpdateJobFamilyReq struct {
	JobFamily *JobFamily `body:""`
	// contains filtered or unexported fields
}

type UpdateJobFamilyReqBuilder added in v3.0.19

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

func NewUpdateJobFamilyReqBuilder added in v3.0.19

func NewUpdateJobFamilyReqBuilder() *UpdateJobFamilyReqBuilder

func (*UpdateJobFamilyReqBuilder) Build added in v3.0.19

func (*UpdateJobFamilyReqBuilder) JobFamily added in v3.0.19

func (builder *UpdateJobFamilyReqBuilder) JobFamily(jobFamily *JobFamily) *UpdateJobFamilyReqBuilder

func (*UpdateJobFamilyReqBuilder) JobFamilyId added in v3.0.19

func (builder *UpdateJobFamilyReqBuilder) JobFamilyId(jobFamilyId string) *UpdateJobFamilyReqBuilder

序列ID

示例值:mga5oa8ayjlp9rb

type UpdateJobFamilyResp added in v3.0.19

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

func (*UpdateJobFamilyResp) Success added in v3.0.19

func (resp *UpdateJobFamilyResp) Success() bool

type UpdateJobFamilyRespData added in v3.0.19

type UpdateJobFamilyRespData struct {
	JobFamily *JobFamily `json:"job_family,omitempty"` // 更新后的序列信息
}

type UpdateJobLevelReq added in v3.0.19

type UpdateJobLevelReq struct {
	JobLevel *JobLevel `body:""`
	// contains filtered or unexported fields
}

type UpdateJobLevelReqBuilder added in v3.0.19

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

func NewUpdateJobLevelReqBuilder added in v3.0.19

func NewUpdateJobLevelReqBuilder() *UpdateJobLevelReqBuilder

func (*UpdateJobLevelReqBuilder) Build added in v3.0.19

func (builder *UpdateJobLevelReqBuilder) Build() *UpdateJobLevelReq

func (*UpdateJobLevelReqBuilder) JobLevel added in v3.0.19

func (builder *UpdateJobLevelReqBuilder) JobLevel(jobLevel *JobLevel) *UpdateJobLevelReqBuilder

func (*UpdateJobLevelReqBuilder) JobLevelId added in v3.0.19

func (builder *UpdateJobLevelReqBuilder) JobLevelId(jobLevelId string) *UpdateJobLevelReqBuilder

职级ID

示例值:mga5oa8ayjlp9rb

type UpdateJobLevelResp added in v3.0.19

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

func (*UpdateJobLevelResp) Success added in v3.0.19

func (resp *UpdateJobLevelResp) Success() bool

type UpdateJobLevelRespData added in v3.0.19

type UpdateJobLevelRespData struct {
	JobLevel *JobLevel `json:"job_level,omitempty"` // 职级信息
}

type UpdateUserIdUserPathReqBodyBuilder added in v3.0.25

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

func NewUpdateUserIdUserPathReqBodyBuilder added in v3.0.25

func NewUpdateUserIdUserPathReqBodyBuilder() *UpdateUserIdUserPathReqBodyBuilder

func (*UpdateUserIdUserPathReqBodyBuilder) Build added in v3.0.25

func (*UpdateUserIdUserPathReqBodyBuilder) NewUserId added in v3.0.25

自定义新用户ID

示例值:3e3cf96b

type UpdateUserIdUserReq added in v3.0.25

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

type UpdateUserIdUserReqBody added in v3.0.25

type UpdateUserIdUserReqBody struct {
	NewUserId *string `json:"new_user_id,omitempty"` // 自定义新用户ID
}

type UpdateUserIdUserReqBodyBuilder added in v3.0.25

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

func NewUpdateUserIdUserReqBodyBuilder added in v3.0.25

func NewUpdateUserIdUserReqBodyBuilder() *UpdateUserIdUserReqBodyBuilder

func (*UpdateUserIdUserReqBodyBuilder) Build added in v3.0.25

func (*UpdateUserIdUserReqBodyBuilder) NewUserId added in v3.0.25

自定义新用户ID

示例值:3e3cf96b

type UpdateUserIdUserReqBuilder added in v3.0.25

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

func NewUpdateUserIdUserReqBuilder added in v3.0.25

func NewUpdateUserIdUserReqBuilder() *UpdateUserIdUserReqBuilder

func (*UpdateUserIdUserReqBuilder) Body added in v3.0.25

func (*UpdateUserIdUserReqBuilder) Build added in v3.0.25

func (*UpdateUserIdUserReqBuilder) UserId added in v3.0.25

用户ID

示例值:

func (*UpdateUserIdUserReqBuilder) UserIdType added in v3.0.25

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

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

示例值:

type UpdateUserIdUserResp added in v3.0.25

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

func (*UpdateUserIdUserResp) Success added in v3.0.25

func (resp *UpdateUserIdUserResp) Success() bool

type UpdateUserReq

type UpdateUserReq struct {
	User *User `body:""`
	// contains filtered or unexported fields
}

type UpdateUserReqBuilder

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

func NewUpdateUserReqBuilder

func NewUpdateUserReqBuilder() *UpdateUserReqBuilder

func (*UpdateUserReqBuilder) Build

func (builder *UpdateUserReqBuilder) Build() *UpdateUserReq

func (*UpdateUserReqBuilder) DepartmentIdType

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

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

示例值:open_department_id

func (*UpdateUserReqBuilder) User

func (builder *UpdateUserReqBuilder) User(user *User) *UpdateUserReqBuilder

该接口用于更新通讯录中用户的字段。

func (*UpdateUserReqBuilder) UserId

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

用户ID,需要与查询参数中的user_id_type类型保持一致。

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*UpdateUserReqBuilder) UserIdType

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

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

示例值:

type UpdateUserResp

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

func (*UpdateUserResp) Success

func (resp *UpdateUserResp) Success() bool

type UpdateUserRespData

type UpdateUserRespData struct {
	User *User `json:"user,omitempty"` // 用户信息
}

type User

type User struct {
	UnionId         *string     `json:"union_id,omitempty"`          // 用户的union_id,应用开发商发布的不同应用中同一用户的标识,不同ID的说明参见 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	UserId          *string     `json:"user_id,omitempty"`           // 用户的user_id,租户内用户的唯一标识,不同ID的说明参见 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	OpenId          *string     `json:"open_id,omitempty"`           // 用户的open_id,应用内用户的唯一标识,不同ID的说明参见 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	Name            *string     `json:"name,omitempty"`              // 用户名
	EnName          *string     `json:"en_name,omitempty"`           // 英文名
	Nickname        *string     `json:"nickname,omitempty"`          // 别名
	Email           *string     `json:"email,omitempty"`             // 邮箱;;注意:;1. 非中国大陆手机号成员必须同时添加邮箱;2. 邮箱不可重复
	Mobile          *string     `json:"mobile,omitempty"`            // 手机号,在本企业内不可重复;未认证企业仅支持添加中国大陆手机号,通过飞书认证的企业允许添加海外手机号,注意国际电话区号前缀中必须包含加号 +
	MobileVisible   *bool       `json:"mobile_visible,omitempty"`    // 手机号码可见性,true 为可见,false 为不可见,目前默认为 true。不可见时,组织员工将无法查看该员工的手机号码
	Gender          *int        `json:"gender,omitempty"`            // 性别
	AvatarKey       *string     `json:"avatar_key,omitempty"`        // 头像的文件Key,可通过“消息与群组/消息/图片信息”中的“上传图片”接口上传并获取头像文件 Key;;“上传图片”功能参见[上传图片](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/image/create)
	Avatar          *AvatarInfo `json:"avatar,omitempty"`            // 用户头像信息
	Status          *UserStatus `json:"status,omitempty"`            // 用户状态,枚举类型,包括is_frozen、is_resigned、is_activated、is_exited 。;;用户状态转移参见:[用户状态图](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/field-overview#4302b5a1)
	DepartmentIds   []string    `json:"department_ids,omitempty"`    // 用户所属部门的ID列表,一个用户可属于多个部门。;;ID值的类型与查询参数中的department_id_type 对应。;;不同 ID 的说明与department_id的获取方式参见 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)
	LeaderUserId    *string     `json:"leader_user_id,omitempty"`    // 用户的直接主管的用户ID,ID值与查询参数中的user_id_type 对应。;;不同 ID 的说明参见 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction);;获取方式参见[如何获取user_id](https://open.feishu.cn/document/home/user-identity-introduction/how-to-get)
	City            *string     `json:"city,omitempty"`              // 工作城市
	Country         *string     `json:"country,omitempty"`           // 国家或地区Code缩写,具体写入格式请参考 [国家/地区码表](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/country-code-description)
	WorkStation     *string     `json:"work_station,omitempty"`      // 工位
	JoinTime        *int        `json:"join_time,omitempty"`         // 入职时间,时间戳格式,表示从1970年1月1日开始所经过的秒数
	IsTenantManager *bool       `json:"is_tenant_manager,omitempty"` // 是否是租户超级管理员
	EmployeeNo      *string     `json:"employee_no,omitempty"`       // 工号
	EmployeeType    *int        `json:"employee_type,omitempty"`     // 员工类型,可选值有:;- `1`:正式员工;- `2`:实习生;- `3`:外包;- `4`:劳务;- `5`:顾问   ;同时可读取到自定义员工类型的 int 值,可通过下方接口获取到该租户的自定义员工类型的名称,参见[获取人员类型](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/employee_type_enum/list)

	Orders          []*UserOrder      `json:"orders,omitempty"`           // 用户排序信息。;;用于标记通讯录下组织架构的人员顺序,人员可能存在多个部门中,且有不同的排序。
	CustomAttrs     []*UserCustomAttr `json:"custom_attrs,omitempty"`     // 自定义字段,请确保你的组织管理员已在管理后台/组织架构/成员字段管理/自定义字段管理/全局设置中开启了“允许开放平台 API 调用“,否则该字段不会生效/返回。;;更多详情参见[用户接口相关问题](https://open.feishu.cn/document/ugTN1YjL4UTN24CO1UjN/uQzN1YjL0cTN24CN3UjN#77061525)
	EnterpriseEmail *string           `json:"enterprise_email,omitempty"` // 企业邮箱,请先确保已在管理后台启用飞书邮箱服务;;创建用户时,企业邮箱的使用方式参见[用户接口相关问题](https://open.feishu.cn/document/ugTN1YjL4UTN24CO1UjN/uQzN1YjL0cTN24CN3UjN#77061525)

	JobTitle *string `json:"job_title,omitempty"` // 职务

	IsFrozen                *bool               `json:"is_frozen,omitempty"`                   // 是否暂停用户
	Geo                     *string             `json:"geo,omitempty"`                         // 数据驻留地
	JobLevelId              *string             `json:"job_level_id,omitempty"`                // 职级ID
	JobFamilyId             *string             `json:"job_family_id,omitempty"`               // 序列ID
	SubscriptionIds         []string            `json:"subscription_ids,omitempty"`            // 分配给用户的席位ID列表
	AssignInfo              []*UserAssignInfo   `json:"assign_info,omitempty"`                 // 用户席位列表
	DepartmentPath          []*DepartmentDetail `json:"department_path,omitempty"`             // 部门路径
	DottedLineLeaderUserIds []string            `json:"dotted_line_leader_user_ids,omitempty"` // 虚线上级ID
}

type UserAssignInfo added in v3.0.18

type UserAssignInfo struct {
	SubscriptionId *string          `json:"subscription_id,omitempty"`  // 席位id
	LicensePlanKey *string          `json:"license_plan_key,omitempty"` // license_plan_key
	ProductName    *string          `json:"product_name,omitempty"`     // 席位名称
	I18nName       *ProductI18nName `json:"i18n_name,omitempty"`        // 国际化名称
	StartTime      *string          `json:"start_time,omitempty"`       // 席位起始时间
	EndTime        *string          `json:"end_time,omitempty"`         // 席位结束时间
}

type UserAssignInfoBuilder added in v3.0.18

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

func NewUserAssignInfoBuilder added in v3.0.18

func NewUserAssignInfoBuilder() *UserAssignInfoBuilder

func (*UserAssignInfoBuilder) Build added in v3.0.18

func (builder *UserAssignInfoBuilder) Build() *UserAssignInfo

func (*UserAssignInfoBuilder) EndTime added in v3.0.18

func (builder *UserAssignInfoBuilder) EndTime(endTime string) *UserAssignInfoBuilder

席位结束时间

示例值:1674991000

func (*UserAssignInfoBuilder) I18nName added in v3.0.18

func (builder *UserAssignInfoBuilder) I18nName(i18nName *ProductI18nName) *UserAssignInfoBuilder

国际化名称

示例值:

func (*UserAssignInfoBuilder) LicensePlanKey added in v3.0.18

func (builder *UserAssignInfoBuilder) LicensePlanKey(licensePlanKey string) *UserAssignInfoBuilder

license_plan_key

示例值:suite_enterprise_e5

func (*UserAssignInfoBuilder) ProductName added in v3.0.18

func (builder *UserAssignInfoBuilder) ProductName(productName string) *UserAssignInfoBuilder

席位名称

示例值:旗舰版 E5

func (*UserAssignInfoBuilder) StartTime added in v3.0.18

func (builder *UserAssignInfoBuilder) StartTime(startTime string) *UserAssignInfoBuilder

席位起始时间

示例值:1674981000

func (*UserAssignInfoBuilder) SubscriptionId added in v3.0.18

func (builder *UserAssignInfoBuilder) SubscriptionId(subscriptionId string) *UserAssignInfoBuilder

席位id

示例值:7079609167680782300

type UserBuilder

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

func NewUserBuilder

func NewUserBuilder() *UserBuilder

func (*UserBuilder) AssignInfo added in v3.0.18

func (builder *UserBuilder) AssignInfo(assignInfo []*UserAssignInfo) *UserBuilder

用户席位列表

示例值:

func (*UserBuilder) Avatar

func (builder *UserBuilder) Avatar(avatar *AvatarInfo) *UserBuilder

用户头像信息

示例值:

func (*UserBuilder) AvatarKey

func (builder *UserBuilder) AvatarKey(avatarKey string) *UserBuilder

头像的文件Key,可通过“消息与群组/消息/图片信息”中的“上传图片”接口上传并获取头像文件 Key;;“上传图片”功能参见[上传图片](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/image/create)

示例值:2500c7a9-5fff-4d9a-a2de-3d59614ae28g

func (*UserBuilder) Build

func (builder *UserBuilder) Build() *User

func (*UserBuilder) City

func (builder *UserBuilder) City(city string) *UserBuilder

工作城市

示例值:杭州

func (*UserBuilder) Country

func (builder *UserBuilder) Country(country string) *UserBuilder

国家或地区Code缩写,具体写入格式请参考 [国家/地区码表](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/country-code-description)

示例值:CN

func (*UserBuilder) CustomAttrs

func (builder *UserBuilder) CustomAttrs(customAttrs []*UserCustomAttr) *UserBuilder

自定义字段,请确保你的组织管理员已在管理后台/组织架构/成员字段管理/自定义字段管理/全局设置中开启了“允许开放平台 API 调用“,否则该字段不会生效/返回。;;更多详情参见[用户接口相关问题](https://open.feishu.cn/document/ugTN1YjL4UTN24CO1UjN/uQzN1YjL0cTN24CN3UjN#77061525)

示例值:

func (*UserBuilder) DepartmentIds

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

用户所属部门的ID列表,一个用户可属于多个部门。;;ID值的类型与查询参数中的department_id_type 对应。;;不同 ID 的说明与department_id的获取方式参见 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

func (*UserBuilder) DepartmentPath added in v3.0.20

func (builder *UserBuilder) DepartmentPath(departmentPath []*DepartmentDetail) *UserBuilder

部门路径

示例值:

func (*UserBuilder) DottedLineLeaderUserIds added in v3.0.27

func (builder *UserBuilder) DottedLineLeaderUserIds(dottedLineLeaderUserIds []string) *UserBuilder

虚线上级ID

示例值:

func (*UserBuilder) Email

func (builder *UserBuilder) Email(email string) *UserBuilder

邮箱;;注意:;1. 非中国大陆手机号成员必须同时添加邮箱;2. 邮箱不可重复

示例值:zhangsan@gmail.com

func (*UserBuilder) EmployeeNo

func (builder *UserBuilder) EmployeeNo(employeeNo string) *UserBuilder

工号

示例值:1

func (*UserBuilder) EmployeeType

func (builder *UserBuilder) EmployeeType(employeeType int) *UserBuilder

员工类型,可选值有:;- `1`:正式员工;- `2`:实习生;- `3`:外包;- `4`:劳务;- `5`:顾问 ;同时可读取到自定义员工类型的 int 值,可通过下方接口获取到该租户的自定义员工类型的名称,参见[获取人员类型](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/employee_type_enum/list)

示例值:1

func (*UserBuilder) EnName

func (builder *UserBuilder) EnName(enName string) *UserBuilder

英文名

示例值:San Zhang

func (*UserBuilder) EnterpriseEmail

func (builder *UserBuilder) EnterpriseEmail(enterpriseEmail string) *UserBuilder

企业邮箱,请先确保已在管理后台启用飞书邮箱服务;;创建用户时,企业邮箱的使用方式参见[用户接口相关问题](https://open.feishu.cn/document/ugTN1YjL4UTN24CO1UjN/uQzN1YjL0cTN24CN3UjN#77061525)

示例值:demo@mail.com

func (*UserBuilder) Gender

func (builder *UserBuilder) Gender(gender int) *UserBuilder

性别

示例值:1

func (*UserBuilder) Geo added in v3.0.2

func (builder *UserBuilder) Geo(geo string) *UserBuilder

数据驻留地

示例值:cn

func (*UserBuilder) IsFrozen

func (builder *UserBuilder) IsFrozen(isFrozen bool) *UserBuilder

是否暂停用户

示例值:false

func (*UserBuilder) IsTenantManager

func (builder *UserBuilder) IsTenantManager(isTenantManager bool) *UserBuilder

是否是租户超级管理员

示例值:false

func (*UserBuilder) JobFamilyId added in v3.0.15

func (builder *UserBuilder) JobFamilyId(jobFamilyId string) *UserBuilder

序列ID

示例值:mga5oa8ayjlp9rb

func (*UserBuilder) JobLevelId added in v3.0.15

func (builder *UserBuilder) JobLevelId(jobLevelId string) *UserBuilder

职级ID

示例值:mga5oa8ayjlp9rb

func (*UserBuilder) JobTitle

func (builder *UserBuilder) JobTitle(jobTitle string) *UserBuilder

职务

示例值:xxxxx

func (*UserBuilder) JoinTime

func (builder *UserBuilder) JoinTime(joinTime int) *UserBuilder

入职时间,时间戳格式,表示从1970年1月1日开始所经过的秒数

示例值:2147483647

func (*UserBuilder) LeaderUserId

func (builder *UserBuilder) LeaderUserId(leaderUserId string) *UserBuilder

用户的直接主管的用户ID,ID值与查询参数中的user_id_type 对应。;;不同 ID 的说明参见 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction);;获取方式参见[如何获取user_id](https://open.feishu.cn/document/home/user-identity-introduction/how-to-get)

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*UserBuilder) Mobile

func (builder *UserBuilder) Mobile(mobile string) *UserBuilder

手机号,在本企业内不可重复;未认证企业仅支持添加中国大陆手机号,通过飞书认证的企业允许添加海外手机号,注意国际电话区号前缀中必须包含加号 +

示例值:13011111111 (其他例子,中国大陆手机号: 13011111111 或 +8613011111111, 非中国大陆手机号: +41446681800)

func (*UserBuilder) MobileVisible

func (builder *UserBuilder) MobileVisible(mobileVisible bool) *UserBuilder

手机号码可见性,true 为可见,false 为不可见,目前默认为 true。不可见时,组织员工将无法查看该员工的手机号码

示例值:false

func (*UserBuilder) Name

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

用户名

示例值:张三

func (*UserBuilder) Nickname

func (builder *UserBuilder) Nickname(nickname string) *UserBuilder

别名

示例值:Alex Zhang

func (*UserBuilder) OpenId

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

用户的open_id,应用内用户的唯一标识,不同ID的说明参见 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*UserBuilder) Orders

func (builder *UserBuilder) Orders(orders []*UserOrder) *UserBuilder

用户排序信息。;;用于标记通讯录下组织架构的人员顺序,人员可能存在多个部门中,且有不同的排序。

示例值:

func (*UserBuilder) Status

func (builder *UserBuilder) Status(status *UserStatus) *UserBuilder

用户状态,枚举类型,包括is_frozen、is_resigned、is_activated、is_exited 。;;用户状态转移参见:[用户状态图](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/field-overview#4302b5a1)

示例值:

func (*UserBuilder) SubscriptionIds added in v3.0.18

func (builder *UserBuilder) SubscriptionIds(subscriptionIds []string) *UserBuilder

分配给用户的席位ID列表

示例值:

func (*UserBuilder) UnionId

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

用户的union_id,应用开发商发布的不同应用中同一用户的标识,不同ID的说明参见 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:on_94a1ee5551019f18cd73d9f111898cf2

func (*UserBuilder) UserId

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

用户的user_id,租户内用户的唯一标识,不同ID的说明参见 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:3e3cf96b

func (*UserBuilder) WorkStation

func (builder *UserBuilder) WorkStation(workStation string) *UserBuilder

工位

示例值:北楼-H34

type UserContactInfo

type UserContactInfo struct {
	UserId *string `json:"user_id,omitempty"` // 用户id,值为user_id_type所指定的类型。如果查询的手机号、邮箱不存在,或者无权限查看对应的用户,则此项为空。
	Mobile *string `json:"mobile,omitempty"`  // 手机号,通过手机号查询时返回
	Email  *string `json:"email,omitempty"`   // 邮箱,通过邮箱查询时返回
}

type UserContactInfoBuilder

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

func NewUserContactInfoBuilder

func NewUserContactInfoBuilder() *UserContactInfoBuilder

func (*UserContactInfoBuilder) Build

func (builder *UserContactInfoBuilder) Build() *UserContactInfo

func (*UserContactInfoBuilder) Email

func (builder *UserContactInfoBuilder) Email(email string) *UserContactInfoBuilder

邮箱,通过邮箱查询时返回

示例值:lisi@z.com

func (*UserContactInfoBuilder) Mobile

func (builder *UserContactInfoBuilder) Mobile(mobile string) *UserContactInfoBuilder

手机号,通过手机号查询时返回

示例值:13812345678

func (*UserContactInfoBuilder) UserId

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

用户id,值为user_id_type所指定的类型。如果查询的手机号、邮箱不存在,或者无权限查看对应的用户,则此项为空。

示例值:ou_979112345678741d29069abcdef089d4

type UserCustomAttr

type UserCustomAttr struct {
	Type  *string              `json:"type,omitempty"`  // 自定义字段类型   ;- `TEXT`:文本;- `HREF`:网页;- `ENUMERATION`:枚举;- `PICTURE_ENUM`:图片;- `GENERIC_USER`:用户;;具体说明参见常见问题的[用户接口相关问题](https://open.feishu.cn/document/ugTN1YjL4UTN24CO1UjN/uQzN1YjL0cTN24CN3UjN#77061525)
	Id    *string              `json:"id,omitempty"`    // 自定义字段ID
	Value *UserCustomAttrValue `json:"value,omitempty"` // 自定义字段取值
}

type UserCustomAttrBuilder

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

func NewUserCustomAttrBuilder

func NewUserCustomAttrBuilder() *UserCustomAttrBuilder

func (*UserCustomAttrBuilder) Build

func (builder *UserCustomAttrBuilder) Build() *UserCustomAttr

func (*UserCustomAttrBuilder) Id

自定义字段ID

示例值:DemoId

func (*UserCustomAttrBuilder) Type

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

自定义字段类型 ;- `TEXT`:文本;- `HREF`:网页;- `ENUMERATION`:枚举;- `PICTURE_ENUM`:图片;- `GENERIC_USER`:用户;;具体说明参见常见问题的[用户接口相关问题](https://open.feishu.cn/document/ugTN1YjL4UTN24CO1UjN/uQzN1YjL0cTN24CN3UjN#77061525)

示例值:TEXT

func (*UserCustomAttrBuilder) Value

自定义字段取值

示例值:

type UserCustomAttrValue

type UserCustomAttrValue struct {
	Text        *string                `json:"text,omitempty"`         // 字段类型为`TEXT`时该参数定义字段值,必填;字段类型为`HREF`时该参数定义网页标题,必填
	Url         *string                `json:"url,omitempty"`          // 字段类型为 HREF 时,该参数定义默认 URL,例如手机端跳转小程序,PC端跳转网页
	PcUrl       *string                `json:"pc_url,omitempty"`       // 字段类型为 HREF 时,该参数定义PC端 URL
	OptionId    *string                `json:"option_id,omitempty"`    // 字段类型为 ENUMERATION 或 PICTURE_ENUM 时,该参数定义选项值
	OptionValue *string                `json:"option_value,omitempty"` // 选项类型的值。;;表示 成员详情/自定义字段 中选项选中的值
	Name        *string                `json:"name,omitempty"`         // 选项类型为图片时,表示图片的名称
	PictureUrl  *string                `json:"picture_url,omitempty"`  // 图片链接
	GenericUser *CustomAttrGenericUser `json:"generic_user,omitempty"` // 字段类型为 GENERIC_USER 时,该参数定义引用人员
}

type UserCustomAttrValueBuilder

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

func NewUserCustomAttrValueBuilder

func NewUserCustomAttrValueBuilder() *UserCustomAttrValueBuilder

func (*UserCustomAttrValueBuilder) Build

func (*UserCustomAttrValueBuilder) GenericUser

字段类型为 GENERIC_USER 时,该参数定义引用人员

示例值:

func (*UserCustomAttrValueBuilder) Name

选项类型为图片时,表示图片的名称

示例值:name

func (*UserCustomAttrValueBuilder) OptionId

func (builder *UserCustomAttrValueBuilder) OptionId(optionId string) *UserCustomAttrValueBuilder

字段类型为 ENUMERATION 或 PICTURE_ENUM 时,该参数定义选项值

示例值:edcvfrtg

func (*UserCustomAttrValueBuilder) OptionValue

func (builder *UserCustomAttrValueBuilder) OptionValue(optionValue string) *UserCustomAttrValueBuilder

选项类型的值。;;表示 成员详情/自定义字段 中选项选中的值

示例值:option

func (*UserCustomAttrValueBuilder) PcUrl

字段类型为 HREF 时,该参数定义PC端 URL

示例值:http://www.fs.cn

func (*UserCustomAttrValueBuilder) PictureUrl

func (builder *UserCustomAttrValueBuilder) PictureUrl(pictureUrl string) *UserCustomAttrValueBuilder

图片链接

示例值:https://xxxxxxxxxxxxxxxxxx

func (*UserCustomAttrValueBuilder) Text

字段类型为`TEXT`时该参数定义字段值,必填;字段类型为`HREF`时该参数定义网页标题,必填

示例值:DemoText

func (*UserCustomAttrValueBuilder) Url

字段类型为 HREF 时,该参数定义默认 URL,例如手机端跳转小程序,PC端跳转网页

示例值:http://www.fs.cn

type UserDepartmentInfo added in v3.0.12

type UserDepartmentInfo struct {
	DepartmentId    *string `json:"department_id,omitempty"`    // 对应的部门ID
	UserOrder       *int    `json:"user_order,omitempty"`       // 用户在部门内的排序
	DepartmentOrder *int    `json:"department_order,omitempty"` // 用户的部门间的排序
}

type UserDepartmentInfoBuilder added in v3.0.12

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

func NewUserDepartmentInfoBuilder added in v3.0.12

func NewUserDepartmentInfoBuilder() *UserDepartmentInfoBuilder

func (*UserDepartmentInfoBuilder) Build added in v3.0.12

func (*UserDepartmentInfoBuilder) DepartmentId added in v3.0.12

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

对应的部门ID

示例值:

func (*UserDepartmentInfoBuilder) DepartmentOrder added in v3.0.12

func (builder *UserDepartmentInfoBuilder) DepartmentOrder(departmentOrder int) *UserDepartmentInfoBuilder

用户的部门间的排序

示例值:

func (*UserDepartmentInfoBuilder) UserOrder added in v3.0.12

func (builder *UserDepartmentInfoBuilder) UserOrder(userOrder int) *UserDepartmentInfoBuilder

用户在部门内的排序

示例值:

type UserEvent

type UserEvent struct {
	OpenId          *string `json:"open_id,omitempty"`          // 用户的open_id [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	UnionId         *string `json:"union_id,omitempty"`         // 用户的union_id [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	UserId          *string `json:"user_id,omitempty"`          // 租户内用户的唯一标识 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	Name            *string `json:"name,omitempty"`             // 用户名
	EnName          *string `json:"en_name,omitempty"`          // 英文名
	Nickname        *string `json:"nickname,omitempty"`         // 别名
	Email           *string `json:"email,omitempty"`            // 邮箱
	EnterpriseEmail *string `json:"enterprise_email,omitempty"` // 企业邮箱
	JobTitle        *string `json:"job_title,omitempty"`        // 职务
	Mobile          *string `json:"mobile,omitempty"`           // 手机号

	Gender        *int        `json:"gender,omitempty"`         // 性别
	Avatar        *AvatarInfo `json:"avatar,omitempty"`         // 用户头像信息
	Status        *UserStatus `json:"status,omitempty"`         // 用户状态
	DepartmentIds []string    `json:"department_ids,omitempty"` // 用户所属部门的ID列表
	LeaderUserId  *string     `json:"leader_user_id,omitempty"` // 用户的直接主管的用户open_id [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)
	City          *string     `json:"city,omitempty"`           // 城市
	Country       *string     `json:"country,omitempty"`        // 国家
	WorkStation   *string     `json:"work_station,omitempty"`   // 工位
	JoinTime      *int        `json:"join_time,omitempty"`      // 入职时间

	EmployeeNo   *string `json:"employee_no,omitempty"`   // 工号
	EmployeeType *int    `json:"employee_type,omitempty"` // 员工类型

	Orders []*UserOrder `json:"orders,omitempty"` // 用户排序信息

	CustomAttrs             []*UserCustomAttr `json:"custom_attrs,omitempty"`                // 自定义属性
	JobLevelId              *string           `json:"job_level_id,omitempty"`                // 职级ID
	JobFamilyId             *string           `json:"job_family_id,omitempty"`               // 序列ID
	DottedLineLeaderUserIds []string          `json:"dotted_line_leader_user_ids,omitempty"` // 虚线上级ID
}

type UserEventBuilder

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

func NewUserEventBuilder

func NewUserEventBuilder() *UserEventBuilder

func (*UserEventBuilder) Avatar

func (builder *UserEventBuilder) Avatar(avatar *AvatarInfo) *UserEventBuilder

用户头像信息

示例值:

func (*UserEventBuilder) Build

func (builder *UserEventBuilder) Build() *UserEvent

func (*UserEventBuilder) City

func (builder *UserEventBuilder) City(city string) *UserEventBuilder

城市

示例值:杭州

func (*UserEventBuilder) Country

func (builder *UserEventBuilder) Country(country string) *UserEventBuilder

国家

示例值:中国

func (*UserEventBuilder) CustomAttrs

func (builder *UserEventBuilder) CustomAttrs(customAttrs []*UserCustomAttr) *UserEventBuilder

自定义属性

示例值:

func (*UserEventBuilder) DepartmentIds

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

用户所属部门的ID列表

示例值:

func (*UserEventBuilder) DottedLineLeaderUserIds added in v3.0.27

func (builder *UserEventBuilder) DottedLineLeaderUserIds(dottedLineLeaderUserIds []string) *UserEventBuilder

虚线上级ID

示例值:

func (*UserEventBuilder) Email

func (builder *UserEventBuilder) Email(email string) *UserEventBuilder

邮箱

示例值:zhangsan@gmail.com

func (*UserEventBuilder) EmployeeNo

func (builder *UserEventBuilder) EmployeeNo(employeeNo string) *UserEventBuilder

工号

示例值:e33ggbyz

func (*UserEventBuilder) EmployeeType

func (builder *UserEventBuilder) EmployeeType(employeeType int) *UserEventBuilder

员工类型

示例值:1

func (*UserEventBuilder) EnName

func (builder *UserEventBuilder) EnName(enName string) *UserEventBuilder

英文名

示例值:San Zhang

func (*UserEventBuilder) EnterpriseEmail

func (builder *UserEventBuilder) EnterpriseEmail(enterpriseEmail string) *UserEventBuilder

企业邮箱

示例值:demo@mail.com

func (*UserEventBuilder) Gender

func (builder *UserEventBuilder) Gender(gender int) *UserEventBuilder

性别

示例值:1

func (*UserEventBuilder) JobFamilyId added in v3.0.15

func (builder *UserEventBuilder) JobFamilyId(jobFamilyId string) *UserEventBuilder

序列ID

示例值:mga5oa8ayjlp9rb

func (*UserEventBuilder) JobLevelId added in v3.0.15

func (builder *UserEventBuilder) JobLevelId(jobLevelId string) *UserEventBuilder

职级ID

示例值:mga5oa8ayjlp9rb

func (*UserEventBuilder) JobTitle

func (builder *UserEventBuilder) JobTitle(jobTitle string) *UserEventBuilder

职务

示例值:软件工程师

func (*UserEventBuilder) JoinTime

func (builder *UserEventBuilder) JoinTime(joinTime int) *UserEventBuilder

入职时间

示例值:1615381702

func (*UserEventBuilder) LeaderUserId

func (builder *UserEventBuilder) LeaderUserId(leaderUserId string) *UserEventBuilder

用户的直接主管的用户open_id [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:ou_3ghm8a2u0eftg0ff377125s5dd275z09

func (*UserEventBuilder) Mobile

func (builder *UserEventBuilder) Mobile(mobile string) *UserEventBuilder

手机号

示例值:12345678910

func (*UserEventBuilder) Name

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

用户名

示例值:张三

func (*UserEventBuilder) Nickname

func (builder *UserEventBuilder) Nickname(nickname string) *UserEventBuilder

别名

示例值:Sunny Zhang

func (*UserEventBuilder) OpenId

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

用户的open_id [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62

func (*UserEventBuilder) Orders

func (builder *UserEventBuilder) Orders(orders []*UserOrder) *UserEventBuilder

用户排序信息

示例值:

func (*UserEventBuilder) Status

func (builder *UserEventBuilder) Status(status *UserStatus) *UserEventBuilder

用户状态

示例值:

func (*UserEventBuilder) UnionId

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

用户的union_id [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:on_576833b917gda3d939b9a3c2d53e72c8

func (*UserEventBuilder) UserId

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

租户内用户的唯一标识 [用户相关的 ID 概念](https://open.feishu.cn/document/home/user-identity-introduction/introduction)

示例值:e33ggbyz

func (*UserEventBuilder) WorkStation

func (builder *UserEventBuilder) WorkStation(workStation string) *UserEventBuilder

工位

示例值:杭州

type UserGroup

type UserGroup struct {
	UserGroupId *string `json:"user_group_id,omitempty"` // 用户组的自定义ID
	Name        *string `json:"name,omitempty"`          // 用户组的名称
	Type        *int    `json:"type,omitempty"`          // 用户组的类型
	MemberCount *int    `json:"member_count,omitempty"`  // 成员数量
	Status      *int    `json:"status,omitempty"`        // 用户组状态
}

type UserGroupBuilder

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

func NewUserGroupBuilder

func NewUserGroupBuilder() *UserGroupBuilder

func (*UserGroupBuilder) Build

func (builder *UserGroupBuilder) Build() *UserGroup

func (*UserGroupBuilder) MemberCount

func (builder *UserGroupBuilder) MemberCount(memberCount int) *UserGroupBuilder

成员数量

示例值:10

func (*UserGroupBuilder) Name

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

用户组的名称

示例值:userGroupName

func (*UserGroupBuilder) Status

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

用户组状态

示例值:1

func (*UserGroupBuilder) Type

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

用户组的类型

示例值:1

func (*UserGroupBuilder) UserGroupId

func (builder *UserGroupBuilder) UserGroupId(userGroupId string) *UserGroupBuilder

用户组的自定义ID

示例值:test

type UserGroupMember

type UserGroupMember struct {
}

type UserI18nName added in v3.0.20

type UserI18nName struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 用户的中文名
	JaJp *string `json:"ja_jp,omitempty"` // 用户的日文名
	EnUs *string `json:"en_us,omitempty"` // 用户的英文名
}

type UserI18nNameBuilder added in v3.0.20

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

func NewUserI18nNameBuilder added in v3.0.20

func NewUserI18nNameBuilder() *UserI18nNameBuilder

func (*UserI18nNameBuilder) Build added in v3.0.20

func (builder *UserI18nNameBuilder) Build() *UserI18nName

func (*UserI18nNameBuilder) EnUs added in v3.0.20

func (builder *UserI18nNameBuilder) EnUs(enUs string) *UserI18nNameBuilder

用户的英文名

示例值:en_name

func (*UserI18nNameBuilder) JaJp added in v3.0.20

func (builder *UserI18nNameBuilder) JaJp(jaJp string) *UserI18nNameBuilder

用户的日文名

示例值:ja_jp_name

func (*UserI18nNameBuilder) ZhCn added in v3.0.20

func (builder *UserI18nNameBuilder) ZhCn(zhCn string) *UserI18nNameBuilder

用户的中文名

示例值:zh_cn_name

type UserId added in v3.0.15

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

type UserIdBuilder added in v3.0.15

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

func NewUserIdBuilder added in v3.0.15

func NewUserIdBuilder() *UserIdBuilder

func (*UserIdBuilder) Build added in v3.0.15

func (builder *UserIdBuilder) Build() *UserId

func (*UserIdBuilder) OpenId added in v3.0.15

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

示例值:

func (*UserIdBuilder) UnionId added in v3.0.15

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

示例值:

func (*UserIdBuilder) UserId added in v3.0.15

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

示例值:

type UserOrder

type UserOrder struct {
	DepartmentId    *string `json:"department_id,omitempty"`    // 排序信息对应的部门ID, ID值与查询参数中的department_id_type 对应。;;表示用户所在的、且需要排序的部门。;;不同 ID 的说明参见及获取方式参见 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview)
	UserOrder       *int    `json:"user_order,omitempty"`       // 用户在其直属部门内的排序,数值越大,排序越靠前
	DepartmentOrder *int    `json:"department_order,omitempty"` // 用户所属的多个部门间的排序,数值越大,排序越靠前
	IsPrimaryDept   *bool   `json:"is_primary_dept,omitempty"`  // 是否为用户主部门
}

type UserOrderBuilder

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

func NewUserOrderBuilder

func NewUserOrderBuilder() *UserOrderBuilder

func (*UserOrderBuilder) Build

func (builder *UserOrderBuilder) Build() *UserOrder

func (*UserOrderBuilder) DepartmentId

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

排序信息对应的部门ID, ID值与查询参数中的department_id_type 对应。;;表示用户所在的、且需要排序的部门。;;不同 ID 的说明参见及获取方式参见 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview)

示例值:od-4e6ac4d14bcd5071a37a39de902c7141

func (*UserOrderBuilder) DepartmentOrder

func (builder *UserOrderBuilder) DepartmentOrder(departmentOrder int) *UserOrderBuilder

用户所属的多个部门间的排序,数值越大,排序越靠前

示例值:100

func (*UserOrderBuilder) IsPrimaryDept added in v3.0.20

func (builder *UserOrderBuilder) IsPrimaryDept(isPrimaryDept bool) *UserOrderBuilder

是否为用户主部门

示例值:true

func (*UserOrderBuilder) UserOrder

func (builder *UserOrderBuilder) UserOrder(userOrder int) *UserOrderBuilder

用户在其直属部门内的排序,数值越大,排序越靠前

示例值:100

type UserPosition

type UserPosition struct {
	PositionCode       *string `json:"position_code,omitempty"`        // 岗位Code
	PositionName       *string `json:"position_name,omitempty"`        // 岗位名称
	DepartmentId       *string `json:"department_id,omitempty"`        // 岗位部门ID
	LeaderUserId       *string `json:"leader_user_id,omitempty"`       // 上级领导ID
	LeaderPositionCode *string `json:"leader_position_code,omitempty"` // 本岗位领导的岗位code
	IsMajor            *bool   `json:"is_major,omitempty"`             // 是否主岗,只允许一个主岗sd
}

type UserPositionBuilder

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

func NewUserPositionBuilder

func NewUserPositionBuilder() *UserPositionBuilder

func (*UserPositionBuilder) Build

func (builder *UserPositionBuilder) Build() *UserPosition

func (*UserPositionBuilder) DepartmentId

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

岗位部门ID

示例值:

func (*UserPositionBuilder) IsMajor

func (builder *UserPositionBuilder) IsMajor(isMajor bool) *UserPositionBuilder

是否主岗,只允许一个主岗sd

示例值:

func (*UserPositionBuilder) LeaderPositionCode

func (builder *UserPositionBuilder) LeaderPositionCode(leaderPositionCode string) *UserPositionBuilder

本岗位领导的岗位code

示例值:

func (*UserPositionBuilder) LeaderUserId

func (builder *UserPositionBuilder) LeaderUserId(leaderUserId string) *UserPositionBuilder

上级领导ID

示例值:

func (*UserPositionBuilder) PositionCode

func (builder *UserPositionBuilder) PositionCode(positionCode string) *UserPositionBuilder

岗位Code

示例值:

func (*UserPositionBuilder) PositionName

func (builder *UserPositionBuilder) PositionName(positionName string) *UserPositionBuilder

岗位名称

示例值:

type UserStatus

type UserStatus struct {
	IsFrozen    *bool `json:"is_frozen,omitempty"`    // 是否暂停
	IsResigned  *bool `json:"is_resigned,omitempty"`  // 是否离职
	IsActivated *bool `json:"is_activated,omitempty"` // 是否激活
	IsExited    *bool `json:"is_exited,omitempty"`    // 是否主动退出,主动退出一段时间后用户会自动转为已离职
	IsUnjoin    *bool `json:"is_unjoin,omitempty"`    // 是否未加入,需要用户自主确认才能加入团队
}

type UserStatusBuilder

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

func NewUserStatusBuilder

func NewUserStatusBuilder() *UserStatusBuilder

func (*UserStatusBuilder) Build

func (builder *UserStatusBuilder) Build() *UserStatus

func (*UserStatusBuilder) IsActivated

func (builder *UserStatusBuilder) IsActivated(isActivated bool) *UserStatusBuilder

是否激活

示例值:true

func (*UserStatusBuilder) IsExited

func (builder *UserStatusBuilder) IsExited(isExited bool) *UserStatusBuilder

是否主动退出,主动退出一段时间后用户会自动转为已离职

示例值:false

func (*UserStatusBuilder) IsFrozen

func (builder *UserStatusBuilder) IsFrozen(isFrozen bool) *UserStatusBuilder

是否暂停

示例值:false

func (*UserStatusBuilder) IsResigned

func (builder *UserStatusBuilder) IsResigned(isResigned bool) *UserStatusBuilder

是否离职

示例值:false

func (*UserStatusBuilder) IsUnjoin

func (builder *UserStatusBuilder) IsUnjoin(isUnjoin bool) *UserStatusBuilder

是否未加入,需要用户自主确认才能加入团队

示例值:false

type WorkCity added in v3.0.20

type WorkCity struct {
	WorkCityId *string        `json:"work_city_id,omitempty"` // 工作城市ID
	Name       *string        `json:"name,omitempty"`         // 工作城市名称。1-100字符,支持中、英文及符号
	I18nName   []*I18nContent `json:"i18n_name,omitempty"`    // 多语言工作城市
	Status     *bool          `json:"status,omitempty"`       // 是否启用
}

type WorkCityBuilder added in v3.0.20

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

func NewWorkCityBuilder added in v3.0.20

func NewWorkCityBuilder() *WorkCityBuilder

func (*WorkCityBuilder) Build added in v3.0.20

func (builder *WorkCityBuilder) Build() *WorkCity

func (*WorkCityBuilder) I18nName added in v3.0.20

func (builder *WorkCityBuilder) I18nName(i18nName []*I18nContent) *WorkCityBuilder

多语言工作城市

示例值:

func (*WorkCityBuilder) Name added in v3.0.20

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

工作城市名称。1-100字符,支持中、英文及符号

示例值:北京

func (*WorkCityBuilder) Status added in v3.0.20

func (builder *WorkCityBuilder) Status(status bool) *WorkCityBuilder

是否启用

示例值:true 表示启用, false表示未启用

func (*WorkCityBuilder) WorkCityId added in v3.0.20

func (builder *WorkCityBuilder) WorkCityId(workCityId string) *WorkCityBuilder

工作城市ID

示例值:0dd1ec95f021

Jump to

Keyboard shortcuts

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