response

package
v0.0.0-...-7cf99fd Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginResponse

type LoginResponse struct {
	UserInfo *UserInfo `json:"user"`
	Token    string    `json:"token"`
	Expire   int       `json:"expire"`
}

type UserInfo

type UserInfo struct {
	ID           string `json:"id"`
	Mobile       string `json:"mobile"`
	Email        string `json:"email"`
	Username     string `json:"username"`
	RealName     string `json:"real_name"`
	Avatar       string `json:"avatar"`
	Gender       int8   `json:"gender"`
	Birthday     string `json:"birthday"`
	IsBindMobile bool   `json:"is_bind_mobile"`
	IsBindEmail  bool   `json:"is_bind_email"`
	IsBindWechat bool   `json:"is_bind_wechat"`
	TenantID     string `json:"tenant_id"`
	Signature    string `db:"signature"`
}

func NewUserInfo

func NewUserInfo(user *model.User) *UserInfo

Jump to

Keyboard shortcuts

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