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) Validate ¶
func (user *User) Validate() *rest_errors.RestErr
Click to show internal directories.
Click to hide internal directories.