70 lines
2.2 KiB
Go
70 lines
2.2 KiB
Go
package model
|
|
|
|
type DingtalkUserInfoResponse struct {
|
|
RequestID string `json:"request_id"`
|
|
ErrCode int `json:"errcode"`
|
|
ErrMsg string `json:"errmsg"`
|
|
Result DingtalkUserGetResponse
|
|
}
|
|
|
|
type DingtalkUserGetResponse struct {
|
|
UserID string `json:"userid"`
|
|
Unionid string `json:"unionid"`
|
|
Name string `json:"name"`
|
|
Avatar string `json:"avatar"`
|
|
StateCode string `json:"state_code"`
|
|
ManagerUserID string `json:"manager_userid"`
|
|
Mobile string `json:"mobile"`
|
|
HideMobile bool `json:"hide_mobile"`
|
|
Telephone string `json:"telephone"`
|
|
JobNumber string `json:"job_number"`
|
|
Title string `json:"title"`
|
|
Email string `json:"email"`
|
|
WorkPlace string `json:"work_place"`
|
|
Remark string `json:"remark"`
|
|
LoginID string `json:"login_id"`
|
|
ExclusiveAccountType string `json:"exclusive_account_type"`
|
|
ExclusiveAccount bool `json:"exclusive_account"`
|
|
DeptIDList []int `json:"dept_id_list"`
|
|
DeptOrderList []DingtalkDeptOrder
|
|
Extension string `json:"extension"`
|
|
HiredDate int `json:"hired_date"`
|
|
Active bool `json:"active"`
|
|
RealAuthed bool `json:"real_authed"`
|
|
OrgEmail string `json:"org_email"`
|
|
OrgEmailType string `json:"org_email_type"`
|
|
Senior bool `json:"senior"`
|
|
Admin bool `json:"admin"`
|
|
Boss bool `json:"boss"`
|
|
LeaderInDept []DingtalkDeptLeader
|
|
RoleList []DingtalkUserRole
|
|
UnionEmpExt UnionEmpExt
|
|
}
|
|
|
|
type DingtalkDeptOrder struct {
|
|
DeptID int `json:"dept_id"`
|
|
Order int `json:"order"`
|
|
}
|
|
|
|
type DingtalkDeptLeader struct {
|
|
DeptID int `json:"dept_id"`
|
|
Leader bool `json:"leader"`
|
|
}
|
|
|
|
type DingtalkUserRole struct {
|
|
ID int
|
|
Name string
|
|
GroupName string
|
|
}
|
|
|
|
type UnionEmpExt struct {
|
|
UserID string `json:"userid"`
|
|
UnionEmpMapList []DingtalkUnionEmpMapVo
|
|
CorpId string `json:"corp_id"`
|
|
}
|
|
|
|
type DingtalkUnionEmpMapVo struct {
|
|
UserID string `json:"userid"`
|
|
CorpID string `json:"corpid"`
|
|
}
|