user

package
v0.0.0-...-724633c Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProfileResponse

func NewProfileResponse(info *Profile) *pb.Profile

NewProfileResponse new a pb profile from entity profile

Types

type Profile

type Profile struct {
	ID           primitive.ObjectID `json:"id" bson:"_id"`
	OpenID       string             `json:"open_id" bson:"open_id"`
	Name         string             `json:"name" bson:"name"`
	Email        string             `json:"email" bson:"email"`
	Token        string             `json:"token" bson:"token"`
	AccessToken  string             `json:"access_token" bson:"access_token"`
	RefreshToken string             `json:"refresh_token" bson:"refresh_token"`
	CreatedAt    primitive.DateTime `json:"created_at" bson:"created_at"`
	UpdatedAt    primitive.DateTime `json:"updated_at" bson:"updated_at"`
}

Profile declare a user information

Jump to

Keyboard shortcuts

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