Documentation ¶
Index ¶
- type BaseEvent
- type ChangeType
- type EventCancelAuth
- type EventChangeAuth
- type EventCorpArchAuth
- type EventCreateAuth
- type EventParty
- type EventResetPermanentCode
- type EventShareChange
- type EventSpecialAuth
- type EventSuiteTicket
- type EventUpdateTag
- type EventUser
- type ExtAttr
- type IEvent
- type InfoType
- type Web
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEvent ¶
type BaseEvent struct { kernelModels.CallbackMessageHeader XMLName xml.Name `xml:"xml"` SuiteID string `xml:"SuiteId"` InfoType InfoType `xml:"InfoType"` Timestamp int64 `xml:"TimeStamp"` ChangeType ChangeType `xml:"ChangeType,omitempty"` }
func (BaseEvent) GetChangeType ¶
func (ev BaseEvent) GetChangeType() ChangeType
func (BaseEvent) GetInfoType ¶
func (BaseEvent) GetSuiteID ¶
func (BaseEvent) GetTimestamp ¶
type ChangeType ¶
type ChangeType = string
const ( ChangeTypeCreateUser ChangeType = "create_user" ChangeTypeUpdateUser ChangeType = "update_user" ChangeTypeDeleteUser ChangeType = "delete_user" ChangeTypeCreateParty ChangeType = "create_party" ChangeTypeUpdateParty ChangeType = "update_party" ChangeTypeDeleteParty ChangeType = "delete_party" ChangeTypeUpdateTag ChangeType = "update_tag" )
type EventCancelAuth ¶
type EventChangeAuth ¶
type EventCorpArchAuth ¶
type EventCreateAuth ¶
type EventParty ¶
type EventResetPermanentCode ¶
type EventShareChange ¶
type EventShareChange struct {}
type EventSpecialAuth ¶
type EventSuiteTicket ¶
type EventUpdateTag ¶
type EventUser ¶
type EventUser struct { BaseEvent AuthCorpID string `xml:"AuthCorpId"` UserID string `xml:"UserID"` OpenUserID string `xml:"OpenUserID"` Name string `xml:"Name"` Department string `xml:"Department"` MainDepartment uint64 `xml:"MainDepartment"` IsLeaderInDept string `xml:"IsLeaderInDept"` DirectLeader string `xml:"DirectLeader"` Mobile string `xml:"Mobile"` Position string `xml:"Position"` Gender string `xml:"Gender"` Email string `xml:"Email"` BizMail string `xml:"BizMail"` Avatar string `xml:"Avatar"` Alias string `xml:"Alias"` Telephone string `xml:"Telephone"` ExtAttr string `xml:"ExtAttr>Item"` }
type IEvent ¶
type IEvent interface { contract.EventInterface GetSuiteID() string GetInfoType() InfoType GetTimestamp() int64 GetChangeType() ChangeType }
func DecodeEvent ¶
type InfoType ¶
type InfoType = string
const ( InfoTypeSuiteTicket InfoType = "suite_ticket" InfoTypeCreateAuth InfoType = "create_auth" InfoTypeChangeAuth InfoType = "change_auth" InfoTypeCancelAuth InfoType = "cancel_auth" InfoTypeChangeContact InfoType = "change_contact" InfoTypeResetPermanentCode InfoType = "reset_permanent_code" InfoTypeCorpArchAuth InfoType = "corp_arch_auth" InfoTypeApproveSpecialAuth InfoType = "approve_special_auth" InfoTypeCancelSpecialAuth InfoType = "cancel_special_auth" )
Click to show internal directories.
Click to hide internal directories.