users

package
v0.0.0-...-e212f3b Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

func Query(where interface{}, requestPage *api.RequestPage, columns *gset.Set) (*api.Page, error)

Query - queries matching users according to search condition and request page. Since we need to hide many fields inside the entities, we wrap this function to avoid sending sensitive information to the frontend size.

Types

type UserDto

type UserDto struct {
	ID       int64  `json:"id,omitempty"`
	SeasonID int64  `json:"season_id,omitempty"`
	Name     string `json:"name,omitempty"`
	Email    string `json:"email,omitempty"`
	Phone    string `json:"phone,omitempty"`
	Password string `json:"password,omitempty"`
	Rating   int    `json:"rating,omitempty"`
}

UserDto - the data transfer object for user entities.

func Of

func Of(entity *model.Entity, columns *gset.Set) UserDto

Of - creates a data transfer object according to the DB entity.

Jump to

Keyboard shortcuts

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