Documentation ¶
Index ¶
- type AccessToken
- type AdminUserScope
- type Agent
- type AgentInfo
- type AssociatedOrg
- type AuthCorpInfo
- type AuthInfo
- type AuthUserInfo
- type ChannelAgent
- type ChannelAuthInfo
- type ChatMsgReadUser
- type ChatQRCode
- type CodeGetUserInfo
- type CorpAuthInfo
- type CorpConvMessage
- type CorpDingIndex
- type CorpPermanentCode
- type CreatChat
- type CreateCooperateCorp
- type CreateDept
- type CreateDriveSpaces
- type CreateExtContact
- type CreateRole
- type CreateRoleGroup
- type CreateTodo
- type CreateUser
- type DeleteTodo
- type DeptDetail
- type DeptDetailUserInfo
- type DeptList
- type DeptSimpleUserInfo
- type DeptUserId
- type DriveSpacesFilesPermissions
- type GetChatInfo
- type GetDriveSpaces
- type GetDriveSpacesFileInfo
- type GetDriveSpacesFiles
- type GetExtContact
- type GetExtContactDetail
- type GetExtContactLabel
- type GetIndustryDept
- type GetIndustryDeptDetail
- type GetParentIdsByDeptId
- type GetParentIdsByUserId
- type GetTodoDetail
- type GetTodoList
- type GroupRole
- type InactiveUser
- type JsApiTicket
- type LeaderInDept
- type MediaUpload
- type MessageProgress
- type MessageSendResult
- type MobileGetUserId
- type OrgAdminUser
- type Response
- type RoleDetail
- type RoleList
- type RoleUser
- type SSOUserInfo
- type SendChatMessage
- type SendMessage
- type SendTemplateMessage
- type SnsUserInfo
- type SubDeptList
- type SuiteAccessToken
- type UnactiveCorp
- type UnionIdGetUserId
- type UnionOrg
- type Unmarshalled
- type UpdateTodo
- type UserCanAccessApplet
- type UserCont
- type UserDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct { Response // Expires 过期时间 Expires int16 `json:"expires_in"` // Create 创建时间 Create int64 `json:"create"` // Token Token string `json:"access_token"` }
AccessToken 获取企业内部应用的access_token https://developers.dingtalk.com/document/app/obtain-orgapp-token
func (*AccessToken) CreatedAt ¶
func (token *AccessToken) CreatedAt() int64
CreatedAt is when the access token is generated
func (*AccessToken) ExpiresIn ¶
func (token *AccessToken) ExpiresIn() int16
ExpiresIn is how soon the access token is expired
type AdminUserScope ¶
type AssociatedOrg ¶
type AssociatedOrg struct {
UnionOrgList []UnionOrg `json:"union_emp_map_list"`
}
AssociatedOrg 关联映射关系
type AuthCorpInfo ¶
type AuthCorpInfo struct { CorpId string `json:"corpid"` //企业所属行业 Industry string `json:"industry"` //邀请码,只有自己邀请的企业才会返回邀请码,可用该邀请码统计不同渠道的拉新,否则值为空字符串 InviteCode string `json:"invite_code"` //授权方企业名称 CorpName string `json:"corp_name"` //序列号 LicenseCode string `json:"license_code"` //渠道码 AuthChannel string `json:"auth_channel"` //渠道类型。 //为了避免渠道码重复,可与渠道码共同确认渠道。可能为空,非空时当前只有满天星类型,值为STAR_ACTIVITY AuthChannelType string `json:"auth_channel_type"` //企业是否认证。 Authenticated bool `json:"is_authenticated"` //企业认证等级: // //0:未认证 // //1:高级认证 // //2:中级认证 // //3:初级认证 AuthLevel int `json:"auth_level"` //企业邀请链接 InviteUrl string `json:"invite_url"` //企业logo CorpLogoUrl string `json:"corp_logo_url"` }
type AuthUserInfo ¶
type AuthUserInfo struct {
UserId string `json:"userId"`
}
type ChannelAgent ¶
type ChannelAuthInfo ¶
type ChannelAuthInfo struct {
ChannelAgents []ChannelAgent `json:"channelAgent"`
}
ChannelAuthInfo 授权的服务窗应用信息列表
type ChatMsgReadUser ¶ added in v2.0.2
type ChatQRCode ¶
type CodeGetUserInfo ¶ added in v2.0.2
type CodeGetUserInfo struct { Response // contains filtered or unexported fields }
type CorpAuthInfo ¶
type CorpAuthInfo struct { Response AuthInfo `json:"auth_info"` AuthCorpInfo `json:"auth_corp_info"` AuthUserInfo `json:"auth_user_info"` ChannelAuthInfo `json:"channel_auth_info"` }
type CorpConvMessage ¶ added in v2.0.2
type CorpDingIndex ¶ added in v2.0.2
type CorpDingIndex struct { Response //日期 Date string `json:"statDate"` //钉钉指数 Total float32 `json:"idxTotal"` //效率指数 Efficiency float32 `json:"idxEfficiency"` //绿色指数 Carbon float32 `json:"idxCarbon"` //钉钉指数月均分 MonthlyAvg float32 `json:"idxMonthlyAvg"` }
CorpDingIndex 获取企业最新钉钉指数信息
type CorpPermanentCode ¶ added in v2.0.2
type CreateCooperateCorp ¶ added in v2.0.2
type CreateCooperateCorp struct { Response //合作空间的CorpId CooperateCorpId string `json:"cooperateCorpId"` }
CreateCooperateCorp 创建合作空间
type CreateDept ¶
type CreateDept struct { Response // contains filtered or unexported fields }
type CreateDriveSpaces ¶ added in v2.0.3
type CreateDriveSpaces struct { Response //空间ID SpaceId string `json:"spaceId"` //空间名称 Name string `json:"spaceName"` //空间类型 Type string `json:"spaceType"` //空间总额度 Quota int `json:"quota"` //空间已使用额度 UsedQuota int `json:"usedQuota"` //授权模式,取值: // //acl:acl授权 //custom:自定义授权 PermissionMode string `json:"permissionMode"` //创建时间 CreateTime string `json:"createTime"` //修改时间 ModifyTime string `json:"modifyTime"` }
type CreateExtContact ¶
type CreateRole ¶
type CreateRoleGroup ¶
type CreateTodo ¶ added in v2.0.2
type CreateTodo struct { Response //待办ID Id string `json:"id"` //待办的标题 Subject string `json:"subject"` //待办描述 Desc string `json:"description"` //开始时间,Unix时间戳,单位毫秒 StartTime int `json:"startTime"` //截止时间,Unix时间戳,单位毫秒 DueTime int `json:"dueTime"` //完成时间,Unix时间戳,单位毫秒 FinishTime int `json:"finishTime"` //完成状态 Done bool `json:"done"` //执行者的unionId Executors []string `json:"executorIds"` //参与者的unionId Participants []string `json:"participantIds"` //详情页url跳转地址。 Urls *detailUrl `json:"detailUrl"` //业务来源 Source string `json:"source"` // 业务系统侧的唯一标识ID,即业务ID。 SourceId string `json:"sourceId"` //创建时间,Unix时间戳,单位毫秒 CreatedTime int `json:"createdTime"` //更新时间,Unix时间戳,单位毫秒 ModifiedTime int `json:"modifiedTime"` //创建者的unionId CreatorId string `json:"creatorId"` //更新者的unionId ModifierId string `json:"modifierId"` //接入应用标识 BizTag string `json:"bizTag"` //生成的待办是否仅展示在执行者的待办列表中 OnlyShowExecutor bool `json:"isOnlyShowExecutor"` //优先级,取值: //10:较低 //20:普通 //30:紧急 //40:非常紧急 Priority int `json:"priority"` //待办通知配置 NotifyConfigs notifyConfigs `json:"notifyConfigs"` }
type CreateUser ¶
type CreateUser struct { Response // contains filtered or unexported fields }
type DeleteTodo ¶ added in v2.0.2
type DeptDetail ¶
type DeptDetail struct { Response // contains filtered or unexported fields }
type DeptDetailUserInfo ¶
type DeptDetailUserInfo struct { Response // contains filtered or unexported fields }
type DeptSimpleUserInfo ¶
type DeptSimpleUserInfo struct { Response // contains filtered or unexported fields }
type DeptUserId ¶
type DeptUserId struct { Response // contains filtered or unexported fields }
type DriveSpacesFilesPermissions ¶ added in v2.0.3
type DriveSpacesFilesPermissions struct { Response //企业内成员权限列表 Members []driveSpacesFilesPermissions `json:"members"` //企业外成员权限列表 OutMembers []driveSpacesFilesPermissions `json:"outMembers"` }
type GetChatInfo ¶
type GetChatInfo struct { Response // contains filtered or unexported fields }
type GetDriveSpaces ¶ added in v2.0.3
type GetDriveSpacesFileInfo ¶ added in v2.0.3
type GetDriveSpacesFileInfo struct { Response // contains filtered or unexported fields }
type GetDriveSpacesFiles ¶ added in v2.0.3
type GetExtContact ¶
type GetExtContact struct { Response Contacts []extContact `json:"results"` }
type GetExtContactDetail ¶
type GetExtContactDetail struct { Response // contains filtered or unexported fields }
type GetExtContactLabel ¶
type GetExtContactLabel struct { Response Results []labels `json:"results"` }
type GetIndustryDept ¶
type GetIndustryDept struct {
Response
}
type GetIndustryDeptDetail ¶
type GetIndustryDeptDetail struct { Response // contains filtered or unexported fields }
type GetParentIdsByDeptId ¶
type GetParentIdsByDeptId struct { Response // contains filtered or unexported fields }
type GetParentIdsByUserId ¶
type GetParentIdsByUserId struct { Response // contains filtered or unexported fields }
type GetTodoDetail ¶ added in v2.0.2
type GetTodoDetail struct { Response //待办ID Id string `json:"id"` //待办的标题 Subject string `json:"subject"` //待办描述 Desc string `json:"description"` //开始时间,Unix时间戳,单位毫秒 StartTime int `json:"startTime"` //截止时间,Unix时间戳,单位毫秒 DueTime int `json:"dueTime"` //完成时间,Unix时间戳,单位毫秒 FinishTime int `json:"finishTime"` //完成状态 Done bool `json:"done"` //执行者的unionId Executors []string `json:"executorIds"` //参与者的unionId Participants []string `json:"participantIds"` //详情页url跳转地址。 Urls *detailUrl `json:"detailUrl"` //业务来源 Source string `json:"source"` // 业务系统侧的唯一标识ID,即业务ID。 SourceId string `json:"sourceId"` //创建时间,Unix时间戳,单位毫秒 CreatedTime int `json:"createdTime"` //更新时间,Unix时间戳,单位毫秒 ModifiedTime int `json:"modifiedTime"` //创建者的unionId CreatorId string `json:"creatorId"` //更新者的unionId ModifierId string `json:"modifierId"` //租户ID TenantId string `json:"tenantId"` //租户类型。 //user:个人 //org:企业 //group:群 TenantType string `json:"tenantType"` //接入应用标识 BizTag string `json:"bizTag"` //待办卡片类型ID CardTypeId string `json:"cardTypeId"` //生成的待办是否仅展示在执行者的待办列表中 OnlyShowExecutor bool `json:"isOnlyShowExecutor"` //优先级,取值: //10:较低 //20:普通 //30:紧急 //40:非常紧急 Priority int `json:"priority"` }
type GetTodoList ¶ added in v2.0.2
type InactiveUser ¶
type InactiveUser struct { Response // contains filtered or unexported fields }
InactiveUser 获取未登录钉钉的员工列表
type JsApiTicket ¶
type JsApiTicket struct { Response // Expires 过期时间 Expires int16 `json:"expires_in"` // Create 创建时间 Create int64 `json:"create"` // Ticket 生成的临时jsapi_ticket。 Ticket string `json:"ticket"` }
func (*JsApiTicket) CreatedAt ¶
func (token *JsApiTicket) CreatedAt() int64
CreatedAt is when the access token is generated
func (*JsApiTicket) ExpiresIn ¶
func (token *JsApiTicket) ExpiresIn() int16
ExpiresIn is how soon the access token is expired
type LeaderInDept ¶
type MediaUpload ¶ added in v2.0.2
type MessageProgress ¶ added in v2.0.2
type MessageProgress struct { Response // contains filtered or unexported fields }
type MessageSendResult ¶ added in v2.0.2
type MessageSendResult struct { Response // contains filtered or unexported fields }
type MobileGetUserId ¶
type MobileGetUserId struct { Response // contains filtered or unexported fields }
type OrgAdminUser ¶
type OrgAdminUser struct { Response AdminUser []orgAdminUser `json:"result"` }
type Response ¶
type Response struct { Code int `json:"errcode"` Msg string `json:"errmsg,omitempty"` Success bool `json:"success,omitempty"` RequestId string `json:"request_id,omitempty"` //todo:新版的api使用TraceId TraceId string `json:"requestId,omitempty"` }
Response 响应 {"errcode":40035,"errmsg":"缺少参数 corpid or appkey"}
func (*Response) CheckError ¶
type RoleDetail ¶
type RoleDetail struct { Response // contains filtered or unexported fields }
type SSOUserInfo ¶ added in v2.0.2
type SendChatMessage ¶ added in v2.0.2
type SendMessage ¶ added in v2.0.2
type SendTemplateMessage ¶ added in v2.0.2
type SnsUserInfo ¶ added in v2.0.2
type SnsUserInfo struct { Response // contains filtered or unexported fields }
type SubDeptList ¶
type SubDeptList struct { Response DeptIds subDeptList `json:"result"` }
type SuiteAccessToken ¶
type SuiteAccessToken struct { Response //Token 第三方企业应用的凭证。 Token string `json:"suite_access_token"` //Expires 第三方企业应用的凭证过期时间,单位秒。 Expires int16 `json:"expires_in"` // Create 创建时间 Create int64 `json:"create"` }
SuiteAccessToken 获取suite套件token
func (*SuiteAccessToken) CreatedAt ¶
func (token *SuiteAccessToken) CreatedAt() int64
CreatedAt Expired.CreatedAt is when the access token is generated
func (*SuiteAccessToken) ExpiresIn ¶
func (token *SuiteAccessToken) ExpiresIn() int16
ExpiresIn is how soon the access token is expired
type UnactiveCorp ¶
type UnionIdGetUserId ¶
type UnionIdGetUserId struct { Response // contains filtered or unexported fields }
type UpdateTodo ¶ added in v2.0.2
type UserCanAccessApplet ¶
type UserDetail ¶
type UserDetail struct { Response // contains filtered or unexported fields }
Source Files ¶
- access_token.go
- admin_user_scope.go
- agent_info.go
- can_access_applet.go
- chat_detail.go
- chat_msg_read.go
- chat_qrcode.go
- code_get_user_info.go
- corp_auth_info.go
- corp_conv_msg.go
- corp_ding_index.go
- corp_permanent_code.go
- creat_chat.go
- creat_cooperate_corp.go
- create_dept.go
- create_drive_spaces.go
- create_ext_contact.go
- create_role.go
- create_role_group.go
- create_todo.go
- create_user.go
- delete_todo.go
- dept_detail.go
- dept_detail_user_info.go
- dept_list.go
- dept_parent_by_dept.go
- dept_parent_by_user.go
- dept_simple_user_info.go
- dept_user_id.go
- get_dirve_spaces.go
- get_dirve_spaces_files.go
- get_drive_spaces_file_info.go
- get_drive_spaces_file_permissions.go
- get_ext_contact.go
- get_ext_contact_detail.go
- get_ext_contact_label.go
- get_industry_dept.go
- get_industry_dept_detail.go
- get_todo_detail.go
- get_todo_list.go
- incative_user.go
- js_api_ticket.go
- media_upload.go
- mobile_get_user_id.go
- msg_progess.go
- msg_send_result.go
- org_admin_user.go
- relo_detail.go
- response.go
- role_group.go
- role_list.go
- role_user.go
- send_chat_msg.go
- send_msg.go
- send_template_msg.go
- sns_user_info.go
- sso_user_info.go
- sub_dept_list.go
- suite_access_token.go
- un_active_corp.go
- unionid_get_user_id.go
- update_todo.go
- user_count.go
- user_detail.go