users

package
v0.0.0-...-f942f50 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.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 LoginRequest

type LoginRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

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() *rest_errors.RestErr

func (*User) FindByEmailAndPassword

func (user *User) FindByEmailAndPassword() *rest_errors.RestErr

func (*User) FindByStatus

func (user *User) FindByStatus(status string) ([]User, *rest_errors.RestErr)

func (*User) Get

func (user *User) Get() *rest_errors.RestErr

func (*User) Marshall

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

func (*User) Save

func (user *User) Save() *rest_errors.RestErr

func (*User) Update

func (user *User) Update() *rest_errors.RestErr

func (*User) Validate

func (user *User) Validate() *rest_errors.RestErr

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