users

package
v0.0.0-...-19edcaa Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusActive = "active"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateUser

type PrivateUser struct {
	Id          int64  `json:"id"`
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name"`
	Email       string `json:"email"`
	DateCreated string `json:"date_created"`
	Status      string `json:"status"`
}

type PublicUser

type PublicUser struct {
	Id          int64  `json:"id"`
	DateCreated string `json:"date_created"`
	Status      string `json:"status"`
}

type User

type User struct {
	Id          int64  `json:"id"`
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name"`
	Email       string `json:"email"`
	DateCreated string `json:"date_created"`
	Status      string `json:"status"`
	Password    string `json:"password"`
}

func (*User) Delete

func (user *User) Delete() *errors_utils.RestError

func (*User) FindByStatus

func (user *User) FindByStatus(status string) ([]User, *errors_utils.RestError)

func (*User) Get

func (user *User) Get() *errors_utils.RestError

func (*User) GetAll

func (user *User) GetAll() ([]User, *errors_utils.RestError)

func (*User) Marshall

func (user *User) Marshall(isPublic bool) interface{}

func (*User) Save

func (user *User) Save() *errors_utils.RestError

func (*User) Update

func (user *User) Update() *errors_utils.RestError

func (*User) Validate

func (user *User) Validate() *errors_utils.RestError

type Users

type Users []User

func (Users) Marshall

func (users Users) Marshall(isPublic bool) []interface{}

Jump to

Keyboard shortcuts

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