Back to godoc.org

Package user

v0.0.0-...-db7167e
Latest Go to latest

The latest major version is .

Published: Jan 13, 2020 | License: Apache-2.0 | Module: git.qianqiusoft.com/library/wechat

Index

type Info

type Info struct {
	util.CommonError

	Subscribe     int32    `json:"subscribe"`
	OpenID        string   `json:"openid"`
	Nickname      string   `json:"nickname"`
	Sex           int32    `json:"sex"`
	City          string   `json:"city"`
	Country       string   `json:"country"`
	Province      string   `json:"province"`
	Language      string   `json:"language"`
	Headimgurl    string   `json:"headimgurl"`
	SubscribeTime int32    `json:"subscribe_time"`
	UnionID       string   `json:"unionid"`
	Remark        string   `json:"remark"`
	GroupID       int32    `json:"groupid"`
	TagidList     []string `json:"tagid_list"`
}

Info 用户基本信息

type User

type User struct {
	*context.Context
}

User 用户管理

func NewUser

func NewUser(context *context.Context) *User

NewUser 实例化

func (*User) GetUserInfo

func (user *User) GetUserInfo(openID string) (userInfo *Info, err error)

GetUserInfo 获取用户基本信息

Package Files

  • user.go
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier