30 lines
813 B
Go
30 lines
813 B
Go
package core
|
||
|
||
type WxCommonResponse struct {
|
||
Data WxCommonData `json:"data"`
|
||
Type int `json:"type"`
|
||
}
|
||
|
||
// WxCommonData 微信通用返回的结构体
|
||
type WxCommonData struct {
|
||
Errcode int `json:"errcode"` // 0代表成功,其他代表失败
|
||
Errmsg string `json:"errmsg"`
|
||
Status int `json:"status"`
|
||
Wxid string `json:"wxid"`
|
||
}
|
||
|
||
type WxLoginInfoResp struct {
|
||
Data UserClientInfo `json:"data"`
|
||
Type int `json:"type"`
|
||
}
|
||
type UserClientInfo struct {
|
||
Account string `json:"account"`
|
||
Avatar string `json:"avatar"`
|
||
Nickname string `json:"nickname"`
|
||
Phone string `json:"phone"`
|
||
Pid int `json:"pid"`
|
||
UnreadMsgCount int `json:"unread_msg_count"`
|
||
WxUserDir string `json:"wx_user_dir"`
|
||
Wxid string `json:"wxid"`
|
||
}
|