Documentation ¶
Overview ¶
Code generated by lark suite oapi sdk gen
Code generated by lark suite oapi sdk gen ¶
Code generated by lark suite oapi sdk gen
Index ¶
- func SetDepartmentCreatedEventHandler(conf *config.Config, ...)
- func SetDepartmentDeletedEventHandler(conf *config.Config, ...)
- func SetDepartmentUpdatedEventHandler(conf *config.Config, ...)
- func SetEmployeeTypeEnumActivedEventHandler(conf *config.Config, ...)
- func SetEmployeeTypeEnumCreatedEventHandler(conf *config.Config, ...)
- func SetEmployeeTypeEnumDeactivatedEventHandler(conf *config.Config, ...)
- func SetEmployeeTypeEnumDeletedEventHandler(conf *config.Config, ...)
- func SetEmployeeTypeEnumUpdatedEventHandler(conf *config.Config, ...)
- func SetScopeUpdatedEventHandler(conf *config.Config, ...)
- func SetUserCreatedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *UserCreatedEvent) error)
- func SetUserDeletedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *UserDeletedEvent) error)
- func SetUserUpdatedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *UserUpdatedEvent) error)
- type AvatarInfo
- type CustomAttr
- type CustomAttrEvent
- type CustomAttrGenericUser
- type CustomAttrListReqCall
- type CustomAttrListResult
- type CustomAttrOption
- type CustomAttrOptions
- type CustomAttrService
- type Department
- type DepartmentCount
- type DepartmentCreateReqCall
- type DepartmentCreateResult
- type DepartmentCreatedEvent
- type DepartmentCreatedEventData
- type DepartmentCreatedEventHandler
- type DepartmentDeleteReqCall
- type DepartmentDeletedEvent
- type DepartmentDeletedEventData
- type DepartmentDeletedEventHandler
- type DepartmentEvent
- type DepartmentGetReqCall
- type DepartmentGetResult
- type DepartmentI18nName
- type DepartmentListReqCall
- func (rc *DepartmentListReqCall) Do() (*DepartmentListResult, error)
- func (rc *DepartmentListReqCall) SetDepartmentIdType(departmentIdType string)
- func (rc *DepartmentListReqCall) SetFetchChild(fetchChild bool)
- func (rc *DepartmentListReqCall) SetPageSize(pageSize int)
- func (rc *DepartmentListReqCall) SetPageToken(pageToken string)
- func (rc *DepartmentListReqCall) SetParentDepartmentId(parentDepartmentId string)
- func (rc *DepartmentListReqCall) SetUserIdType(userIdType string)
- type DepartmentListResult
- type DepartmentParent
- type DepartmentParentReqCall
- func (rc *DepartmentParentReqCall) Do() (*DepartmentParentResult, error)
- func (rc *DepartmentParentReqCall) SetDepartmentId(departmentId string)
- func (rc *DepartmentParentReqCall) SetDepartmentIdType(departmentIdType string)
- func (rc *DepartmentParentReqCall) SetPageSize(pageSize int)
- func (rc *DepartmentParentReqCall) SetPageToken(pageToken string)
- func (rc *DepartmentParentReqCall) SetUserIdType(userIdType string)
- type DepartmentParentResult
- type DepartmentPatchReqCall
- type DepartmentPatchResult
- type DepartmentSearchReqBody
- type DepartmentSearchReqCall
- func (rc *DepartmentSearchReqCall) Do() (*DepartmentSearchResult, error)
- func (rc *DepartmentSearchReqCall) SetDepartmentIdType(departmentIdType string)
- func (rc *DepartmentSearchReqCall) SetPageSize(pageSize int)
- func (rc *DepartmentSearchReqCall) SetPageToken(pageToken string)
- func (rc *DepartmentSearchReqCall) SetUserIdType(userIdType string)
- type DepartmentSearchResult
- type DepartmentService
- func (departments *DepartmentService) Create(ctx *core.Context, body *Department, optFns ...request.OptFn) *DepartmentCreateReqCall
- func (departments *DepartmentService) Delete(ctx *core.Context, optFns ...request.OptFn) *DepartmentDeleteReqCall
- func (departments *DepartmentService) Get(ctx *core.Context, optFns ...request.OptFn) *DepartmentGetReqCall
- func (departments *DepartmentService) List(ctx *core.Context, optFns ...request.OptFn) *DepartmentListReqCall
- func (departments *DepartmentService) Parent(ctx *core.Context, optFns ...request.OptFn) *DepartmentParentReqCall
- func (departments *DepartmentService) Patch(ctx *core.Context, body *Department, optFns ...request.OptFn) *DepartmentPatchReqCall
- func (departments *DepartmentService) Search(ctx *core.Context, body *DepartmentSearchReqBody, optFns ...request.OptFn) *DepartmentSearchReqCall
- func (departments *DepartmentService) Update(ctx *core.Context, body *Department, optFns ...request.OptFn) *DepartmentUpdateReqCall
- type DepartmentStatus
- type DepartmentUnit
- type DepartmentUpdateReqCall
- type DepartmentUpdateResult
- type DepartmentUpdatedEvent
- type DepartmentUpdatedEventData
- type DepartmentUpdatedEventHandler
- type EmployeeTypeEnum
- type EmployeeTypeEnumActivedEvent
- type EmployeeTypeEnumActivedEventData
- type EmployeeTypeEnumActivedEventHandler
- type EmployeeTypeEnumCreateReqCall
- type EmployeeTypeEnumCreateResult
- type EmployeeTypeEnumCreatedEvent
- type EmployeeTypeEnumCreatedEventData
- type EmployeeTypeEnumCreatedEventHandler
- type EmployeeTypeEnumDeactivatedEvent
- type EmployeeTypeEnumDeactivatedEventData
- type EmployeeTypeEnumDeactivatedEventHandler
- type EmployeeTypeEnumDeleteReqCall
- type EmployeeTypeEnumDeletedEvent
- type EmployeeTypeEnumDeletedEventData
- type EmployeeTypeEnumDeletedEventHandler
- type EmployeeTypeEnumListReqCall
- type EmployeeTypeEnumListResult
- type EmployeeTypeEnumService
- func (employeeTypeEnums *EmployeeTypeEnumService) Create(ctx *core.Context, body *EmployeeTypeEnum, optFns ...request.OptFn) *EmployeeTypeEnumCreateReqCall
- func (employeeTypeEnums *EmployeeTypeEnumService) Delete(ctx *core.Context, optFns ...request.OptFn) *EmployeeTypeEnumDeleteReqCall
- func (employeeTypeEnums *EmployeeTypeEnumService) List(ctx *core.Context, optFns ...request.OptFn) *EmployeeTypeEnumListReqCall
- func (employeeTypeEnums *EmployeeTypeEnumService) Update(ctx *core.Context, body *EmployeeTypeEnum, optFns ...request.OptFn) *EmployeeTypeEnumUpdateReqCall
- type EmployeeTypeEnumUpdateReqCall
- type EmployeeTypeEnumUpdateResult
- type EmployeeTypeEnumUpdatedEvent
- type EmployeeTypeEnumUpdatedEventData
- type EmployeeTypeEnumUpdatedEventHandler
- type Group
- type GroupCreateReqBody
- type GroupCreateReqCall
- type GroupCreateResult
- type GroupDeleteReqCall
- type GroupEvent
- type GroupGetReqCall
- type GroupGetResult
- type GroupMemberAddReqBody
- type GroupMemberAddReqCall
- type GroupMemberRemoveReqBody
- type GroupMemberRemoveReqCall
- type GroupMemberService
- func (groupMembers *GroupMemberService) Add(ctx *core.Context, body *GroupMemberAddReqBody, optFns ...request.OptFn) *GroupMemberAddReqCall
- func (groupMembers *GroupMemberService) Remove(ctx *core.Context, body *GroupMemberRemoveReqBody, optFns ...request.OptFn) *GroupMemberRemoveReqCall
- func (groupMembers *GroupMemberService) Simplelist(ctx *core.Context, optFns ...request.OptFn) *GroupMemberSimplelistReqCall
- type GroupMemberSimplelistReqCall
- func (rc *GroupMemberSimplelistReqCall) Do() (*GroupMemberSimplelistResult, error)
- func (rc *GroupMemberSimplelistReqCall) SetGroupId(groupId string)
- func (rc *GroupMemberSimplelistReqCall) SetMemberIdType(memberIdType string)
- func (rc *GroupMemberSimplelistReqCall) SetMemberType(memberType string)
- func (rc *GroupMemberSimplelistReqCall) SetPageSize(pageSize int)
- func (rc *GroupMemberSimplelistReqCall) SetPageToken(pageToken string)
- type GroupMemberSimplelistResult
- type GroupPatchReqBody
- type GroupPatchReqCall
- type GroupService
- func (groups *GroupService) Create(ctx *core.Context, body *GroupCreateReqBody, optFns ...request.OptFn) *GroupCreateReqCall
- func (groups *GroupService) Delete(ctx *core.Context, optFns ...request.OptFn) *GroupDeleteReqCall
- func (groups *GroupService) Get(ctx *core.Context, optFns ...request.OptFn) *GroupGetReqCall
- func (groups *GroupService) Patch(ctx *core.Context, body *GroupPatchReqBody, optFns ...request.OptFn) *GroupPatchReqCall
- func (groups *GroupService) Simplelist(ctx *core.Context, optFns ...request.OptFn) *GroupSimplelistReqCall
- type GroupSimplelistReqCall
- type GroupSimplelistResult
- type I18nContent
- type Memberlist
- type NotificationOption
- type OldDepartmentObject
- type OldUserObject
- type Scope
- type ScopeService
- type ScopeUpdatedEvent
- type ScopeUpdatedEventData
- type ScopeUpdatedEventHandler
- type Service
- type User
- type UserCreateReqCall
- type UserCreateResult
- type UserCreatedEvent
- type UserCreatedEventData
- type UserCreatedEventHandler
- type UserCustomAttr
- type UserCustomAttrValue
- type UserDeleteReqBody
- type UserDeleteReqCall
- type UserDeletedEvent
- type UserDeletedEventData
- type UserDeletedEventHandler
- type UserEvent
- type UserGetReqCall
- type UserGetResult
- type UserGroup
- type UserListReqCall
- func (rc *UserListReqCall) Do() (*UserListResult, error)
- func (rc *UserListReqCall) SetDepartmentId(departmentId string)
- func (rc *UserListReqCall) SetDepartmentIdType(departmentIdType string)
- func (rc *UserListReqCall) SetPageSize(pageSize int)
- func (rc *UserListReqCall) SetPageToken(pageToken string)
- func (rc *UserListReqCall) SetUserIdType(userIdType string)
- type UserListResult
- type UserOrder
- type UserPatchReqCall
- type UserPatchResult
- type UserPosition
- type UserService
- func (users *UserService) Create(ctx *core.Context, body *User, optFns ...request.OptFn) *UserCreateReqCall
- func (users *UserService) Delete(ctx *core.Context, body *UserDeleteReqBody, optFns ...request.OptFn) *UserDeleteReqCall
- func (users *UserService) Get(ctx *core.Context, optFns ...request.OptFn) *UserGetReqCall
- func (users *UserService) List(ctx *core.Context, optFns ...request.OptFn) *UserListReqCall
- func (users *UserService) Patch(ctx *core.Context, body *User, optFns ...request.OptFn) *UserPatchReqCall
- func (users *UserService) Update(ctx *core.Context, body *User, optFns ...request.OptFn) *UserUpdateReqCall
- type UserStatus
- type UserUpdateReqCall
- type UserUpdateResult
- type UserUpdatedEvent
- type UserUpdatedEventData
- type UserUpdatedEventHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetEmployeeTypeEnumActivedEventHandler ¶ added in v1.1.26
func SetEmployeeTypeEnumCreatedEventHandler ¶ added in v1.1.26
func SetEmployeeTypeEnumDeactivatedEventHandler ¶ added in v1.1.26
func SetEmployeeTypeEnumDeletedEventHandler ¶ added in v1.1.26
func SetEmployeeTypeEnumUpdatedEventHandler ¶ added in v1.1.26
Types ¶
type AvatarInfo ¶
type AvatarInfo struct { Avatar72 string `json:"avatar_72,omitempty"` Avatar240 string `json:"avatar_240,omitempty"` Avatar640 string `json:"avatar_640,omitempty"` AvatarOrigin string `json:"avatar_origin,omitempty"` ForceSendFields []string `json:"-"` }
func (*AvatarInfo) MarshalJSON ¶ added in v1.1.21
func (s *AvatarInfo) MarshalJSON() ([]byte, error)
type CustomAttr ¶ added in v1.1.41
type CustomAttr struct { Id string `json:"id,omitempty"` Type string `json:"type,omitempty"` Options *CustomAttrOptions `json:"options,omitempty"` I18nName []*I18nContent `json:"i18n_name,omitempty"` ForceSendFields []string `json:"-"` }
func (*CustomAttr) MarshalJSON ¶ added in v1.1.41
func (s *CustomAttr) MarshalJSON() ([]byte, error)
type CustomAttrEvent ¶ added in v1.1.21
type CustomAttrEvent struct { ContactFieldKey string `json:"contact_field_key,omitempty"` FieldValueTypes string `json:"field_value_types,omitempty"` I18nFieldNames string `json:"i18n_field_names,omitempty"` AllowOpenQuery string `json:"allow_open_query,omitempty"` ForceSendFields []string `json:"-"` }
func (*CustomAttrEvent) MarshalJSON ¶ added in v1.1.21
func (s *CustomAttrEvent) MarshalJSON() ([]byte, error)
type CustomAttrGenericUser ¶ added in v1.1.41
type CustomAttrGenericUser struct { Id string `json:"id,omitempty"` Type int `json:"type,omitempty"` ForceSendFields []string `json:"-"` }
func (*CustomAttrGenericUser) MarshalJSON ¶ added in v1.1.41
func (s *CustomAttrGenericUser) MarshalJSON() ([]byte, error)
type CustomAttrListReqCall ¶ added in v1.1.41
type CustomAttrListReqCall struct {
// contains filtered or unexported fields
}
func (*CustomAttrListReqCall) Do ¶ added in v1.1.41
func (rc *CustomAttrListReqCall) Do() (*CustomAttrListResult, error)
func (*CustomAttrListReqCall) SetPageSize ¶ added in v1.1.41
func (rc *CustomAttrListReqCall) SetPageSize(pageSize int)
func (*CustomAttrListReqCall) SetPageToken ¶ added in v1.1.41
func (rc *CustomAttrListReqCall) SetPageToken(pageToken string)
type CustomAttrListResult ¶ added in v1.1.41
type CustomAttrListResult struct { Items []*CustomAttr `json:"items,omitempty"` PageToken string `json:"page_token,omitempty"` HasMore bool `json:"has_more,omitempty"` }
type CustomAttrOption ¶ added in v1.1.41
type CustomAttrOption struct { Id string `json:"id,omitempty"` Value string `json:"value,omitempty"` Name string `json:"name,omitempty"` ForceSendFields []string `json:"-"` }
func (*CustomAttrOption) MarshalJSON ¶ added in v1.1.41
func (s *CustomAttrOption) MarshalJSON() ([]byte, error)
type CustomAttrOptions ¶ added in v1.1.41
type CustomAttrOptions struct { DefaultOptionId string `json:"default_option_id,omitempty"` OptionType string `json:"option_type,omitempty"` Options []*CustomAttrOption `json:"options,omitempty"` ForceSendFields []string `json:"-"` }
func (*CustomAttrOptions) MarshalJSON ¶ added in v1.1.41
func (s *CustomAttrOptions) MarshalJSON() ([]byte, error)
type CustomAttrService ¶ added in v1.1.41
type CustomAttrService struct {
// contains filtered or unexported fields
}
func (*CustomAttrService) List ¶ added in v1.1.41
func (customAttrs *CustomAttrService) List(ctx *core.Context, optFns ...request.OptFn) *CustomAttrListReqCall
type Department ¶
type Department struct { Name string `json:"name,omitempty"` I18nName *DepartmentI18nName `json:"i18n_name,omitempty"` ParentDepartmentId string `json:"parent_department_id,omitempty"` DepartmentId string `json:"department_id,omitempty"` OpenDepartmentId string `json:"open_department_id,omitempty"` LeaderUserId string `json:"leader_user_id,omitempty"` ChatId string `json:"chat_id,omitempty"` Order int64 `json:"order,omitempty,string"` UnitIds []string `json:"unit_ids,omitempty"` MemberCount int `json:"member_count,omitempty"` Status *DepartmentStatus `json:"status,omitempty"` CreateGroupChat bool `json:"create_group_chat,omitempty"` ForceSendFields []string `json:"-"` }
func (*Department) MarshalJSON ¶ added in v1.1.21
func (s *Department) MarshalJSON() ([]byte, error)
type DepartmentCount ¶ added in v1.1.41
type DepartmentCount struct { DepartmentId string `json:"department_id,omitempty"` 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"` ForceSendFields []string `json:"-"` }
func (*DepartmentCount) MarshalJSON ¶ added in v1.1.41
func (s *DepartmentCount) MarshalJSON() ([]byte, error)
type DepartmentCreateReqCall ¶
type DepartmentCreateReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentCreateReqCall) Do ¶
func (rc *DepartmentCreateReqCall) Do() (*DepartmentCreateResult, error)
func (*DepartmentCreateReqCall) SetClientToken ¶
func (rc *DepartmentCreateReqCall) SetClientToken(clientToken string)
func (*DepartmentCreateReqCall) SetDepartmentIdType ¶
func (rc *DepartmentCreateReqCall) SetDepartmentIdType(departmentIdType string)
func (*DepartmentCreateReqCall) SetUserIdType ¶
func (rc *DepartmentCreateReqCall) SetUserIdType(userIdType string)
type DepartmentCreateResult ¶
type DepartmentCreateResult struct {
Department *Department `json:"department,omitempty"`
}
type DepartmentCreatedEvent ¶
type DepartmentCreatedEvent struct { *model.BaseEventV2 Event *DepartmentCreatedEventData `json:"event"` }
type DepartmentCreatedEventData ¶
type DepartmentCreatedEventData struct {
Object *DepartmentEvent `json:"object,omitempty"`
}
type DepartmentCreatedEventHandler ¶
type DepartmentCreatedEventHandler struct {
Fn func(*core.Context, *DepartmentCreatedEvent) error
}
func (*DepartmentCreatedEventHandler) GetEvent ¶
func (h *DepartmentCreatedEventHandler) GetEvent() interface{}
type DepartmentDeleteReqCall ¶
type DepartmentDeleteReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentDeleteReqCall) Do ¶
func (rc *DepartmentDeleteReqCall) Do() (*response.NoData, error)
func (*DepartmentDeleteReqCall) SetDepartmentId ¶
func (rc *DepartmentDeleteReqCall) SetDepartmentId(departmentId string)
func (*DepartmentDeleteReqCall) SetDepartmentIdType ¶
func (rc *DepartmentDeleteReqCall) SetDepartmentIdType(departmentIdType string)
type DepartmentDeletedEvent ¶
type DepartmentDeletedEvent struct { *model.BaseEventV2 Event *DepartmentDeletedEventData `json:"event"` }
type DepartmentDeletedEventData ¶
type DepartmentDeletedEventData struct { Object *DepartmentEvent `json:"object,omitempty"` OldObject *OldDepartmentObject `json:"old_object,omitempty"` }
type DepartmentDeletedEventHandler ¶
type DepartmentDeletedEventHandler struct {
Fn func(*core.Context, *DepartmentDeletedEvent) error
}
func (*DepartmentDeletedEventHandler) GetEvent ¶
func (h *DepartmentDeletedEventHandler) GetEvent() interface{}
type DepartmentEvent ¶
type DepartmentEvent struct { Name string `json:"name,omitempty"` ParentDepartmentId string `json:"parent_department_id,omitempty"` DepartmentId string `json:"department_id,omitempty"` OpenDepartmentId string `json:"open_department_id,omitempty"` LeaderUserId string `json:"leader_user_id,omitempty"` ChatId string `json:"chat_id,omitempty"` Order int `json:"order,omitempty"` Status *DepartmentStatus `json:"status,omitempty"` ForceSendFields []string `json:"-"` }
func (*DepartmentEvent) MarshalJSON ¶ added in v1.1.21
func (s *DepartmentEvent) MarshalJSON() ([]byte, error)
type DepartmentGetReqCall ¶
type DepartmentGetReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentGetReqCall) Do ¶
func (rc *DepartmentGetReqCall) Do() (*DepartmentGetResult, error)
func (*DepartmentGetReqCall) SetDepartmentId ¶
func (rc *DepartmentGetReqCall) SetDepartmentId(departmentId string)
func (*DepartmentGetReqCall) SetDepartmentIdType ¶
func (rc *DepartmentGetReqCall) SetDepartmentIdType(departmentIdType string)
func (*DepartmentGetReqCall) SetUserIdType ¶
func (rc *DepartmentGetReqCall) SetUserIdType(userIdType string)
type DepartmentGetResult ¶
type DepartmentGetResult struct {
Department *Department `json:"department,omitempty"`
}
type DepartmentI18nName ¶ added in v1.1.21
type DepartmentI18nName struct { ZhCn string `json:"zh_cn,omitempty"` JaJp string `json:"ja_jp,omitempty"` EnUs string `json:"en_us,omitempty"` ForceSendFields []string `json:"-"` }
func (*DepartmentI18nName) MarshalJSON ¶ added in v1.1.21
func (s *DepartmentI18nName) MarshalJSON() ([]byte, error)
type DepartmentListReqCall ¶
type DepartmentListReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentListReqCall) Do ¶
func (rc *DepartmentListReqCall) Do() (*DepartmentListResult, error)
func (*DepartmentListReqCall) SetDepartmentIdType ¶
func (rc *DepartmentListReqCall) SetDepartmentIdType(departmentIdType string)
func (*DepartmentListReqCall) SetFetchChild ¶ added in v1.1.23
func (rc *DepartmentListReqCall) SetFetchChild(fetchChild bool)
func (*DepartmentListReqCall) SetPageSize ¶
func (rc *DepartmentListReqCall) SetPageSize(pageSize int)
func (*DepartmentListReqCall) SetPageToken ¶
func (rc *DepartmentListReqCall) SetPageToken(pageToken string)
func (*DepartmentListReqCall) SetParentDepartmentId ¶
func (rc *DepartmentListReqCall) SetParentDepartmentId(parentDepartmentId string)
func (*DepartmentListReqCall) SetUserIdType ¶
func (rc *DepartmentListReqCall) SetUserIdType(userIdType string)
type DepartmentListResult ¶
type DepartmentListResult struct { HasMore bool `json:"has_more,omitempty"` PageToken string `json:"page_token,omitempty"` Items []*Department `json:"items,omitempty"` }
type DepartmentParent ¶ added in v1.1.41
type DepartmentParent struct { DepartmentId string `json:"department_id,omitempty"` ParentIds []string `json:"parent_ids,omitempty"` ForceSendFields []string `json:"-"` }
func (*DepartmentParent) MarshalJSON ¶ added in v1.1.41
func (s *DepartmentParent) MarshalJSON() ([]byte, error)
type DepartmentParentReqCall ¶
type DepartmentParentReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentParentReqCall) Do ¶
func (rc *DepartmentParentReqCall) Do() (*DepartmentParentResult, error)
func (*DepartmentParentReqCall) SetDepartmentId ¶
func (rc *DepartmentParentReqCall) SetDepartmentId(departmentId string)
func (*DepartmentParentReqCall) SetDepartmentIdType ¶
func (rc *DepartmentParentReqCall) SetDepartmentIdType(departmentIdType string)
func (*DepartmentParentReqCall) SetPageSize ¶
func (rc *DepartmentParentReqCall) SetPageSize(pageSize int)
func (*DepartmentParentReqCall) SetPageToken ¶
func (rc *DepartmentParentReqCall) SetPageToken(pageToken string)
func (*DepartmentParentReqCall) SetUserIdType ¶
func (rc *DepartmentParentReqCall) SetUserIdType(userIdType string)
type DepartmentParentResult ¶
type DepartmentParentResult struct { HasMore bool `json:"has_more,omitempty"` PageToken string `json:"page_token,omitempty"` Items []*Department `json:"items,omitempty"` }
type DepartmentPatchReqCall ¶
type DepartmentPatchReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentPatchReqCall) Do ¶
func (rc *DepartmentPatchReqCall) Do() (*DepartmentPatchResult, error)
func (*DepartmentPatchReqCall) SetDepartmentId ¶
func (rc *DepartmentPatchReqCall) SetDepartmentId(departmentId string)
func (*DepartmentPatchReqCall) SetDepartmentIdType ¶
func (rc *DepartmentPatchReqCall) SetDepartmentIdType(departmentIdType string)
func (*DepartmentPatchReqCall) SetUserIdType ¶
func (rc *DepartmentPatchReqCall) SetUserIdType(userIdType string)
type DepartmentPatchResult ¶
type DepartmentPatchResult struct {
Department *Department `json:"department,omitempty"`
}
type DepartmentSearchReqBody ¶ added in v1.1.21
type DepartmentSearchReqBody struct { Query string `json:"query,omitempty"` ForceSendFields []string `json:"-"` }
func (*DepartmentSearchReqBody) MarshalJSON ¶ added in v1.1.21
func (s *DepartmentSearchReqBody) MarshalJSON() ([]byte, error)
type DepartmentSearchReqCall ¶ added in v1.1.21
type DepartmentSearchReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentSearchReqCall) Do ¶ added in v1.1.21
func (rc *DepartmentSearchReqCall) Do() (*DepartmentSearchResult, error)
func (*DepartmentSearchReqCall) SetDepartmentIdType ¶ added in v1.1.21
func (rc *DepartmentSearchReqCall) SetDepartmentIdType(departmentIdType string)
func (*DepartmentSearchReqCall) SetPageSize ¶ added in v1.1.21
func (rc *DepartmentSearchReqCall) SetPageSize(pageSize int)
func (*DepartmentSearchReqCall) SetPageToken ¶ added in v1.1.21
func (rc *DepartmentSearchReqCall) SetPageToken(pageToken string)
func (*DepartmentSearchReqCall) SetUserIdType ¶ added in v1.1.21
func (rc *DepartmentSearchReqCall) SetUserIdType(userIdType string)
type DepartmentSearchResult ¶ added in v1.1.21
type DepartmentSearchResult struct { Items []*Department `json:"items,omitempty"` PageToken string `json:"page_token,omitempty"` HasMore bool `json:"has_more,omitempty"` }
type DepartmentService ¶
type DepartmentService struct {
// contains filtered or unexported fields
}
func (*DepartmentService) Create ¶
func (departments *DepartmentService) Create(ctx *core.Context, body *Department, optFns ...request.OptFn) *DepartmentCreateReqCall
func (*DepartmentService) Delete ¶
func (departments *DepartmentService) Delete(ctx *core.Context, optFns ...request.OptFn) *DepartmentDeleteReqCall
func (*DepartmentService) Get ¶
func (departments *DepartmentService) Get(ctx *core.Context, optFns ...request.OptFn) *DepartmentGetReqCall
func (*DepartmentService) List ¶
func (departments *DepartmentService) List(ctx *core.Context, optFns ...request.OptFn) *DepartmentListReqCall
func (*DepartmentService) Parent ¶
func (departments *DepartmentService) Parent(ctx *core.Context, optFns ...request.OptFn) *DepartmentParentReqCall
func (*DepartmentService) Patch ¶
func (departments *DepartmentService) Patch(ctx *core.Context, body *Department, optFns ...request.OptFn) *DepartmentPatchReqCall
func (*DepartmentService) Search ¶ added in v1.1.21
func (departments *DepartmentService) Search(ctx *core.Context, body *DepartmentSearchReqBody, optFns ...request.OptFn) *DepartmentSearchReqCall
func (*DepartmentService) Update ¶
func (departments *DepartmentService) Update(ctx *core.Context, body *Department, optFns ...request.OptFn) *DepartmentUpdateReqCall
type DepartmentStatus ¶ added in v1.1.21
type DepartmentStatus struct { IsDeleted bool `json:"is_deleted,omitempty"` ForceSendFields []string `json:"-"` }
func (*DepartmentStatus) MarshalJSON ¶ added in v1.1.21
func (s *DepartmentStatus) MarshalJSON() ([]byte, error)
type DepartmentUnit ¶
type DepartmentUnit struct { UnitId string `json:"unit_id,omitempty"` UnitType string `json:"unit_type,omitempty"` UnitName string `json:"unit_name,omitempty"` ForceSendFields []string `json:"-"` }
func (*DepartmentUnit) MarshalJSON ¶ added in v1.1.21
func (s *DepartmentUnit) MarshalJSON() ([]byte, error)
type DepartmentUpdateReqCall ¶
type DepartmentUpdateReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentUpdateReqCall) Do ¶
func (rc *DepartmentUpdateReqCall) Do() (*DepartmentUpdateResult, error)
func (*DepartmentUpdateReqCall) SetDepartmentId ¶
func (rc *DepartmentUpdateReqCall) SetDepartmentId(departmentId string)
func (*DepartmentUpdateReqCall) SetDepartmentIdType ¶
func (rc *DepartmentUpdateReqCall) SetDepartmentIdType(departmentIdType string)
func (*DepartmentUpdateReqCall) SetUserIdType ¶
func (rc *DepartmentUpdateReqCall) SetUserIdType(userIdType string)
type DepartmentUpdateResult ¶
type DepartmentUpdateResult struct {
Department *Department `json:"department,omitempty"`
}
type DepartmentUpdatedEvent ¶
type DepartmentUpdatedEvent struct { *model.BaseEventV2 Event *DepartmentUpdatedEventData `json:"event"` }
type DepartmentUpdatedEventData ¶
type DepartmentUpdatedEventData struct { Object *DepartmentEvent `json:"object,omitempty"` OldObject *DepartmentEvent `json:"old_object,omitempty"` }
type DepartmentUpdatedEventHandler ¶
type DepartmentUpdatedEventHandler struct {
Fn func(*core.Context, *DepartmentUpdatedEvent) error
}
func (*DepartmentUpdatedEventHandler) GetEvent ¶
func (h *DepartmentUpdatedEventHandler) GetEvent() interface{}
type EmployeeTypeEnum ¶ added in v1.1.26
type EmployeeTypeEnum struct { EnumId string `json:"enum_id,omitempty"` EnumValue int64 `json:"enum_value,omitempty,string"` Content string `json:"content,omitempty"` EnumType int `json:"enum_type,omitempty"` EnumStatus int `json:"enum_status,omitempty"` I18nContent []*I18nContent `json:"i18n_content,omitempty"` ForceSendFields []string `json:"-"` }
func (*EmployeeTypeEnum) MarshalJSON ¶ added in v1.1.26
func (s *EmployeeTypeEnum) MarshalJSON() ([]byte, error)
type EmployeeTypeEnumActivedEvent ¶ added in v1.1.26
type EmployeeTypeEnumActivedEvent struct { *model.BaseEventV2 Event *EmployeeTypeEnumActivedEventData `json:"event"` }
type EmployeeTypeEnumActivedEventData ¶ added in v1.1.26
type EmployeeTypeEnumActivedEventData struct { OldEnum *EmployeeTypeEnum `json:"old_enum,omitempty"` NewEnum *EmployeeTypeEnum `json:"new_enum,omitempty"` }
type EmployeeTypeEnumActivedEventHandler ¶ added in v1.1.26
type EmployeeTypeEnumActivedEventHandler struct {
Fn func(*core.Context, *EmployeeTypeEnumActivedEvent) error
}
func (*EmployeeTypeEnumActivedEventHandler) GetEvent ¶ added in v1.1.26
func (h *EmployeeTypeEnumActivedEventHandler) GetEvent() interface{}
type EmployeeTypeEnumCreateReqCall ¶ added in v1.1.41
type EmployeeTypeEnumCreateReqCall struct {
// contains filtered or unexported fields
}
func (*EmployeeTypeEnumCreateReqCall) Do ¶ added in v1.1.41
func (rc *EmployeeTypeEnumCreateReqCall) Do() (*EmployeeTypeEnumCreateResult, error)
type EmployeeTypeEnumCreateResult ¶ added in v1.1.41
type EmployeeTypeEnumCreateResult struct {
EmployeeTypeEnum *EmployeeTypeEnum `json:"employee_type_enum,omitempty"`
}
type EmployeeTypeEnumCreatedEvent ¶ added in v1.1.26
type EmployeeTypeEnumCreatedEvent struct { *model.BaseEventV2 Event *EmployeeTypeEnumCreatedEventData `json:"event"` }
type EmployeeTypeEnumCreatedEventData ¶ added in v1.1.26
type EmployeeTypeEnumCreatedEventData struct {
NewEnum *EmployeeTypeEnum `json:"new_enum,omitempty"`
}
type EmployeeTypeEnumCreatedEventHandler ¶ added in v1.1.26
type EmployeeTypeEnumCreatedEventHandler struct {
Fn func(*core.Context, *EmployeeTypeEnumCreatedEvent) error
}
func (*EmployeeTypeEnumCreatedEventHandler) GetEvent ¶ added in v1.1.26
func (h *EmployeeTypeEnumCreatedEventHandler) GetEvent() interface{}
type EmployeeTypeEnumDeactivatedEvent ¶ added in v1.1.26
type EmployeeTypeEnumDeactivatedEvent struct { *model.BaseEventV2 Event *EmployeeTypeEnumDeactivatedEventData `json:"event"` }
type EmployeeTypeEnumDeactivatedEventData ¶ added in v1.1.26
type EmployeeTypeEnumDeactivatedEventData struct { OldEnum *EmployeeTypeEnum `json:"old_enum,omitempty"` NewEnum *EmployeeTypeEnum `json:"new_enum,omitempty"` }
type EmployeeTypeEnumDeactivatedEventHandler ¶ added in v1.1.26
type EmployeeTypeEnumDeactivatedEventHandler struct {
Fn func(*core.Context, *EmployeeTypeEnumDeactivatedEvent) error
}
func (*EmployeeTypeEnumDeactivatedEventHandler) GetEvent ¶ added in v1.1.26
func (h *EmployeeTypeEnumDeactivatedEventHandler) GetEvent() interface{}
type EmployeeTypeEnumDeleteReqCall ¶ added in v1.1.41
type EmployeeTypeEnumDeleteReqCall struct {
// contains filtered or unexported fields
}
func (*EmployeeTypeEnumDeleteReqCall) Do ¶ added in v1.1.41
func (rc *EmployeeTypeEnumDeleteReqCall) Do() (*response.NoData, error)
func (*EmployeeTypeEnumDeleteReqCall) SetEnumId ¶ added in v1.1.41
func (rc *EmployeeTypeEnumDeleteReqCall) SetEnumId(enumId string)
type EmployeeTypeEnumDeletedEvent ¶ added in v1.1.26
type EmployeeTypeEnumDeletedEvent struct { *model.BaseEventV2 Event *EmployeeTypeEnumDeletedEventData `json:"event"` }
type EmployeeTypeEnumDeletedEventData ¶ added in v1.1.26
type EmployeeTypeEnumDeletedEventData struct {
OldEnum *EmployeeTypeEnum `json:"old_enum,omitempty"`
}
type EmployeeTypeEnumDeletedEventHandler ¶ added in v1.1.26
type EmployeeTypeEnumDeletedEventHandler struct {
Fn func(*core.Context, *EmployeeTypeEnumDeletedEvent) error
}
func (*EmployeeTypeEnumDeletedEventHandler) GetEvent ¶ added in v1.1.26
func (h *EmployeeTypeEnumDeletedEventHandler) GetEvent() interface{}
type EmployeeTypeEnumListReqCall ¶ added in v1.1.26
type EmployeeTypeEnumListReqCall struct {
// contains filtered or unexported fields
}
func (*EmployeeTypeEnumListReqCall) Do ¶ added in v1.1.26
func (rc *EmployeeTypeEnumListReqCall) Do() (*EmployeeTypeEnumListResult, error)
func (*EmployeeTypeEnumListReqCall) SetPageSize ¶ added in v1.1.26
func (rc *EmployeeTypeEnumListReqCall) SetPageSize(pageSize int)
func (*EmployeeTypeEnumListReqCall) SetPageToken ¶ added in v1.1.26
func (rc *EmployeeTypeEnumListReqCall) SetPageToken(pageToken string)
type EmployeeTypeEnumListResult ¶ added in v1.1.26
type EmployeeTypeEnumListResult struct { Items []*EmployeeTypeEnum `json:"items,omitempty"` HasMore bool `json:"has_more,omitempty"` PageToken string `json:"page_token,omitempty"` }
type EmployeeTypeEnumService ¶ added in v1.1.26
type EmployeeTypeEnumService struct {
// contains filtered or unexported fields
}
func (*EmployeeTypeEnumService) Create ¶ added in v1.1.41
func (employeeTypeEnums *EmployeeTypeEnumService) Create(ctx *core.Context, body *EmployeeTypeEnum, optFns ...request.OptFn) *EmployeeTypeEnumCreateReqCall
func (*EmployeeTypeEnumService) Delete ¶ added in v1.1.41
func (employeeTypeEnums *EmployeeTypeEnumService) Delete(ctx *core.Context, optFns ...request.OptFn) *EmployeeTypeEnumDeleteReqCall
func (*EmployeeTypeEnumService) List ¶ added in v1.1.26
func (employeeTypeEnums *EmployeeTypeEnumService) List(ctx *core.Context, optFns ...request.OptFn) *EmployeeTypeEnumListReqCall
func (*EmployeeTypeEnumService) Update ¶ added in v1.1.41
func (employeeTypeEnums *EmployeeTypeEnumService) Update(ctx *core.Context, body *EmployeeTypeEnum, optFns ...request.OptFn) *EmployeeTypeEnumUpdateReqCall
type EmployeeTypeEnumUpdateReqCall ¶ added in v1.1.41
type EmployeeTypeEnumUpdateReqCall struct {
// contains filtered or unexported fields
}
func (*EmployeeTypeEnumUpdateReqCall) Do ¶ added in v1.1.41
func (rc *EmployeeTypeEnumUpdateReqCall) Do() (*EmployeeTypeEnumUpdateResult, error)
func (*EmployeeTypeEnumUpdateReqCall) SetEnumId ¶ added in v1.1.41
func (rc *EmployeeTypeEnumUpdateReqCall) SetEnumId(enumId string)
type EmployeeTypeEnumUpdateResult ¶ added in v1.1.41
type EmployeeTypeEnumUpdateResult struct {
EmployeeTypeEnum *EmployeeTypeEnum `json:"employee_type_enum,omitempty"`
}
type EmployeeTypeEnumUpdatedEvent ¶ added in v1.1.26
type EmployeeTypeEnumUpdatedEvent struct { *model.BaseEventV2 Event *EmployeeTypeEnumUpdatedEventData `json:"event"` }
type EmployeeTypeEnumUpdatedEventData ¶ added in v1.1.26
type EmployeeTypeEnumUpdatedEventData struct { OldEnum *EmployeeTypeEnum `json:"old_enum,omitempty"` NewEnum *EmployeeTypeEnum `json:"new_enum,omitempty"` }
type EmployeeTypeEnumUpdatedEventHandler ¶ added in v1.1.26
type EmployeeTypeEnumUpdatedEventHandler struct {
Fn func(*core.Context, *EmployeeTypeEnumUpdatedEvent) error
}
func (*EmployeeTypeEnumUpdatedEventHandler) GetEvent ¶ added in v1.1.26
func (h *EmployeeTypeEnumUpdatedEventHandler) GetEvent() interface{}
type Group ¶ added in v1.1.41
type Group struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` MemberUserCount int `json:"member_user_count,omitempty"` MemberDepartmentCount int `json:"member_department_count,omitempty"` ForceSendFields []string `json:"-"` }
func (*Group) MarshalJSON ¶ added in v1.1.41
type GroupCreateReqBody ¶ added in v1.1.41
type GroupCreateReqBody struct { GroupId string `json:"group_id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Type int `json:"type,omitempty"` ForceSendFields []string `json:"-"` }
func (*GroupCreateReqBody) MarshalJSON ¶ added in v1.1.41
func (s *GroupCreateReqBody) MarshalJSON() ([]byte, error)
type GroupCreateReqCall ¶ added in v1.1.41
type GroupCreateReqCall struct {
// contains filtered or unexported fields
}
func (*GroupCreateReqCall) Do ¶ added in v1.1.41
func (rc *GroupCreateReqCall) Do() (*GroupCreateResult, error)
type GroupCreateResult ¶ added in v1.1.41
type GroupCreateResult struct {
GroupId string `json:"group_id,omitempty"`
}
type GroupDeleteReqCall ¶ added in v1.1.41
type GroupDeleteReqCall struct {
// contains filtered or unexported fields
}
func (*GroupDeleteReqCall) Do ¶ added in v1.1.41
func (rc *GroupDeleteReqCall) Do() (*response.NoData, error)
func (*GroupDeleteReqCall) SetGroupId ¶ added in v1.1.41
func (rc *GroupDeleteReqCall) SetGroupId(groupId string)
type GroupEvent ¶
type GroupEvent struct { UserGroupId string `json:"user_group_id,omitempty"` Name string `json:"name,omitempty"` ForceSendFields []string `json:"-"` }
func (*GroupEvent) MarshalJSON ¶ added in v1.1.21
func (s *GroupEvent) MarshalJSON() ([]byte, error)
type GroupGetReqCall ¶ added in v1.1.41
type GroupGetReqCall struct {
// contains filtered or unexported fields
}
func (*GroupGetReqCall) Do ¶ added in v1.1.41
func (rc *GroupGetReqCall) Do() (*GroupGetResult, error)
func (*GroupGetReqCall) SetGroupId ¶ added in v1.1.41
func (rc *GroupGetReqCall) SetGroupId(groupId string)
type GroupGetResult ¶ added in v1.1.41
type GroupGetResult struct {
Group *Group `json:"group,omitempty"`
}
type GroupMemberAddReqBody ¶ added in v1.1.41
type GroupMemberAddReqBody struct { MemberType string `json:"member_type,omitempty"` MemberIdType string `json:"member_id_type,omitempty"` MemberId string `json:"member_id,omitempty"` ForceSendFields []string `json:"-"` }
func (*GroupMemberAddReqBody) MarshalJSON ¶ added in v1.1.41
func (s *GroupMemberAddReqBody) MarshalJSON() ([]byte, error)
type GroupMemberAddReqCall ¶ added in v1.1.41
type GroupMemberAddReqCall struct {
// contains filtered or unexported fields
}
func (*GroupMemberAddReqCall) Do ¶ added in v1.1.41
func (rc *GroupMemberAddReqCall) Do() (*response.NoData, error)
func (*GroupMemberAddReqCall) SetGroupId ¶ added in v1.1.41
func (rc *GroupMemberAddReqCall) SetGroupId(groupId string)
type GroupMemberRemoveReqBody ¶ added in v1.1.41
type GroupMemberRemoveReqBody struct { MemberType string `json:"member_type,omitempty"` MemberId string `json:"member_id,omitempty"` MemberIdType string `json:"member_id_type,omitempty"` ForceSendFields []string `json:"-"` }
func (*GroupMemberRemoveReqBody) MarshalJSON ¶ added in v1.1.41
func (s *GroupMemberRemoveReqBody) MarshalJSON() ([]byte, error)
type GroupMemberRemoveReqCall ¶ added in v1.1.41
type GroupMemberRemoveReqCall struct {
// contains filtered or unexported fields
}
func (*GroupMemberRemoveReqCall) Do ¶ added in v1.1.41
func (rc *GroupMemberRemoveReqCall) Do() (*response.NoData, error)
func (*GroupMemberRemoveReqCall) SetGroupId ¶ added in v1.1.41
func (rc *GroupMemberRemoveReqCall) SetGroupId(groupId string)
type GroupMemberService ¶ added in v1.1.41
type GroupMemberService struct {
// contains filtered or unexported fields
}
func (*GroupMemberService) Add ¶ added in v1.1.41
func (groupMembers *GroupMemberService) Add(ctx *core.Context, body *GroupMemberAddReqBody, optFns ...request.OptFn) *GroupMemberAddReqCall
func (*GroupMemberService) Remove ¶ added in v1.1.41
func (groupMembers *GroupMemberService) Remove(ctx *core.Context, body *GroupMemberRemoveReqBody, optFns ...request.OptFn) *GroupMemberRemoveReqCall
func (*GroupMemberService) Simplelist ¶ added in v1.1.41
func (groupMembers *GroupMemberService) Simplelist(ctx *core.Context, optFns ...request.OptFn) *GroupMemberSimplelistReqCall
type GroupMemberSimplelistReqCall ¶ added in v1.1.41
type GroupMemberSimplelistReqCall struct {
// contains filtered or unexported fields
}
func (*GroupMemberSimplelistReqCall) Do ¶ added in v1.1.41
func (rc *GroupMemberSimplelistReqCall) Do() (*GroupMemberSimplelistResult, error)
func (*GroupMemberSimplelistReqCall) SetGroupId ¶ added in v1.1.41
func (rc *GroupMemberSimplelistReqCall) SetGroupId(groupId string)
func (*GroupMemberSimplelistReqCall) SetMemberIdType ¶ added in v1.1.41
func (rc *GroupMemberSimplelistReqCall) SetMemberIdType(memberIdType string)
func (*GroupMemberSimplelistReqCall) SetMemberType ¶ added in v1.1.41
func (rc *GroupMemberSimplelistReqCall) SetMemberType(memberType string)
func (*GroupMemberSimplelistReqCall) SetPageSize ¶ added in v1.1.41
func (rc *GroupMemberSimplelistReqCall) SetPageSize(pageSize int)
func (*GroupMemberSimplelistReqCall) SetPageToken ¶ added in v1.1.41
func (rc *GroupMemberSimplelistReqCall) SetPageToken(pageToken string)
type GroupMemberSimplelistResult ¶ added in v1.1.41
type GroupMemberSimplelistResult struct { Memberlist []*Memberlist `json:"memberlist,omitempty"` PageToken string `json:"page_token,omitempty"` HasMore bool `json:"has_more,omitempty"` }
type GroupPatchReqBody ¶ added in v1.1.41
type GroupPatchReqBody struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` ForceSendFields []string `json:"-"` }
func (*GroupPatchReqBody) MarshalJSON ¶ added in v1.1.41
func (s *GroupPatchReqBody) MarshalJSON() ([]byte, error)
type GroupPatchReqCall ¶ added in v1.1.41
type GroupPatchReqCall struct {
// contains filtered or unexported fields
}
func (*GroupPatchReqCall) Do ¶ added in v1.1.41
func (rc *GroupPatchReqCall) Do() (*response.NoData, error)
func (*GroupPatchReqCall) SetGroupId ¶ added in v1.1.41
func (rc *GroupPatchReqCall) SetGroupId(groupId string)
type GroupService ¶ added in v1.1.41
type GroupService struct {
// contains filtered or unexported fields
}
func (*GroupService) Create ¶ added in v1.1.41
func (groups *GroupService) Create(ctx *core.Context, body *GroupCreateReqBody, optFns ...request.OptFn) *GroupCreateReqCall
func (*GroupService) Delete ¶ added in v1.1.41
func (groups *GroupService) Delete(ctx *core.Context, optFns ...request.OptFn) *GroupDeleteReqCall
func (*GroupService) Get ¶ added in v1.1.41
func (groups *GroupService) Get(ctx *core.Context, optFns ...request.OptFn) *GroupGetReqCall
func (*GroupService) Patch ¶ added in v1.1.41
func (groups *GroupService) Patch(ctx *core.Context, body *GroupPatchReqBody, optFns ...request.OptFn) *GroupPatchReqCall
func (*GroupService) Simplelist ¶ added in v1.1.41
func (groups *GroupService) Simplelist(ctx *core.Context, optFns ...request.OptFn) *GroupSimplelistReqCall
type GroupSimplelistReqCall ¶ added in v1.1.41
type GroupSimplelistReqCall struct {
// contains filtered or unexported fields
}
func (*GroupSimplelistReqCall) Do ¶ added in v1.1.41
func (rc *GroupSimplelistReqCall) Do() (*GroupSimplelistResult, error)
func (*GroupSimplelistReqCall) SetPageSize ¶ added in v1.1.41
func (rc *GroupSimplelistReqCall) SetPageSize(pageSize int)
func (*GroupSimplelistReqCall) SetPageToken ¶ added in v1.1.41
func (rc *GroupSimplelistReqCall) SetPageToken(pageToken string)
func (*GroupSimplelistReqCall) SetType ¶ added in v1.1.41
func (rc *GroupSimplelistReqCall) SetType(type_ int)
type GroupSimplelistResult ¶ added in v1.1.41
type I18nContent ¶ added in v1.1.26
type I18nContent struct { Locale string `json:"locale,omitempty"` Value string `json:"value,omitempty"` ForceSendFields []string `json:"-"` }
func (*I18nContent) MarshalJSON ¶ added in v1.1.26
func (s *I18nContent) MarshalJSON() ([]byte, error)
type Memberlist ¶ added in v1.1.41
type Memberlist struct { MemberId string `json:"member_id,omitempty"` MemberType string `json:"member_type,omitempty"` ForceSendFields []string `json:"-"` }
func (*Memberlist) MarshalJSON ¶ added in v1.1.41
func (s *Memberlist) MarshalJSON() ([]byte, error)
type NotificationOption ¶ added in v1.1.25
type NotificationOption struct { Channels []string `json:"channels,omitempty"` Language string `json:"language,omitempty"` ForceSendFields []string `json:"-"` }
func (*NotificationOption) MarshalJSON ¶ added in v1.1.25
func (s *NotificationOption) MarshalJSON() ([]byte, error)
type OldDepartmentObject ¶ added in v1.1.27
type OldDepartmentObject struct { Status *DepartmentStatus `json:"status,omitempty"` OpenDepartmentId string `json:"open_department_id,omitempty"` ForceSendFields []string `json:"-"` }
func (*OldDepartmentObject) MarshalJSON ¶ added in v1.1.27
func (s *OldDepartmentObject) MarshalJSON() ([]byte, error)
type OldUserObject ¶ added in v1.1.27
type OldUserObject struct { DepartmentIds []string `json:"department_ids,omitempty"` OpenId string `json:"open_id,omitempty"` ForceSendFields []string `json:"-"` }
func (*OldUserObject) MarshalJSON ¶ added in v1.1.27
func (s *OldUserObject) MarshalJSON() ([]byte, error)
type Scope ¶
type Scope struct { Departments []*Department `json:"departments,omitempty"` Users []*User `json:"users,omitempty"` UserGroups []*UserGroup `json:"user_groups,omitempty"` ForceSendFields []string `json:"-"` }
func (*Scope) MarshalJSON ¶ added in v1.1.21
type ScopeService ¶
type ScopeService struct {
// contains filtered or unexported fields
}
type ScopeUpdatedEvent ¶
type ScopeUpdatedEvent struct { *model.BaseEventV2 Event *ScopeUpdatedEventData `json:"event"` }
type ScopeUpdatedEventData ¶
type ScopeUpdatedEventHandler ¶
type ScopeUpdatedEventHandler struct {
Fn func(*core.Context, *ScopeUpdatedEvent) error
}
func (*ScopeUpdatedEventHandler) GetEvent ¶
func (h *ScopeUpdatedEventHandler) GetEvent() interface{}
type Service ¶
type Service struct { Users *UserService Departments *DepartmentService Scopes *ScopeService EmployeeTypeEnums *EmployeeTypeEnumService CustomAttrs *CustomAttrService Groups *GroupService GroupMembers *GroupMemberService // contains filtered or unexported fields }
func NewService ¶
type User ¶
type User struct { UnionId string `json:"union_id,omitempty"` UserId string `json:"user_id,omitempty"` OpenId string `json:"open_id,omitempty"` Name string `json:"name,omitempty"` EnName string `json:"en_name,omitempty"` Email string `json:"email,omitempty"` Mobile string `json:"mobile,omitempty"` MobileVisible bool `json:"mobile_visible,omitempty"` Gender int `json:"gender,omitempty"` AvatarKey string `json:"avatar_key,omitempty"` Avatar *AvatarInfo `json:"avatar,omitempty"` Status *UserStatus `json:"status,omitempty"` DepartmentIds []string `json:"department_ids,omitempty"` LeaderUserId string `json:"leader_user_id,omitempty"` City string `json:"city,omitempty"` Country string `json:"country,omitempty"` WorkStation string `json:"work_station,omitempty"` JoinTime int `json:"join_time,omitempty"` IsTenantManager bool `json:"is_tenant_manager,omitempty"` EmployeeNo string `json:"employee_no,omitempty"` EmployeeType int `json:"employee_type,omitempty"` Orders []*UserOrder `json:"orders,omitempty"` CustomAttrs []*UserCustomAttr `json:"custom_attrs,omitempty"` EnterpriseEmail string `json:"enterprise_email,omitempty"` JobTitle string `json:"job_title,omitempty"` NeedSendNotification bool `json:"need_send_notification,omitempty"` NotificationOption *NotificationOption `json:"notification_option,omitempty"` IsFrozen bool `json:"is_frozen,omitempty"` ForceSendFields []string `json:"-"` }
func (*User) MarshalJSON ¶ added in v1.1.21
type UserCreateReqCall ¶
type UserCreateReqCall struct {
// contains filtered or unexported fields
}
func (*UserCreateReqCall) Do ¶
func (rc *UserCreateReqCall) Do() (*UserCreateResult, error)
func (*UserCreateReqCall) SetClientToken ¶
func (rc *UserCreateReqCall) SetClientToken(clientToken string)
func (*UserCreateReqCall) SetDepartmentIdType ¶
func (rc *UserCreateReqCall) SetDepartmentIdType(departmentIdType string)
func (*UserCreateReqCall) SetUserIdType ¶
func (rc *UserCreateReqCall) SetUserIdType(userIdType string)
type UserCreateResult ¶
type UserCreateResult struct {
User *User `json:"user,omitempty"`
}
type UserCreatedEvent ¶
type UserCreatedEvent struct { *model.BaseEventV2 Event *UserCreatedEventData `json:"event"` }
type UserCreatedEventData ¶
type UserCreatedEventData struct {
Object *UserEvent `json:"object,omitempty"`
}
type UserCreatedEventHandler ¶
type UserCreatedEventHandler struct {
Fn func(*core.Context, *UserCreatedEvent) error
}
func (*UserCreatedEventHandler) GetEvent ¶
func (h *UserCreatedEventHandler) GetEvent() interface{}
type UserCustomAttr ¶
type UserCustomAttr struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` Value *UserCustomAttrValue `json:"value,omitempty"` ForceSendFields []string `json:"-"` }
func (*UserCustomAttr) MarshalJSON ¶ added in v1.1.21
func (s *UserCustomAttr) MarshalJSON() ([]byte, error)
type UserCustomAttrValue ¶
type UserCustomAttrValue struct { Text string `json:"text,omitempty"` Url string `json:"url,omitempty"` PcUrl string `json:"pc_url,omitempty"` OptionId string `json:"option_id,omitempty"` OptionValue string `json:"option_value,omitempty"` Name string `json:"name,omitempty"` PictureUrl string `json:"picture_url,omitempty"` GenericUser *CustomAttrGenericUser `json:"generic_user,omitempty"` ForceSendFields []string `json:"-"` }
func (*UserCustomAttrValue) MarshalJSON ¶ added in v1.1.21
func (s *UserCustomAttrValue) MarshalJSON() ([]byte, error)
type UserDeleteReqBody ¶
type UserDeleteReqBody 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"` HelpdeskAcceptorUserId string `json:"helpdesk_acceptor_user_id,omitempty"` ForceSendFields []string `json:"-"` }
func (*UserDeleteReqBody) MarshalJSON ¶ added in v1.1.21
func (s *UserDeleteReqBody) MarshalJSON() ([]byte, error)
type UserDeleteReqCall ¶
type UserDeleteReqCall struct {
// contains filtered or unexported fields
}
func (*UserDeleteReqCall) SetUserId ¶
func (rc *UserDeleteReqCall) SetUserId(userId string)
func (*UserDeleteReqCall) SetUserIdType ¶
func (rc *UserDeleteReqCall) SetUserIdType(userIdType string)
type UserDeletedEvent ¶
type UserDeletedEvent struct { *model.BaseEventV2 Event *UserDeletedEventData `json:"event"` }
type UserDeletedEventData ¶
type UserDeletedEventData struct { Object *UserEvent `json:"object,omitempty"` OldObject *OldUserObject `json:"old_object,omitempty"` }
type UserDeletedEventHandler ¶
type UserDeletedEventHandler struct {
Fn func(*core.Context, *UserDeletedEvent) error
}
func (*UserDeletedEventHandler) GetEvent ¶
func (h *UserDeletedEventHandler) GetEvent() interface{}
type UserEvent ¶
type UserEvent struct { OpenId string `json:"open_id,omitempty"` UserId string `json:"user_id,omitempty"` Name string `json:"name,omitempty"` EnName string `json:"en_name,omitempty"` Email string `json:"email,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"` LeaderUserId string `json:"leader_user_id,omitempty"` 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"` ForceSendFields []string `json:"-"` }
func (*UserEvent) MarshalJSON ¶ added in v1.1.21
type UserGetReqCall ¶
type UserGetReqCall struct {
// contains filtered or unexported fields
}
func (*UserGetReqCall) Do ¶
func (rc *UserGetReqCall) Do() (*UserGetResult, error)
func (*UserGetReqCall) SetDepartmentIdType ¶
func (rc *UserGetReqCall) SetDepartmentIdType(departmentIdType string)
func (*UserGetReqCall) SetUserId ¶
func (rc *UserGetReqCall) SetUserId(userId string)
func (*UserGetReqCall) SetUserIdType ¶
func (rc *UserGetReqCall) SetUserIdType(userIdType string)
type UserGetResult ¶
type UserGetResult struct {
User *User `json:"user,omitempty"`
}
type UserGroup ¶
type UserGroup struct { UserGroupId string `json:"user_group_id,omitempty"` Name string `json:"name,omitempty"` Type int `json:"type,omitempty"` MemberCount int `json:"member_count,omitempty"` Status int `json:"status,omitempty"` ForceSendFields []string `json:"-"` }
func (*UserGroup) MarshalJSON ¶ added in v1.1.21
type UserListReqCall ¶
type UserListReqCall struct {
// contains filtered or unexported fields
}
func (*UserListReqCall) Do ¶
func (rc *UserListReqCall) Do() (*UserListResult, error)
func (*UserListReqCall) SetDepartmentId ¶
func (rc *UserListReqCall) SetDepartmentId(departmentId string)
func (*UserListReqCall) SetDepartmentIdType ¶
func (rc *UserListReqCall) SetDepartmentIdType(departmentIdType string)
func (*UserListReqCall) SetPageSize ¶
func (rc *UserListReqCall) SetPageSize(pageSize int)
func (*UserListReqCall) SetPageToken ¶
func (rc *UserListReqCall) SetPageToken(pageToken string)
func (*UserListReqCall) SetUserIdType ¶
func (rc *UserListReqCall) SetUserIdType(userIdType string)
type UserListResult ¶
type UserOrder ¶
type UserOrder struct { DepartmentId string `json:"department_id,omitempty"` UserOrder int `json:"user_order,omitempty"` DepartmentOrder int `json:"department_order,omitempty"` ForceSendFields []string `json:"-"` }
func (*UserOrder) MarshalJSON ¶ added in v1.1.21
type UserPatchReqCall ¶
type UserPatchReqCall struct {
// contains filtered or unexported fields
}
func (*UserPatchReqCall) Do ¶
func (rc *UserPatchReqCall) Do() (*UserPatchResult, error)
func (*UserPatchReqCall) SetDepartmentIdType ¶
func (rc *UserPatchReqCall) SetDepartmentIdType(departmentIdType string)
func (*UserPatchReqCall) SetUserId ¶
func (rc *UserPatchReqCall) SetUserId(userId string)
func (*UserPatchReqCall) SetUserIdType ¶
func (rc *UserPatchReqCall) SetUserIdType(userIdType string)
type UserPatchResult ¶
type UserPatchResult struct {
User *User `json:"user,omitempty"`
}
type UserPosition ¶
type UserPosition struct { PositionCode string `json:"position_code,omitempty"` PositionName string `json:"position_name,omitempty"` DepartmentId string `json:"department_id,omitempty"` LeaderUserId string `json:"leader_user_id,omitempty"` LeaderPositionCode string `json:"leader_position_code,omitempty"` IsMajor bool `json:"is_major,omitempty"` ForceSendFields []string `json:"-"` }
func (*UserPosition) MarshalJSON ¶ added in v1.1.21
func (s *UserPosition) MarshalJSON() ([]byte, error)
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func (*UserService) Create ¶
func (users *UserService) Create(ctx *core.Context, body *User, optFns ...request.OptFn) *UserCreateReqCall
func (*UserService) Delete ¶
func (users *UserService) Delete(ctx *core.Context, body *UserDeleteReqBody, optFns ...request.OptFn) *UserDeleteReqCall
func (*UserService) Get ¶
func (users *UserService) Get(ctx *core.Context, optFns ...request.OptFn) *UserGetReqCall
func (*UserService) List ¶
func (users *UserService) List(ctx *core.Context, optFns ...request.OptFn) *UserListReqCall
func (*UserService) Patch ¶
func (users *UserService) Patch(ctx *core.Context, body *User, optFns ...request.OptFn) *UserPatchReqCall
func (*UserService) Update ¶
func (users *UserService) Update(ctx *core.Context, body *User, optFns ...request.OptFn) *UserUpdateReqCall
type UserStatus ¶
type UserStatus struct { IsFrozen bool `json:"is_frozen,omitempty"` IsResigned bool `json:"is_resigned,omitempty"` IsActivated bool `json:"is_activated,omitempty"` ForceSendFields []string `json:"-"` }
func (*UserStatus) MarshalJSON ¶ added in v1.1.21
func (s *UserStatus) MarshalJSON() ([]byte, error)
type UserUpdateReqCall ¶
type UserUpdateReqCall struct {
// contains filtered or unexported fields
}
func (*UserUpdateReqCall) Do ¶
func (rc *UserUpdateReqCall) Do() (*UserUpdateResult, error)
func (*UserUpdateReqCall) SetDepartmentIdType ¶
func (rc *UserUpdateReqCall) SetDepartmentIdType(departmentIdType string)
func (*UserUpdateReqCall) SetUserId ¶
func (rc *UserUpdateReqCall) SetUserId(userId string)
func (*UserUpdateReqCall) SetUserIdType ¶
func (rc *UserUpdateReqCall) SetUserIdType(userIdType string)
type UserUpdateResult ¶
type UserUpdateResult struct {
User *User `json:"user,omitempty"`
}
type UserUpdatedEvent ¶
type UserUpdatedEvent struct { *model.BaseEventV2 Event *UserUpdatedEventData `json:"event"` }
type UserUpdatedEventData ¶
type UserUpdatedEventHandler ¶
type UserUpdatedEventHandler struct {
Fn func(*core.Context, *UserUpdatedEvent) error
}
func (*UserUpdatedEventHandler) GetEvent ¶
func (h *UserUpdatedEventHandler) GetEvent() interface{}
Click to show internal directories.
Click to hide internal directories.