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 SetDepartmentCreateEventHandler(conf *config.Config, ...)
- func SetDepartmentCreatedEventHandler(conf *config.Config, ...)
- func SetDepartmentCreatedV3EventHandler(conf *config.Config, ...)
- func SetDepartmentDeleteEventHandler(conf *config.Config, ...)
- func SetDepartmentDeletedEventHandler(conf *config.Config, ...)
- func SetDepartmentUpdateEventHandler(conf *config.Config, ...)
- func SetDepartmentUpdatedEventHandler(conf *config.Config, ...)
- func SetScopeUpdatedEventHandler(conf *config.Config, ...)
- func SetUserCreateEventHandler(conf *config.Config, fn func(ctx *core.Context, event *UserCreateEvent) error)
- func SetUserCreatedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *UserCreatedEvent) error)
- func SetUserDeleteEventHandler(conf *config.Config, fn func(ctx *core.Context, event *UserDeleteEvent) error)
- func SetUserDeletedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *UserDeletedEvent) error)
- func SetUserGroupCreateEventHandler(conf *config.Config, ...)
- func SetUserGroupCreatedEventHandler(conf *config.Config, ...)
- func SetUserGroupDeleteEventHandler(conf *config.Config, ...)
- func SetUserGroupDeletedEventHandler(conf *config.Config, ...)
- func SetUserGroupUpdateEventHandler(conf *config.Config, ...)
- func SetUserGroupUpdatedEventHandler(conf *config.Config, ...)
- func SetUserUpdateEventHandler(conf *config.Config, fn func(ctx *core.Context, event *UserUpdateEvent) error)
- func SetUserUpdatedEventHandler(conf *config.Config, fn func(ctx *core.Context, event *UserUpdatedEvent) error)
- type AvatarInfo
- type Department
- type DepartmentCreateEvent
- type DepartmentCreateEventData
- type DepartmentCreateEventHandler
- type DepartmentCreateReqCall
- type DepartmentCreateResult
- type DepartmentCreatedEvent
- type DepartmentCreatedEventData
- type DepartmentCreatedEventHandler
- type DepartmentCreatedV3Event
- type DepartmentCreatedV3EventData
- type DepartmentCreatedV3EventHandler
- type DepartmentDeleteEvent
- type DepartmentDeleteEventData
- type DepartmentDeleteEventHandler
- type DepartmentDeleteReqCall
- type DepartmentDeletedEvent
- type DepartmentDeletedEventData
- type DepartmentDeletedEventHandler
- type DepartmentEvent
- type DepartmentEventService
- type DepartmentGetReqCall
- type DepartmentGetResult
- type DepartmentListReqCall
- func (rc *DepartmentListReqCall) Do() (*DepartmentListResult, error)
- func (rc *DepartmentListReqCall) SetDepartmentIdType(departmentIdType string)
- 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 DepartmentNomalizeDepartmentChatReqBody
- type DepartmentNomalizeDepartmentChatReqCall
- func (rc *DepartmentNomalizeDepartmentChatReqCall) Do() (*response.NoData, error)
- func (rc *DepartmentNomalizeDepartmentChatReqCall) SetDepartmentIdType(departmentIdType string)
- func (rc *DepartmentNomalizeDepartmentChatReqCall) SetPageSize(pageSize int)
- func (rc *DepartmentNomalizeDepartmentChatReqCall) SetPageToken(pageToken string)
- type DepartmentNomalizeReqBody
- type DepartmentNomalizeReqCall
- 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 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) Nomalize(ctx *core.Context, body *DepartmentNomalizeReqBody, optFns ...request.OptFn) *DepartmentNomalizeReqCall
- func (departments *DepartmentService) NomalizeDepartmentChat(ctx *core.Context, body *DepartmentNomalizeDepartmentChatReqBody, ...) *DepartmentNomalizeDepartmentChatReqCall
- 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) Update(ctx *core.Context, body *Department, optFns ...request.OptFn) *DepartmentUpdateReqCall
- func (departments *DepartmentService) UpdateDepartmentId(ctx *core.Context, body *DepartmentUpdateDepartmentIdReqBody, ...) *DepartmentUpdateDepartmentIdReqCall
- type DepartmentUnit
- type DepartmentUnitCreateReqCall
- type DepartmentUnitCreateResult
- type DepartmentUnitDeleteReqCall
- type DepartmentUnitPatchReqBody
- type DepartmentUnitPatchReqCall
- type DepartmentUnitPatchResult
- type DepartmentUnitService
- func (departmentUnits *DepartmentUnitService) Create(ctx *core.Context, body *DepartmentUnit, optFns ...request.OptFn) *DepartmentUnitCreateReqCall
- func (departmentUnits *DepartmentUnitService) Delete(ctx *core.Context, optFns ...request.OptFn) *DepartmentUnitDeleteReqCall
- func (departmentUnits *DepartmentUnitService) Patch(ctx *core.Context, body *DepartmentUnitPatchReqBody, optFns ...request.OptFn) *DepartmentUnitPatchReqCall
- type DepartmentUpdateDepartmentIdReqBody
- type DepartmentUpdateDepartmentIdReqCall
- type DepartmentUpdateEvent
- type DepartmentUpdateEventData
- type DepartmentUpdateEventHandler
- type DepartmentUpdateReqCall
- type DepartmentUpdateResult
- type DepartmentUpdatedEvent
- type DepartmentUpdatedEventData
- type DepartmentUpdatedEventHandler
- type GroupEvent
- type GroupEventService
- type Member
- type MemberService
- type Scope
- type ScopeService
- type ScopeUpdatedEvent
- type ScopeUpdatedEventData
- type ScopeUpdatedEventHandler
- type Service
- type User
- type UserCreateEvent
- type UserCreateEventData
- type UserCreateEventHandler
- type UserCreateReqCall
- type UserCreateResult
- type UserCreatedEvent
- type UserCreatedEventData
- type UserCreatedEventHandler
- type UserCustomAttr
- type UserCustomAttrValue
- type UserDeleteEvent
- type UserDeleteEventData
- type UserDeleteEventHandler
- type UserDeleteReqBody
- type UserDeleteReqCall
- type UserDeletedEvent
- type UserDeletedEventData
- type UserDeletedEventHandler
- type UserEvent
- type UserEventService
- type UserGetReqCall
- type UserGetResult
- type UserGroup
- type UserGroupCreateEvent
- type UserGroupCreateEventData
- type UserGroupCreateEventHandler
- type UserGroupCreateReqCall
- type UserGroupCreateResult
- type UserGroupCreatedEvent
- type UserGroupCreatedEventData
- type UserGroupCreatedEventHandler
- type UserGroupDeleteEvent
- type UserGroupDeleteEventData
- type UserGroupDeleteEventHandler
- type UserGroupDeleteReqCall
- type UserGroupDeletedEvent
- type UserGroupDeletedEventData
- type UserGroupDeletedEventHandler
- type UserGroupGetReqCall
- type UserGroupGetResult
- type UserGroupListReqCall
- type UserGroupListResult
- type UserGroupMember
- type UserGroupMemberCreateReqBody
- type UserGroupMemberCreateReqCall
- type UserGroupMemberDeleteReqCall
- type UserGroupMemberListReqCall
- func (rc *UserGroupMemberListReqCall) Do() (*UserGroupMemberListResult, error)
- func (rc *UserGroupMemberListReqCall) SetDepartmentIdType(departmentIdType string)
- func (rc *UserGroupMemberListReqCall) SetUserGroupId(userGroupId string)
- func (rc *UserGroupMemberListReqCall) SetUserIdType(userIdType string)
- type UserGroupMemberListResult
- type UserGroupMemberService
- func (userGroupMembers *UserGroupMemberService) Create(ctx *core.Context, body *UserGroupMemberCreateReqBody, optFns ...request.OptFn) *UserGroupMemberCreateReqCall
- func (userGroupMembers *UserGroupMemberService) Delete(ctx *core.Context, optFns ...request.OptFn) *UserGroupMemberDeleteReqCall
- func (userGroupMembers *UserGroupMemberService) List(ctx *core.Context, optFns ...request.OptFn) *UserGroupMemberListReqCall
- type UserGroupPatchReqCall
- type UserGroupPatchResult
- type UserGroupService
- func (userGroups *UserGroupService) Create(ctx *core.Context, body *UserGroup, optFns ...request.OptFn) *UserGroupCreateReqCall
- func (userGroups *UserGroupService) Delete(ctx *core.Context, optFns ...request.OptFn) *UserGroupDeleteReqCall
- func (userGroups *UserGroupService) Get(ctx *core.Context, optFns ...request.OptFn) *UserGroupGetReqCall
- func (userGroups *UserGroupService) List(ctx *core.Context, optFns ...request.OptFn) *UserGroupListReqCall
- func (userGroups *UserGroupService) Patch(ctx *core.Context, body *UserGroup, optFns ...request.OptFn) *UserGroupPatchReqCall
- func (userGroups *UserGroupService) UpdateUserGroupId(ctx *core.Context, body *UserGroupUpdateUserGroupIdReqBody, ...) *UserGroupUpdateUserGroupIdReqCall
- type UserGroupUpdateEvent
- type UserGroupUpdateEventData
- type UserGroupUpdateEventHandler
- type UserGroupUpdateUserGroupIdReqBody
- type UserGroupUpdateUserGroupIdReqCall
- type UserGroupUpdatedEvent
- type UserGroupUpdatedEventData
- type UserGroupUpdatedEventHandler
- 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
- func (users *UserService) UpdateUserId(ctx *core.Context, body *UserUpdateUserIdReqBody, optFns ...request.OptFn) *UserUpdateUserIdReqCall
- type UserStatus
- type UserUpdateEvent
- type UserUpdateEventData
- type UserUpdateEventHandler
- type UserUpdateReqCall
- type UserUpdateResult
- type UserUpdateUserIdReqBody
- type UserUpdateUserIdReqCall
- type UserUpdatedEvent
- type UserUpdatedEventData
- type UserUpdatedEventHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AvatarInfo ¶
type Department ¶
type Department 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"` UnitIds []string `json:"unit_ids,omitempty"` MemberCount int `json:"member_count,omitempty"` Status int `json:"status,omitempty"` CreateGroupChat bool `json:"create_group_chat,omitempty"` }
type DepartmentCreateEvent ¶
type DepartmentCreateEvent struct { *model.BaseEventV2 Event *DepartmentCreateEventData `json:"event"` }
type DepartmentCreateEventData ¶
type DepartmentCreateEventData struct {
Object *DepartmentEvent `json:"object,omitempty"`
}
type DepartmentCreateEventHandler ¶
type DepartmentCreateEventHandler struct {
Fn func(*core.Context, *DepartmentCreateEvent) error
}
func (*DepartmentCreateEventHandler) GetEvent ¶
func (h *DepartmentCreateEventHandler) GetEvent() interface{}
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 DepartmentCreatedV3Event ¶
type DepartmentCreatedV3Event struct { *model.BaseEventV2 Event *DepartmentCreatedV3EventData `json:"event"` }
type DepartmentCreatedV3EventData ¶
type DepartmentCreatedV3EventData struct {
Object *DepartmentEvent `json:"object,omitempty"`
}
type DepartmentCreatedV3EventHandler ¶
type DepartmentCreatedV3EventHandler struct {
Fn func(*core.Context, *DepartmentCreatedV3Event) error
}
func (*DepartmentCreatedV3EventHandler) GetEvent ¶
func (h *DepartmentCreatedV3EventHandler) GetEvent() interface{}
type DepartmentDeleteEvent ¶
type DepartmentDeleteEvent struct { *model.BaseEventV2 Event *DepartmentDeleteEventData `json:"event"` }
type DepartmentDeleteEventData ¶
type DepartmentDeleteEventData struct { Object *DepartmentEvent `json:"object,omitempty"` OldObject *DepartmentEvent `json:"old_object,omitempty"` }
type DepartmentDeleteEventHandler ¶
type DepartmentDeleteEventHandler struct {
Fn func(*core.Context, *DepartmentDeleteEvent) error
}
func (*DepartmentDeleteEventHandler) GetEvent ¶
func (h *DepartmentDeleteEventHandler) 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)
func (*DepartmentDeleteReqCall) SetUserIdType ¶
func (rc *DepartmentDeleteReqCall) SetUserIdType(userIdType string)
type DepartmentDeletedEvent ¶
type DepartmentDeletedEvent struct { *model.BaseEventV2 Event *DepartmentDeletedEventData `json:"event"` }
type DepartmentDeletedEventData ¶
type DepartmentDeletedEventData struct {
Object *DepartmentEvent `json:"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"` UnitIds []string `json:"unit_ids,omitempty"` MemberCount int `json:"member_count,omitempty"` Status int `json:"status,omitempty"` }
type DepartmentEventService ¶
type DepartmentEventService struct {
// contains filtered or unexported fields
}
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 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) 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 DepartmentNomalizeDepartmentChatReqBody ¶
type DepartmentNomalizeDepartmentChatReqBody struct {
DepartmentId string `json:"department_id,omitempty"`
}
type DepartmentNomalizeDepartmentChatReqCall ¶
type DepartmentNomalizeDepartmentChatReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentNomalizeDepartmentChatReqCall) Do ¶
func (rc *DepartmentNomalizeDepartmentChatReqCall) Do() (*response.NoData, error)
func (*DepartmentNomalizeDepartmentChatReqCall) SetDepartmentIdType ¶
func (rc *DepartmentNomalizeDepartmentChatReqCall) SetDepartmentIdType(departmentIdType string)
func (*DepartmentNomalizeDepartmentChatReqCall) SetPageSize ¶
func (rc *DepartmentNomalizeDepartmentChatReqCall) SetPageSize(pageSize int)
func (*DepartmentNomalizeDepartmentChatReqCall) SetPageToken ¶
func (rc *DepartmentNomalizeDepartmentChatReqCall) SetPageToken(pageToken string)
type DepartmentNomalizeReqBody ¶
type DepartmentNomalizeReqBody struct {
DepartmentId string `json:"department_id,omitempty"`
}
type DepartmentNomalizeReqCall ¶
type DepartmentNomalizeReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentNomalizeReqCall) Do ¶
func (rc *DepartmentNomalizeReqCall) Do() (*response.NoData, error)
func (*DepartmentNomalizeReqCall) SetDepartmentIdType ¶
func (rc *DepartmentNomalizeReqCall) SetDepartmentIdType(departmentIdType string)
func (*DepartmentNomalizeReqCall) SetPageSize ¶
func (rc *DepartmentNomalizeReqCall) SetPageSize(pageSize int)
func (*DepartmentNomalizeReqCall) SetPageToken ¶
func (rc *DepartmentNomalizeReqCall) SetPageToken(pageToken string)
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 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) Nomalize ¶
func (departments *DepartmentService) Nomalize(ctx *core.Context, body *DepartmentNomalizeReqBody, optFns ...request.OptFn) *DepartmentNomalizeReqCall
func (*DepartmentService) NomalizeDepartmentChat ¶
func (departments *DepartmentService) NomalizeDepartmentChat(ctx *core.Context, body *DepartmentNomalizeDepartmentChatReqBody, optFns ...request.OptFn) *DepartmentNomalizeDepartmentChatReqCall
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) Update ¶
func (departments *DepartmentService) Update(ctx *core.Context, body *Department, optFns ...request.OptFn) *DepartmentUpdateReqCall
func (*DepartmentService) UpdateDepartmentId ¶
func (departments *DepartmentService) UpdateDepartmentId(ctx *core.Context, body *DepartmentUpdateDepartmentIdReqBody, optFns ...request.OptFn) *DepartmentUpdateDepartmentIdReqCall
type DepartmentUnit ¶
type DepartmentUnitCreateReqCall ¶
type DepartmentUnitCreateReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentUnitCreateReqCall) Do ¶
func (rc *DepartmentUnitCreateReqCall) Do() (*DepartmentUnitCreateResult, error)
type DepartmentUnitCreateResult ¶
type DepartmentUnitCreateResult struct {
DepartmentUnit *DepartmentUnit `json:"department_unit,omitempty"`
}
type DepartmentUnitDeleteReqCall ¶
type DepartmentUnitDeleteReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentUnitDeleteReqCall) Do ¶
func (rc *DepartmentUnitDeleteReqCall) Do() (*response.NoData, error)
func (*DepartmentUnitDeleteReqCall) SetUnitId ¶
func (rc *DepartmentUnitDeleteReqCall) SetUnitId(unitId string)
type DepartmentUnitPatchReqCall ¶
type DepartmentUnitPatchReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentUnitPatchReqCall) Do ¶
func (rc *DepartmentUnitPatchReqCall) Do() (*DepartmentUnitPatchResult, error)
func (*DepartmentUnitPatchReqCall) SetUnitId ¶
func (rc *DepartmentUnitPatchReqCall) SetUnitId(unitId string)
type DepartmentUnitPatchResult ¶
type DepartmentUnitPatchResult struct {
DepartmentUnit *DepartmentUnit `json:"department_unit,omitempty"`
}
type DepartmentUnitService ¶
type DepartmentUnitService struct {
// contains filtered or unexported fields
}
func (*DepartmentUnitService) Create ¶
func (departmentUnits *DepartmentUnitService) Create(ctx *core.Context, body *DepartmentUnit, optFns ...request.OptFn) *DepartmentUnitCreateReqCall
func (*DepartmentUnitService) Delete ¶
func (departmentUnits *DepartmentUnitService) Delete(ctx *core.Context, optFns ...request.OptFn) *DepartmentUnitDeleteReqCall
func (*DepartmentUnitService) Patch ¶
func (departmentUnits *DepartmentUnitService) Patch(ctx *core.Context, body *DepartmentUnitPatchReqBody, optFns ...request.OptFn) *DepartmentUnitPatchReqCall
type DepartmentUpdateDepartmentIdReqBody ¶
type DepartmentUpdateDepartmentIdReqBody struct {
NewDepartmentId string `json:"new_department_id,omitempty"`
}
type DepartmentUpdateDepartmentIdReqCall ¶
type DepartmentUpdateDepartmentIdReqCall struct {
// contains filtered or unexported fields
}
func (*DepartmentUpdateDepartmentIdReqCall) Do ¶
func (rc *DepartmentUpdateDepartmentIdReqCall) Do() (*response.NoData, error)
func (*DepartmentUpdateDepartmentIdReqCall) SetDepartmentId ¶
func (rc *DepartmentUpdateDepartmentIdReqCall) SetDepartmentId(departmentId string)
func (*DepartmentUpdateDepartmentIdReqCall) SetDepartmentIdType ¶
func (rc *DepartmentUpdateDepartmentIdReqCall) SetDepartmentIdType(departmentIdType string)
type DepartmentUpdateEvent ¶
type DepartmentUpdateEvent struct { *model.BaseEventV2 Event *DepartmentUpdateEventData `json:"event"` }
type DepartmentUpdateEventData ¶
type DepartmentUpdateEventData struct { Object *DepartmentEvent `json:"object,omitempty"` OldObject *DepartmentEvent `json:"old_object,omitempty"` }
type DepartmentUpdateEventHandler ¶
type DepartmentUpdateEventHandler struct {
Fn func(*core.Context, *DepartmentUpdateEvent) error
}
func (*DepartmentUpdateEventHandler) GetEvent ¶
func (h *DepartmentUpdateEventHandler) GetEvent() interface{}
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 GroupEvent ¶
type GroupEventService ¶
type GroupEventService struct {
// contains filtered or unexported fields
}
type MemberService ¶
type MemberService struct {
// contains filtered or unexported fields
}
type Scope ¶
type Scope struct { Departments []*Department `json:"departments,omitempty"` Users []*User `json:"users,omitempty"` UserGroups []*UserGroup `json:"user_groups,omitempty"` }
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 { Departments *DepartmentService DepartmentEvents *DepartmentEventService DepartmentUnits *DepartmentUnitService GroupEvents *GroupEventService Members *MemberService Scopes *ScopeService Users *UserService UserEvents *UserEventService UserGroups *UserGroupService UserGroupMembers *UserGroupMemberService // 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"` Positions []*UserPosition `json:"positions,omitempty"` Orders []*UserOrder `json:"orders,omitempty"` TimeZone string `json:"time_zone,omitempty"` CustomAttrs []*UserCustomAttr `json:"custom_attrs,omitempty"` }
type UserCreateEvent ¶
type UserCreateEvent struct { *model.BaseEventV2 Event *UserCreateEventData `json:"event"` }
type UserCreateEventData ¶
type UserCreateEventData struct {
Object *UserEvent `json:"object,omitempty"`
}
type UserCreateEventHandler ¶
type UserCreateEventHandler struct {
Fn func(*core.Context, *UserCreateEvent) error
}
func (*UserCreateEventHandler) GetEvent ¶
func (h *UserCreateEventHandler) GetEvent() interface{}
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"` }
type UserCustomAttrValue ¶
type UserDeleteEvent ¶
type UserDeleteEvent struct { *model.BaseEventV2 Event *UserDeleteEventData `json:"event"` }
type UserDeleteEventData ¶
type UserDeleteEventData struct {
Object *UserEvent `json:"object,omitempty"`
}
type UserDeleteEventHandler ¶
type UserDeleteEventHandler struct {
Fn func(*core.Context, *UserDeleteEvent) error
}
func (*UserDeleteEventHandler) GetEvent ¶
func (h *UserDeleteEventHandler) GetEvent() interface{}
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"` }
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"`
}
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"` MobileVisible bool `json:"mobile_visible,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"` IsTenantManager bool `json:"is_tenant_manager,omitempty"` EmployeeNo string `json:"employee_no,omitempty"` EmployeeType int `json:"employee_type,omitempty"` Positions []*UserPosition `json:"positions,omitempty"` Orders []*UserOrder `json:"orders,omitempty"` TimeZone string `json:"time_zone,omitempty"` CustomAttrs []*UserCustomAttr `json:"custom_attrs,omitempty"` }
type UserEventService ¶
type UserEventService struct {
// contains filtered or unexported fields
}
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 UserGroupCreateEvent ¶
type UserGroupCreateEvent struct { *model.BaseEventV2 Event *UserGroupCreateEventData `json:"event"` }
type UserGroupCreateEventData ¶
type UserGroupCreateEventData struct {
Object *GroupEvent `json:"object,omitempty"`
}
type UserGroupCreateEventHandler ¶
type UserGroupCreateEventHandler struct {
Fn func(*core.Context, *UserGroupCreateEvent) error
}
func (*UserGroupCreateEventHandler) GetEvent ¶
func (h *UserGroupCreateEventHandler) GetEvent() interface{}
type UserGroupCreateReqCall ¶
type UserGroupCreateReqCall struct {
// contains filtered or unexported fields
}
func (*UserGroupCreateReqCall) Do ¶
func (rc *UserGroupCreateReqCall) Do() (*UserGroupCreateResult, error)
type UserGroupCreateResult ¶
type UserGroupCreateResult struct {
UserGroup *UserGroup `json:"user_group,omitempty"`
}
type UserGroupCreatedEvent ¶
type UserGroupCreatedEvent struct { *model.BaseEventV2 Event *UserGroupCreatedEventData `json:"event"` }
type UserGroupCreatedEventData ¶
type UserGroupCreatedEventData struct {
Object *GroupEvent `json:"object,omitempty"`
}
type UserGroupCreatedEventHandler ¶
type UserGroupCreatedEventHandler struct {
Fn func(*core.Context, *UserGroupCreatedEvent) error
}
func (*UserGroupCreatedEventHandler) GetEvent ¶
func (h *UserGroupCreatedEventHandler) GetEvent() interface{}
type UserGroupDeleteEvent ¶
type UserGroupDeleteEvent struct { *model.BaseEventV2 Event *UserGroupDeleteEventData `json:"event"` }
type UserGroupDeleteEventData ¶
type UserGroupDeleteEventData struct { Object *GroupEvent `json:"object,omitempty"` OldObject *GroupEvent `json:"old_object,omitempty"` }
type UserGroupDeleteEventHandler ¶
type UserGroupDeleteEventHandler struct {
Fn func(*core.Context, *UserGroupDeleteEvent) error
}
func (*UserGroupDeleteEventHandler) GetEvent ¶
func (h *UserGroupDeleteEventHandler) GetEvent() interface{}
type UserGroupDeleteReqCall ¶
type UserGroupDeleteReqCall struct {
// contains filtered or unexported fields
}
func (*UserGroupDeleteReqCall) Do ¶
func (rc *UserGroupDeleteReqCall) Do() (*response.NoData, error)
func (*UserGroupDeleteReqCall) SetUserGroupId ¶
func (rc *UserGroupDeleteReqCall) SetUserGroupId(userGroupId string)
type UserGroupDeletedEvent ¶
type UserGroupDeletedEvent struct { *model.BaseEventV2 Event *UserGroupDeletedEventData `json:"event"` }
type UserGroupDeletedEventData ¶
type UserGroupDeletedEventData struct {
Object *GroupEvent `json:"object,omitempty"`
}
type UserGroupDeletedEventHandler ¶
type UserGroupDeletedEventHandler struct {
Fn func(*core.Context, *UserGroupDeletedEvent) error
}
func (*UserGroupDeletedEventHandler) GetEvent ¶
func (h *UserGroupDeletedEventHandler) GetEvent() interface{}
type UserGroupGetReqCall ¶
type UserGroupGetReqCall struct {
// contains filtered or unexported fields
}
func (*UserGroupGetReqCall) Do ¶
func (rc *UserGroupGetReqCall) Do() (*UserGroupGetResult, error)
func (*UserGroupGetReqCall) SetUserGroupId ¶
func (rc *UserGroupGetReqCall) SetUserGroupId(userGroupId string)
type UserGroupGetResult ¶
type UserGroupGetResult struct {
UserGroup *UserGroup `json:"user_group,omitempty"`
}
type UserGroupListReqCall ¶
type UserGroupListReqCall struct {
// contains filtered or unexported fields
}
func (*UserGroupListReqCall) Do ¶
func (rc *UserGroupListReqCall) Do() (*UserGroupListResult, error)
func (*UserGroupListReqCall) SetPageSize ¶
func (rc *UserGroupListReqCall) SetPageSize(pageSize int)
func (*UserGroupListReqCall) SetPageToken ¶
func (rc *UserGroupListReqCall) SetPageToken(pageToken string)
type UserGroupListResult ¶
type UserGroupMember ¶
type UserGroupMember struct { }
type UserGroupMemberCreateReqBody ¶
type UserGroupMemberCreateReqBody struct {
UserId string `json:"user_id,omitempty"`
}
type UserGroupMemberCreateReqCall ¶
type UserGroupMemberCreateReqCall struct {
// contains filtered or unexported fields
}
func (*UserGroupMemberCreateReqCall) Do ¶
func (rc *UserGroupMemberCreateReqCall) Do() (*response.NoData, error)
func (*UserGroupMemberCreateReqCall) SetUserGroupId ¶
func (rc *UserGroupMemberCreateReqCall) SetUserGroupId(userGroupId string)
func (*UserGroupMemberCreateReqCall) SetUserIdType ¶
func (rc *UserGroupMemberCreateReqCall) SetUserIdType(userIdType string)
type UserGroupMemberDeleteReqCall ¶
type UserGroupMemberDeleteReqCall struct {
// contains filtered or unexported fields
}
func (*UserGroupMemberDeleteReqCall) Do ¶
func (rc *UserGroupMemberDeleteReqCall) Do() (*response.NoData, error)
func (*UserGroupMemberDeleteReqCall) SetUserGroupId ¶
func (rc *UserGroupMemberDeleteReqCall) SetUserGroupId(userGroupId string)
func (*UserGroupMemberDeleteReqCall) SetUserId ¶
func (rc *UserGroupMemberDeleteReqCall) SetUserId(userId string)
func (*UserGroupMemberDeleteReqCall) SetUserIdType ¶
func (rc *UserGroupMemberDeleteReqCall) SetUserIdType(userIdType string)
type UserGroupMemberListReqCall ¶
type UserGroupMemberListReqCall struct {
// contains filtered or unexported fields
}
func (*UserGroupMemberListReqCall) Do ¶
func (rc *UserGroupMemberListReqCall) Do() (*UserGroupMemberListResult, error)
func (*UserGroupMemberListReqCall) SetDepartmentIdType ¶
func (rc *UserGroupMemberListReqCall) SetDepartmentIdType(departmentIdType string)
func (*UserGroupMemberListReqCall) SetUserGroupId ¶
func (rc *UserGroupMemberListReqCall) SetUserGroupId(userGroupId string)
func (*UserGroupMemberListReqCall) SetUserIdType ¶
func (rc *UserGroupMemberListReqCall) SetUserIdType(userIdType string)
type UserGroupMemberService ¶
type UserGroupMemberService struct {
// contains filtered or unexported fields
}
func (*UserGroupMemberService) Create ¶
func (userGroupMembers *UserGroupMemberService) Create(ctx *core.Context, body *UserGroupMemberCreateReqBody, optFns ...request.OptFn) *UserGroupMemberCreateReqCall
func (*UserGroupMemberService) Delete ¶
func (userGroupMembers *UserGroupMemberService) Delete(ctx *core.Context, optFns ...request.OptFn) *UserGroupMemberDeleteReqCall
func (*UserGroupMemberService) List ¶
func (userGroupMembers *UserGroupMemberService) List(ctx *core.Context, optFns ...request.OptFn) *UserGroupMemberListReqCall
type UserGroupPatchReqCall ¶
type UserGroupPatchReqCall struct {
// contains filtered or unexported fields
}
func (*UserGroupPatchReqCall) Do ¶
func (rc *UserGroupPatchReqCall) Do() (*UserGroupPatchResult, error)
func (*UserGroupPatchReqCall) SetUserGroupId ¶
func (rc *UserGroupPatchReqCall) SetUserGroupId(userGroupId string)
type UserGroupPatchResult ¶
type UserGroupPatchResult struct {
UserGroup *UserGroup `json:"user_group,omitempty"`
}
type UserGroupService ¶
type UserGroupService struct {
// contains filtered or unexported fields
}
func (*UserGroupService) Create ¶
func (userGroups *UserGroupService) Create(ctx *core.Context, body *UserGroup, optFns ...request.OptFn) *UserGroupCreateReqCall
func (*UserGroupService) Delete ¶
func (userGroups *UserGroupService) Delete(ctx *core.Context, optFns ...request.OptFn) *UserGroupDeleteReqCall
func (*UserGroupService) Get ¶
func (userGroups *UserGroupService) Get(ctx *core.Context, optFns ...request.OptFn) *UserGroupGetReqCall
func (*UserGroupService) List ¶
func (userGroups *UserGroupService) List(ctx *core.Context, optFns ...request.OptFn) *UserGroupListReqCall
func (*UserGroupService) Patch ¶
func (userGroups *UserGroupService) Patch(ctx *core.Context, body *UserGroup, optFns ...request.OptFn) *UserGroupPatchReqCall
func (*UserGroupService) UpdateUserGroupId ¶
func (userGroups *UserGroupService) UpdateUserGroupId(ctx *core.Context, body *UserGroupUpdateUserGroupIdReqBody, optFns ...request.OptFn) *UserGroupUpdateUserGroupIdReqCall
type UserGroupUpdateEvent ¶
type UserGroupUpdateEvent struct { *model.BaseEventV2 Event *UserGroupUpdateEventData `json:"event"` }
type UserGroupUpdateEventData ¶
type UserGroupUpdateEventData struct { Object *GroupEvent `json:"object,omitempty"` OldObject *GroupEvent `json:"old_object,omitempty"` }
type UserGroupUpdateEventHandler ¶
type UserGroupUpdateEventHandler struct {
Fn func(*core.Context, *UserGroupUpdateEvent) error
}
func (*UserGroupUpdateEventHandler) GetEvent ¶
func (h *UserGroupUpdateEventHandler) GetEvent() interface{}
type UserGroupUpdateUserGroupIdReqBody ¶
type UserGroupUpdateUserGroupIdReqBody struct {
NewUserGroupId string `json:"new_user_group_id,omitempty"`
}
type UserGroupUpdateUserGroupIdReqCall ¶
type UserGroupUpdateUserGroupIdReqCall struct {
// contains filtered or unexported fields
}
func (*UserGroupUpdateUserGroupIdReqCall) Do ¶
func (rc *UserGroupUpdateUserGroupIdReqCall) Do() (*response.NoData, error)
func (*UserGroupUpdateUserGroupIdReqCall) SetUserGroupId ¶
func (rc *UserGroupUpdateUserGroupIdReqCall) SetUserGroupId(userGroupId string)
type UserGroupUpdatedEvent ¶
type UserGroupUpdatedEvent struct { *model.BaseEventV2 Event *UserGroupUpdatedEventData `json:"event"` }
type UserGroupUpdatedEventData ¶
type UserGroupUpdatedEventData struct { Object *GroupEvent `json:"object,omitempty"` OldObject *GroupEvent `json:"old_object,omitempty"` }
type UserGroupUpdatedEventHandler ¶
type UserGroupUpdatedEventHandler struct {
Fn func(*core.Context, *UserGroupUpdatedEvent) error
}
func (*UserGroupUpdatedEventHandler) GetEvent ¶
func (h *UserGroupUpdatedEventHandler) GetEvent() interface{}
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 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"` }
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
func (*UserService) UpdateUserId ¶
func (users *UserService) UpdateUserId(ctx *core.Context, body *UserUpdateUserIdReqBody, optFns ...request.OptFn) *UserUpdateUserIdReqCall
type UserStatus ¶
type UserUpdateEvent ¶
type UserUpdateEvent struct { *model.BaseEventV2 Event *UserUpdateEventData `json:"event"` }
type UserUpdateEventData ¶
type UserUpdateEventHandler ¶
type UserUpdateEventHandler struct {
Fn func(*core.Context, *UserUpdateEvent) error
}
func (*UserUpdateEventHandler) GetEvent ¶
func (h *UserUpdateEventHandler) GetEvent() interface{}
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 UserUpdateUserIdReqBody ¶
type UserUpdateUserIdReqBody struct {
NewUserId string `json:"new_user_id,omitempty"`
}
type UserUpdateUserIdReqCall ¶
type UserUpdateUserIdReqCall struct {
// contains filtered or unexported fields
}
func (*UserUpdateUserIdReqCall) Do ¶
func (rc *UserUpdateUserIdReqCall) Do() (*response.NoData, error)
func (*UserUpdateUserIdReqCall) SetUserId ¶
func (rc *UserUpdateUserIdReqCall) SetUserId(userId string)
func (*UserUpdateUserIdReqCall) SetUserIdType ¶
func (rc *UserUpdateUserIdReqCall) SetUserIdType(userIdType string)
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.