user_dto

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	StatusActive = "active"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Id          primitive.ObjectID  `json:"id,omitempty" bson:"_id, omitempty"`
	Type        int64               `json:"type,omitempty"`
	Status      string              `json:"status,omitempty"`
	FirstName   string              `json:"first_name,omitempty"`
	LastName    string              `json:"last_name,omitempty"`
	Email       string              `json:"email,omitempty"`
	CountryCode string              `json:"country_code,omitempty"`
	Mobile      string              `json:"mobile,omitempty"`
	DateOfBirth string              `json:"date_of_birth,omitempty"`
	Address     address_dto.Address `json:"address,omitempty"`
	DateCreated string              `json:"date_created,omitempty"`
}

func (*User) Trim

func (user *User) Trim()

func (*User) Validate

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

type Users

type Users []User

Jump to

Keyboard shortcuts

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