Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct { ErrCode int `json:"errcode"` ErrMsg string `json:"errmsg"` AccessToken string `json:"access_token"` }
func GetAccessToken ¶
func GetAccessToken(corpId string, corpSecret string) (AccessToken, error)
获取 access_token
type CodeUserInfo ¶
type CodeUserInfo struct { ErrCode int `json:"errcode"` ErrMsg string `json:"errmsg"` Userid string `json:"userid"` DeviceId string `json:"deviceId"` IsSys bool `json:"is_sys"` SysLevel int `json:"sys_level"` }
func GetBaseByCode ¶
func GetBaseByCode(access_token string, code string) (CodeUserInfo, error)
通过CODE换取用户身份
type DingOpenResult ¶
type ErrCodeMsg ¶
type JsApiToken ¶
type UserInfo ¶
type UserInfo struct { ErrCode int `json:"errcode"` ErrMsg string `json:"errmsg"` Userid string `json:"userid"` Name string `json:"name"` Tel string `json:"tel"` WorkPlace string `json:"workPlace"` Remark string `json:"remark"` Mobile string `json:"mobile"` Email string `json:"email"` Active bool `json:"active"` IsAdmin bool `json:"isAdmin"` IsBoss bool `json:"isBoss"` DingId string `json:"dingId"` Unionid string `json:"unionid"` Position string `json:"position"` Avatar string `json:"avatar"` Jobnumber string `json:"jobnumber"` }
Click to show internal directories.
Click to hide internal directories.