user

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

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

Go to latest
Published: Sep 11, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Handle user related information

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateUserAccount

func UpdateUserAccount(client *mongo.Client, b *bytes.Buffer) (string, error)

UpdateUserAccount add a user to the user table.

Types

type User

type User struct {
	ID       *primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	UID      string              `json:"uid"`
	Type     int16               `json:"type"`
	Email    string              `json:"email"`
	NickName string              `json:"nickname"`
}

func GetUserAccount

func GetUserAccount(client *mongo.Client, uid string) (User, error)

GetUserAccount get information about a user in the user.

Jump to

Keyboard shortcuts

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