{"modulePath":"github.com/stepdc/godingtalk","version":"v0.0.0-20190730082952-34f304dd9555","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package godingtalk\n\n普通钉钉用户账号开放相关接口\n\n## Constants\n\n```go\nconst (\n\tAES_ENCODE_KEY_LENGTH = 43\n)\n```\n\n```go\nconst (\n\t//VERSION is SDK version\n\tVERSION = \"0.2\"\n)\n```\n\n## Functions\n\n```go\nfunc PKCS7Padding(ciphertext []byte, blockSize int) []byte\n```\n\n```go\nfunc PKCS7UnPadding(plantText []byte) []byte\n```\n\n```go\nfunc Sign(ticket string, nonceStr string, timeStamp string, url string) string\n```\nSign is 签名\n\n## Types\n\n```go\ntype AccessTokenResponse struct {\n\tOAPIResponse\n\tAccessToken string `json:\"access_token\"`\n\tExpires     int    `json:\"expires_in\"`\n\tCreated     int64\n}\n```\nAccessTokenResponse is\n\n```go\nfunc (e *AccessTokenResponse) CreatedAt() int64\n```\nCreatedAt is when the access token is generated\n\n```go\nfunc (e *AccessTokenResponse) ExpiresIn() int\n```\nExpiresIn is how soon the access token is expired\n\n```go\ntype Attendance struct {\n\tGmtModifed      int64   `json:\"gmtModified\"`    //: 1492594486000,\n\tIsLegal         string  `json:\"isLegal\"`        //: \"N\",\n\tBaseCheckTime   int64   `json:\"baseCheckTime\"`  //: 1492568460000,\n\tID              int64   `json:\"id\"`             //: 933202551,\n\tUserAddress     string  `json:\"userAddress\"`    //: \"北京市朝阳区崔各庄镇阿里中心.望京A座阿里巴巴绿地中心\",\n\tUID             string  `json:\"userId\"`         //: \"manager7078\",\n\tCheckType       string  `json:\"checkType\"`      //: \"OnDuty\",\n\tTimeResult      string  `json:\"timeResult\"`     //: \"Normal\",\n\tDeviceID        string  `json:\"deviceId\"`       // :\"cb7ace07d52fe9be14f4d8bec5e1ba79\"\n\tCorpID          string  `json:\"corpId\"`         //: \"ding7536bfee6fb1fa5a35c2f4657eb6378f\",\n\tSourceType      string  `json:\"sourceType\"`     //: \"USER\",\n\tWorkDate        int64   `json:\"workDate\"`       //: 1492531200000,\n\tPlanCheckTime   int64   `json:\"planCheckTime\"`  //: 1492568497000,\n\tGmtCreate       int64   `json:\"gmtCreate\"`      //: 1492594486000,\n\tLocaltionMethod string  `json:\"locationMethod\"` //: \"MAP\",\n\tLocationResult  string  `json:\"locationResult\"` //: \"Outside\",\n\tUserLongitude   float64 `json:\"userLongitude\"`  //: 116.486888,\n\tPlanID          int     `json:\"planId\"`         //: 4550269081,\n\tGroupID         int     `json:\"groupId\"`        //: 121325603,\n\tUserAccuracy    int     `json:\"userAccuracy\"`   //: 65,\n\tUserCheckTime   int64   `json:\"userCheckTime\"`  //: 1492568497000,\n\tUserLatitude    float64 `json:\"userLatitude\"`   //: 39.999946,\n\tProcInstID      string  `json:\"procInstId\"`     //: \"cb992267-9b70\"\n\tApproveID       int     `json:\"approveId\"`      //         string, `json:\"\"`//关联的审批id\n\tClassId         int     `json:\"classId\"`        //考勤班次id，没有的话表示该次打卡不在排班内\n\tUserSsid        string  `json:\"userSsid\"`       //用户打卡wifi SSID\n\tUserMacAddr     string  `json:\"userMacAddr\"`    //用户打卡wifi Mac地址\n\tBaseAddress     string  `json:\"baseAddress\"`    //基准地址\n\tBaseLongitude   float32 `json:\"baseLongitude\"`  //    基准经度\n\tBaseLatitude    float32 `json:\"baseLatitude\"`   //   基准纬度\n\tBaseAccuracy    int     `json:\"baseAccuracy\"`   //  基准定位精度\n\tBaseSsid        string  `json:\"baseSsid\"`       //基准wifi ssid\n\tBaseMacAddr     string  `json:\"baseMacAddr\"`    //基准 Mac 地址\n\tOutsideRemark   string  `json:\"outsideRemark\"`  //打卡备注\n}\n```\n\n```go\ntype Cache interface {\n\tSet(data Expirable) error\n\tGet(data Expirable) error\n}\n```\n\n```go\ntype CalendarRequest struct {\n\tTimeMax CalendarTime `json:\"time_max\"`\n\tTimeMin CalendarTime `json:\"time_min\"`\n\tStaffId string       `json:\"user_id\"`\n}\n```\n\n```go\ntype CalendarTime struct {\n\tTimeZone string `json:\"time_zone\"`\n\tDate     string `json:\"date_time\"`\n}\n```\n\n```go\ntype Callback struct {\n\tOAPIResponse\n\tToken     string\n\tAES_KEY   string `json:\"aes_key\"`\n\tURL       string\n\tCallbacks []string `json:\"call_back_tag\"`\n}\n```\n\n```go\ntype Crypto struct {\n\tToken    string\n\tAesKey   string\n\tSuiteKey string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nvar DefaultDingtalkCrypto *Crypto\n```\n\n```go\nfunc NewCrypto(token, aesKey, suiteKey string) (c *Crypto)\n```\ntoken\t\t数据签名需要用到的token，ISV(服务提供商)推荐使用注册套件时填写的token，普通企业可以随机填写 aesKey  \t数据加密密钥。用于回调数据的加密，长度固定为43个字符，从a-z, A-Z, 0-9共62个字符中选取,您可以随机生成，ISV(服务提供商)推荐使用注册套件时填写的EncodingAESKey suiteKey\t一般使用corpID\n\n```go\nfunc (c *Crypto) DecryptMsg(signature, timeStamp, nonce, secretStr string) (string, error)\n```\nsignature: 签名字符串 timeStamp: 时间戳 nonce: 随机字符串 secretStr: 密文 返回: 解密后的明文\n\n```go\nfunc (c *Crypto) EncryptMsg(replyMsg, timeStamp, nonce string) (string, string, error)\n```\nreplyMsg: 明文字符串 timeStamp: 时间戳 nonce: 随机字符串 返回: 密文,签名字符串\n\n```go\nfunc (c *Crypto) GenerateSignature(token, timeStamp, nonce, secretStr string) string\n```\n数据签名\n\n```go\nfunc (c *Crypto) RandomString(n int, alphabets ...byte) string\n```\n\n```go\nfunc (c *Crypto) VerifySignature(token, timeStamp, nonce, secretStr, sigture string) bool\n```\n校验数据签名\n\n```go\ntype DataMessage struct {\n\tOAPIResponse\n\tData string\n}\n```\nDataMessage 服务端加密、解密消息\n\n```go\ntype Department struct {\n\tOAPIResponse\n\tId                    int\n\tName                  string\n\tParentId              int\n\tOrder                 int\n\tDeptPerimits          string\n\tUserPerimits          string\n\tOuterDept             bool\n\tOuterPermitDepts      string\n\tOuterPermitUsers      string\n\tOrgDeptOwner          string\n\tDeptManagerUseridList string\n}\n```\n\n```go\ntype DepartmentList struct {\n\tOAPIResponse\n\tDepartments []Department `json:\"department\"`\n}\n```\n\n```go\ntype DingTalkClient struct {\n\tCorpID      string\n\tCorpSecret  string\n\tAgentID     string\n\tPartnerID   string\n\tAccessToken string\n\tHTTPClient  *http.Client\n\tCache       Cache\n\n\t//社交相关的属性\n\tSnsAppID       string\n\tSnsAppSecret   string\n\tSnsAccessToken string\n}\n```\nDingTalkClient is the Client to access DingTalk Open API\n\n```go\nfunc NewDingTalkClient(corpID string, corpSecret string) *DingTalkClient\n```\nNewDingTalkClient creates a DingTalkClient instance\n\n```go\nfunc (c *DingTalkClient) CreateChat(name string, owner string, useridlist []string) (string, error)\n```\nCreateChat is\n\n```go\nfunc (c *DingTalkClient) CreateFile(size int64) (file FileResponse, err error)\n```\nCreateFile is to create a new file in Ding Space\n\n```go\nfunc (c *DingTalkClient) Decrypt(str string) (string, error)\n```\nDecrypt is 服务端解密\n\n```go\nfunc (c *DingTalkClient) DeleteCallback() error\n```\nDeleteCallback is 删除事件回调接口\n\n```go\nfunc (c *DingTalkClient) DepartmentDetail(id int) (Department, error)\n```\nDepartmentDetail is 获取部门详情\n\n```go\nfunc (c *DingTalkClient) DepartmentList() (DepartmentList, error)\n```\nDepartmentList is 获取部门列表\n\n```go\nfunc (c *DingTalkClient) DownloadMedia(mediaID string, write io.Writer) error\n```\nDownloadMedia is to download a media file from DingTalk\n\n```go\nfunc (c *DingTalkClient) Encrypt(str string) (string, error)\n```\nEncrypt is 服务端加密\n\n```go\nfunc (c *DingTalkClient) GetConfig(nonceStr string, timestamp string, url string) string\n```\nGetConfig is to return config in json\n\n```go\nfunc (c *DingTalkClient) GetJsAPITicket() (ticket string, err error)\n```\nGetJsAPITicket is to get a valid ticket for JS API\n\n```go\nfunc (c *DingTalkClient) GetMessageReadList(messageID string, cursor int, size int) (data MessageReadListResponse, err error)\n```\nGetMessageReadList is 获取已读列表\n\n```go\nfunc (c *DingTalkClient) GetSnsPersistentCode(tmpAuthCode string) (string, string, string, error)\n```\n获取用户授权的持久授权码\n\n```go\nfunc (c *DingTalkClient) GetSnsToken(openid, persistentCode string) (string, error)\n```\n获取用户授权的SNS\\_TOKEN\n\n```go\nfunc (c *DingTalkClient) GetSnsUserInfo(snsToken string) (SnsUserInfoResponse, error)\n```\n获取用户授权的个人信息\n\n```go\nfunc (c *DingTalkClient) ListAttendanceRecord(ulist []string, dateFrom time.Time, dateTo time.Time) ([]Attendance, error)\n```\n获取所有的打卡记录，该员工当天如果打卡10条，那么10条都将返回\n\n```go\nfunc (c *DingTalkClient) ListAttendanceResult(ulist []string, dateFrom, dateTo time.Time, offset, lmt int64) (listAttendanceResultResp, error)\n```\n即使员工在这期间打了多次，该接口也只会返回两条记录，包括上午的打卡结果和下午的打卡结果 用户如果为空则获取所有用户\n\n```go\nfunc (c *DingTalkClient) ListCallback() (Callback, error)\n```\nListCallback is 查询事件回调接口\n\n```go\nfunc (c *DingTalkClient) ListEvents(staffid string, from time.Time, to time.Time) (events []Event, err error)\n```\n\n```go\nfunc (c *DingTalkClient) RefreshAccessToken() error\n```\nRefreshAccessToken is to get a valid access token\n\n```go\nfunc (c *DingTalkClient) RefreshSnsAccessToken() error\n```\n获取钉钉开放应用ACCESS\\_TOKEN TODO:\n\n\t根据和赤司(钉钉开发者)的沟通，ACCESS_TOKEN只有两个小时的有效期\n\t但是目前接口貌似没有返回过期时间相关的信息，因此所有相关的调用都需要强制刷新\n\n```go\nfunc (c *DingTalkClient) RegisterCallback(callbacks []string, token string, aes_key string, callbackURL string) error\n```\nRegisterCallback is 注册事件回调接口\n\n```go\nfunc (c *DingTalkClient) SendAppLinkMessage(agentID, touser string, title, text string, picUrl, url string) error\n```\nSendAppLinkMessage is 发送企业会话链接消息\n\n```go\nfunc (c *DingTalkClient) SendAppMessage(agentID string, touser string, msg string) error\n```\nSendAppMessage is 发送企业会话消息\n\n```go\nfunc (c *DingTalkClient) SendAppOAMessage(agentID string, touser string, msg OAMessage) error\n```\nSendAppOAMessage is 发送OA消息\n\n```go\nfunc (c *DingTalkClient) SendFileMessage(sender string, cid string, mediaID string) (data MessageResponse, err error)\n```\nSendFileMessage is 发送文件消息\n\n```go\nfunc (c *DingTalkClient) SendImageMessage(sender string, cid string, mediaID string) (data MessageResponse, err error)\n```\nSendImageMessage is 发送图片消息\n\n```go\nfunc (c *DingTalkClient) SendLinkMessage(sender string, cid string, mediaID string, url string, title string, text string) (data MessageResponse, err error)\n```\nSendLinkMessage is 发送链接消息\n\n```go\nfunc (c *DingTalkClient) SendOAMessage(sender string, cid string, msg OAMessage) (data MessageResponse, err error)\n```\nSendOAMessage is 发送OA消息\n\n```go\nfunc (c *DingTalkClient) SendRobotTextAtMessage(accessToken string, msg string, at *RobotAtList) error\n```\nSendRobotTextAtMessage can send a text message and at user to a group chat\n\n```go\nfunc (c *DingTalkClient) SendRobotTextMessage(accessToken string, msg string) (data MessageResponse, err error)\n```\nSendRobotTextMessage can send a text message to a group chat\n\n```go\nfunc (c *DingTalkClient) SendTextMessage(sender string, cid string, msg string) (data MessageResponse, err error)\n```\nSendTextMessage is 发送普通文本消息\n\n```go\nfunc (c *DingTalkClient) SendVoiceMessage(sender string, cid string, mediaID string, duration string) (data MessageResponse, err error)\n```\nSendVoiceMessage is 发送语音消息\n\n```go\nfunc (c *DingTalkClient) TopAPICreateProcInst(data TopAPICreateProcInst) (string, error)\n```\n发起审批\n\n```go\nfunc (c *DingTalkClient) TopAPIGetProcInst(pid string) (ProcInst, error)\n```\n根据审批实例id获取单条审批实例详情\n\n```go\nfunc (c *DingTalkClient) TopAPIListProcInst(processCode string, startTime, endTime time.Time, size, cursor int, useridList []string) (TopAPIListProcInstResp, error)\n```\n获取审批实例列表 Note: processCode 官方不会检查错误，请保证processCode正确\n\n```go\nfunc (c *DingTalkClient) TopAPIMsgGetSendProgress(taskID int) (TopAPIMsgGetSendProgress, error)\n```\n\n```go\nfunc (c *DingTalkClient) TopAPIMsgGetSendResult(taskID int) (TopAPIMsgGetSendResult, error)\n```\n\n```go\nfunc (c *DingTalkClient) TopAPIMsgSend(msgType string, userList []string, deptList []int, toAll bool, msgContent interface{}) (int, error)\n```\nmgType     消息类型：text;iamge;voice;file;link;oa;markdown;action\\_card userList   接收推送的UID 列表 deptList   接收推送的部门ID列表 toAll      是否发送给所有用户 msgContent 消息内容 If success return task\\_id, or is error is not nil when errored\n\n```go\nfunc (c *DingTalkClient) UpdateCallback(callbacks []string, token string, aes_key string, callbackURL string) error\n```\nUpdateCallback is 更新事件回调接口\n\n```go\nfunc (c *DingTalkClient) UploadMedia(mediaType string, filename string, reader io.Reader) (media MediaResponse, err error)\n```\nUploadMedia is to upload media file to DingTalk\n\n```go\nfunc (c *DingTalkClient) UserInfoByCode(code string) (User, error)\n```\nUserInfoByCode 校验免登录码并换取用户身份\n\n```go\nfunc (c *DingTalkClient) UserList(departmentID, offset, size int) (UserList, error)\n```\nUserList is 获取部门成员\n\n```go\nfunc (c *DingTalkClient) UseridByUnionId(unionid string) (string, error)\n```\nUseridByUnionId 通过UnionId获取玩家Userid\n\n```go\ntype DownloadFile struct {\n\tMediaID  string\n\tFileName string\n\tReader   io.Reader\n}\n```\nDownloadFile is for downloading a single file from DingTalk\n\n```go\ntype Event struct {\n\tOAPIResponse\n\tId          string\n\tLocation    string\n\tSummary     string\n\tDescription string\n\tStart       struct {\n\t\tDateTime string `json:\"date_time\"`\n\t}\n\tEnd struct {\n\t\tDateTime string `json:\"date_time\"`\n\t}\n}\n```\n\n```go\ntype Expirable interface {\n\tCreatedAt() int64\n\tExpiresIn() int\n}\n```\n\n```go\ntype FileCache struct {\n\tPath string\n}\n```\n\n```go\nfunc NewFileCache(path string) *FileCache\n```\n\n```go\nfunc (c *FileCache) Get(data Expirable) error\n```\n\n```go\nfunc (c *FileCache) Set(data Expirable) error\n```\n\n```go\ntype FileResponse struct {\n\tOAPIResponse\n\tCode     int\n\tMsg      string\n\tUploadID string `json:\"uploadid\"`\n\tWriter   io.Writer\n}\n```\nFileResponse is\n\n```go\ntype InMemoryCache struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewInMemoryCache() *InMemoryCache\n```\n\n```go\nfunc (c *InMemoryCache) Get(data Expirable) error\n```\n\n```go\nfunc (c *InMemoryCache) Set(data Expirable) error\n```\n\n```go\ntype JsAPITicketResponse struct {\n\tOAPIResponse\n\tTicket  string\n\tExpires int `json:\"expires_in\"`\n\tCreated int64\n}\n```\nJsAPITicketResponse is\n\n```go\nfunc (e *JsAPITicketResponse) CreatedAt() int64\n```\nCreatedAt is when the ticket is generated\n\n```go\nfunc (e *JsAPITicketResponse) ExpiresIn() int\n```\nExpiresIn is how soon the ticket is expired\n\n```go\ntype ListEventsResponse struct {\n\tOAPIResponse\n\tSuccess bool `json:\"success\"`\n\tResult  struct {\n\t\tEvents        []Event `json:\"items\"`\n\t\tSummary       string  `json:\"summary\"`\n\t\tNextPageToken string  `json:\"next_page_token\"`\n\t} `json:\"result\"`\n}\n```\n\n```go\ntype ListProcInst struct {\n\tApproverUIDS     []string               `json:\"approver_userid_list\"`\n\tCCUIDS           []string               `json:\"cc_userid_list\"`\n\tFormCompntValues []ProcInstCompntValues `json:\"form_component_values\"`\n\tProcInstID       string                 `json:\"process_instance_id\"`\n\tTitle            string                 `json:\"title\"`\n\tCreateTime       string                 `json:\"create_time\"`\n\tFinishTime       string                 `json:\"finish_time\"`\n\tOriginatorUID    string                 `json:\"originator_userid\"`\n\tStatus           string                 `json:\"status\"`\n\tBusinessID       string                 `json:\"business_id\"`\n\tOriginatorDeptID string                 `json:\"originator_dept_id\"`\n\tProcInstResult   string                 `json:\"process_instance_result\"` // \"agree\",\n}\n```\n\n```go\ntype MediaResponse struct {\n\tOAPIResponse\n\tType    string\n\tMediaID string `json:\"media_id\"`\n\tWriter  io.Writer\n}\n```\nMediaResponse is\n\n```go\ntype MessageReadListResponse struct {\n\tOAPIResponse\n\tNextCursor     int64    `json:\"next_cursor\"`\n\tReadUserIdList []string `json:\"readUserIdList\"`\n}\n```\nMessageResponse is\n\n```go\ntype MessageResponse struct {\n\tOAPIResponse\n\tMessageID string `json:\"messageId\"`\n}\n```\nMessageResponse is\n\n```go\ntype OAMessage struct {\n\tURL   string `json:\"message_url\"`\n\tPcURL string `json:\"pc_message_url\"`\n\tHead  struct {\n\t\tBgColor string `json:\"bgcolor,omitempty\"`\n\t\tText    string `json:\"text,omitempty\"`\n\t} `json:\"head,omitempty\"`\n\tBody struct {\n\t\tTitle     string          `json:\"title,omitempty\"`\n\t\tForm      []OAMessageForm `json:\"form,omitempty\"`\n\t\tRich      OAMessageRich   `json:\"rich,omitempty\"`\n\t\tContent   string          `json:\"content,omitempty\"`\n\t\tImage     string          `json:\"image,omitempty\"`\n\t\tFileCount int             `json:\"file_count,omitempty\"`\n\t\tAuthor    string          `json:\"author,omitempty\"`\n\t} `json:\"body,omitempty\"`\n}\n```\nOAMessage is the Message for OA\n\n```go\nfunc (m *OAMessage) AppendFormItem(key string, value string)\n```\n\n```go\ntype OAMessageForm struct {\n\tKey   string `json:\"key,omitempty\"`\n\tValue string `json:\"value,omitempty\"`\n}\n```\n\n```go\ntype OAMessageRich struct {\n\tNum  string `json:\"num,omitempty\"`\n\tUnit string `json:\"body,omitempty\"`\n}\n```\n\n```go\ntype OAPIResponse struct {\n\tErrCode int    `json:\"errcode\"`\n\tErrMsg  string `json:\"errmsg\"`\n}\n```\nOAPIResponse is\n\n```go\ntype ProcInst struct {\n\tProcInstID         string                      `json:\"process_instance_id\"`\n\tTitle              string                      `json:\"title\"`\n\tCreateTime         string                      `json:\"create_time\"`\n\tFinishTime         string                      `json:\"finish_time\"`\n\tOriginatorUID      string                      `json:\"originator_userid\"`\n\tStatus             string                      `json:\"status\"`\n\tApproverUIDS       []string                    `json:\"approver_userids\"`\n\tCCUIDS             []string                    `json:\"cc_userids\"`\n\tResult             string                      `json:\"result\"`\n\tBusinessID         string                      `json:\"business_id\"`\n\tFormCompntValues   []ProcInstCompntValues      `json:\"form_component_values\"` // 表单详情列表\n\tTasks              []_ProcInstTasks            `json:\"tasks\"`                 // 任务列表\n\tOperationRecords   []_ProcInstOperationRecords `json:\"operation_records\"`     // 操作记录列表\n\tOriginatorDeptID   string                      `json:\"originator_dept_id\"`\n\tOriginatorDeptName string                      `json:\"originator_dept_name\"`\n}\n```\n\n```go\ntype ProcInstCompntValues struct {\n\tName     string `json:\"name\"`\n\tValue    string `json:\"value\"`\n\tExtValue string `json:\"ext_value\"`\n}\n```\n\n```go\ntype RobotAtList struct {\n\tAtMobiles []string `json:\"atMobiles\"`\n\tIsAtAll   bool     `json:\"isAtAll\"`\n}\n```\n\n```go\ntype SnsPersistentCodeResponse struct {\n\tOAPIResponse\n\tUnionID        string `json:\"unionid\"`\n\tOpenID         string `json:\"openid\"`\n\tPersistentCode string `json:\"persistent_code\"`\n}\n```\n获取用户授权的持久授权码返回信息\n\n```go\ntype SnsTokenResponse struct {\n\tOAPIResponse\n\tExpires  int    `json:\"expires_in\"`\n\tSnsToken string `json:\"sns_token\"`\n}\n```\n\n```go\ntype SnsUserInfoResponse struct {\n\tOAPIResponse\n\n\tCorpInfo []struct {\n\t\tCorpName    string `json:\"corp_name\"`\n\t\tIsAuth      bool   `json:\"is_auth\"`\n\t\tIsManager   bool   `json:\"is_manager\"`\n\t\tRightsLevel int    `json:\"rights_level\"`\n\t} `json:\"corp_info\"`\n\n\tUserInfo struct {\n\t\tMaskedMobile string `json:\"marskedMobile\"`\n\t\tNick         string `json:\"nick\"`\n\t\tOpenID       string `json:\"openid\"`\n\t\tUnionID      string `json:\"unionid\"`\n\t\tDingID       string `json:\"dingId\"`\n\t} `json:\"user_info\"`\n}\n```\n\n```go\ntype TopAPICreateProcInst struct {\n\t// 审批模板code\n\tProcessCode string `json:\"process_code\"`\n\t// 发起人UID\n\tOriginatorUID string `json:\"originator_user_id\"`\n\t// 发起人所在部门\n\tDeptID int `json:\"dept_id\"`\n\t// 审批人列表\n\tApprovers []string `json:\"approvers\"`\n\t// 抄送人列表\n\tCCList []string `json:\"cc_list\"`\n\t//抄送时间,分为（START,FINISH,START_FINISH\n\tCCPosition string `json:\"cc_position\"`\n\t// 审批单内容， Name为审批模板中的列名， value 为该列的值\n\tFormCompntValues []ProcInstCompntValues `json:\"form_component_values\"`\n}\n```\n\n```go\ntype TopAPIListProcInstResp struct {\n\tOK struct {\n\t\tErrCode int    `json:\"ding_open_errcode\"`\n\t\tErrMsg  string `json:\"error_msg\"`\n\t\tSuccess bool   `json:\"success\"`\n\t\tResult  struct {\n\t\t\tList       []ListProcInst `json:\"list\"`\n\t\t\tNextCursor int            `json:\"next_cursor\"`\n\t\t} `json:\"result\"`\n\t} `json:\"result\"`\n\tRequestID string `json:\"request_id\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype TopAPIMsgGetSendProgress struct {\n\tOK struct {\n\t\tErrCode  int    `json:\"ding_open_errcode\"`\n\t\tErrMsg   string `json:\"error_msg\"`\n\t\tSuccess  bool   `json:\"success\"`\n\t\tProgress struct {\n\t\t\tPercent int `json:\"progress_in_percent\"`\n\t\t\tStatus  int `json:\"status\"`\n\t\t} `json:\"progress\"`\n\t} `json:\"result\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype TopAPIMsgGetSendResult struct {\n\tOK struct {\n\t\tErrCode    int    `json:\"ding_open_errcode\"`\n\t\tErrMsg     string `json:\"error_msg\"`\n\t\tSuccess    bool   `json:\"success\"`\n\t\tSendResult struct {\n\t\t\tInvalidUserIDList   []string `json:\"invalid_user_id_list\"`\n\t\t\tForbiddenUserIDList []string `json:\"forbidden_user_id_list\"`\n\t\t\tFaildedUserIDList   []string `json:\"failed_user_id_list\"`\n\t\t\tReadUserIDLIst      []string `json:\"read_user_id_list\"`\n\t\t\tUnreadUserIDList    []string `json:\"unread_user_id_list\"`\n\t\t\tInvalidDeptIDList   []int    `json:\"invalid_dept_id_list\"`\n\t\t} `json:\"send_result\"`\n\t} `json:\"result\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype TopAPIResponse interface {\n\t// contains filtered or unexported methods\n}\n```\n\n```go\ntype Unmarshallable interface {\n\t// contains filtered or unexported methods\n}\n```\nUnmarshallable is\n\n```go\ntype UploadFile struct {\n\tFieldName string\n\tFileName  string\n\tReader    io.Reader\n}\n```\nUploadFile is for uploading a single file to DingTalk\n\n```go\ntype User struct {\n\tOAPIResponse\n\tUserid     string\n\tName       string\n\tMobile     string\n\tTel        string\n\tRemark     string\n\tOrder      int\n\tIsAdmin    bool\n\tIsBoss     bool\n\tIsLeader   bool\n\tIsSys      bool `json:\"is_sys\"`\n\tSysLevel   int  `json:\"sys_level\"`\n\tActive     bool\n\tDepartment []int\n\tPosition   string\n\tEmail      string\n\tAvatar     string\n\tExtattr    interface{}\n}\n```\n\n```go\ntype UserList struct {\n\tOAPIResponse\n\tHasMore  bool\n\tUserlist []User\n}\n```\n\n","path":"github.com/stepdc/godingtalk","name":"godingtalk","synopsis":"普通钉钉用户账号开放相关接口","isRedistributable":true}
