user

package
v0.0.0-...-7208f07 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 3 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 form profile entity

Types

type Profile

type Profile struct {
	ID           uint64            `json:"id"`
	OpenIds      map[string]string `json:"open_ids"`
	Name         string            `json:"name"`
	Nickname     string            `json:"nickname"`
	Email        string            `json:"email"`
	Token        string            `json:"token"`
	AccessToken  string            `json:"access_token"`
	RefreshToken string            `json:"refresh_token"`
	PictureURL   string            `json:"picture_url"`
	CreatedAt    time.Time         `json:"created_at"`
	UpdatedAt    time.Time         `json:"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