tt/core/WxStruct.go
2024-05-28 08:47:31 +08:00

30 lines
813 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"`
}