115 lines
4.1 KiB
Go
115 lines
4.1 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"`
|
|
}
|
|
|
|
type DingtalkTask struct {
|
|
SourceID string `json:"sourceId"`
|
|
Subject string `json:"subject"`
|
|
CreatorID string `json:"creatorId"`
|
|
Description string `json:"description"`
|
|
DueTime int64 `json:"dueTime"`
|
|
ExecutorIds []string `json:"executorIds"`
|
|
ParticipantIds []string `json:"participantIds"`
|
|
DetailURL DetailURL `json:"detailUrl"`
|
|
IsOnlyShowExecutor bool `json:"isOnlyShowExecutor"`
|
|
Priority int `json:"priority"`
|
|
NotifyConfigs NotifyConfigs `json:"notifyConfigs"`
|
|
}
|
|
type DetailURL struct {
|
|
AppURL string `json:"appUrl"`
|
|
PcURL string `json:"pcUrl"`
|
|
}
|
|
type NotifyConfigs struct {
|
|
DingNotify string `json:"dingNotify"`
|
|
}
|
|
|
|
type DingtalkRes struct {
|
|
ID string `json:"id"`
|
|
Subject string `json:"subject"`
|
|
Description string `json:"description"`
|
|
StartTime int64 `json:"startTime"`
|
|
DueTime int64 `json:"dueTime"`
|
|
FinishTime int64 `json:"finishTime"`
|
|
Done bool `json:"done"`
|
|
ExecutorIds []string `json:"executorIds"`
|
|
ParticipantIds []string `json:"participantIds"`
|
|
DetailURL DetailURL `json:"detailUrl"`
|
|
Source string `json:"source"`
|
|
SourceID string `json:"sourceId"`
|
|
CreatedTime int64 `json:"createdTime"`
|
|
ModifiedTime int64 `json:"modifiedTime"`
|
|
CreatorID string `json:"creatorId"`
|
|
ModifierID string `json:"modifierId"`
|
|
BizTag string `json:"bizTag"`
|
|
RequestID string `json:"requestId"`
|
|
IsOnlyShowExecutor bool `json:"isOnlyShowExecutor"`
|
|
Priority int `json:"priority"`
|
|
NotifyConfigs NotifyConfigs `json:"notifyConfigs"`
|
|
}
|