request

package
v0.0.0-...-8e06e88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code2Session

type Code2Session struct {
	Errcode int32  `json:"errcode"` // 错误码
	Errmsg  string `json:"errmsg"`  // 错误信息
	Openid  string `json:"openid"`  // 用户唯一标识
	// Unionid    string `json:"unionid"` 	// 用户在开放平台的唯一标识符,在满足 UnionID 下发条件的情况下会返回,详见微信 UnionID
	SessionKey string `json:"session_key"` // 会话密钥
}

type WebLoginData

type WebLoginData struct {
	Email    string `json:"email" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type WebLoginResponseData

type WebLoginResponseData struct {
	ID    interface{} `bson:"_id"`
	Email string      `bson:"email"`
}

type WebRegisterData

type WebRegisterData struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email"`
}

type WebTestData

type WebTestData struct {
	Email    string `json:"email" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type WebUser

type WebUser struct {
	ID       interface{} `bson:"_id,omitempty"` // mongodb创建时自动生成的ID
	Username string      `bson:"username" binding:"required"`
	Password string      `bson:"password" binding:"required"`
	Email    string      `bson:"email" binding:"required"`
}

type WxRequestData

type WxRequestData struct {
	Code      string `json:"code"`
	NickName  string `json:"nickName"`
	Gender    int    `json:"gender"`
	City      string `json:"city"`
	Province  string `json:"province"`
	Country   string `json:"country"`
	AvatarUrl string `json:"avatarUrl"`
}

type WxUser

type WxUser struct {
	ID     interface{} `bson:"_id,omitempty"` // mongodb创建时自动生成的ID
	OpenID string      `bson:"wxOpenId" binding:"required"`
	// UnionID 	string				`bson:"wxUnionId"` 如果程序使用unionid 登录
	Nickname   string    `bson:"wxNickname"`
	AvatarUrl  string    `bson:"wxAvatarUrl"`
	Gender     int       `bson:"gender"`
	City       string    `bson:"city"`
	Province   string    `bson:"province"`
	Country    string    `bson:"country"`
	CreateDate time.Time `bson:"createDate"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL