entity

package module
v0.0.0-...-ded953e Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUUID

func GenerateUUID() string

GenerateID generates a unique ID that can be used as an identifier for an entity.

Types

type Todo

type Todo struct {
	TodoId     int64  `db:"pk,todo_id"`
	AuthorId   int64  `db:"author_id"`
	PerfomerId int64  `db:"perfomer_id"`
	Name       string `db:"name"`
	Status     int    `db:"status"`
}

Todo represents an album record.

type User

type User struct {
	UserId   int64  `db:"user_id"`
	Name     string `db:"name"`
	Email    string `db:"email"`
	Passhash string `db:"passhash"`
	Role     int    `db:"role"`
}

User represents a user.

func (User) GetID

func (u User) GetID() int64

GetID returns the user ID.

func (User) GetName

func (u User) GetName() string

GetName returns the user name.

Jump to

Keyboard shortcuts

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