user

package
v0.0.0-...-ee0c78d Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewUser

func CreateNewUser(ir InputRequest) (model.UserResponse, string)

func GetById

func GetById(id int) (model.UserResponse, string)

func RemoveById

func RemoveById(id int) (string, string)

Types

type InputRequest

type InputRequest struct {
	FullName *string `json:"full_name,omitempty"`
	Name     *string `json:"name,omitempty"`
	LastName *string `json:"last_name,omitempty"`
	Email    *string `json:"email,omitempty"`
	Password *string `json:"password,omitempty"`
	IDCard   *string `json:"id_card,omitempty"`
	Nickname *string `json:"nickname,omitempty"`
}

func UnmarshalInputRequest

func UnmarshalInputRequest(data []byte) (InputRequest, error)

func (*InputRequest) Marshal

func (r *InputRequest) Marshal() ([]byte, error)

Jump to

Keyboard shortcuts

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