response

package
v0.0.0-...-afd247e Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserInfoResponse

type UserInfoResponse struct {
	Id                 primitive.ObjectID         `json:"id"`
	Phone              string                     `json:"phone"`
	Email              string                     `json:"email"`
	IsEmailVerified    bool                       `json:"isEmailVerified"`
	IsDriver           bool                       `json:"isDriver"`
	RoleIds            []int                      `json:"roleIds"`
	CreatedAt          time.Time                  `json:"createdAt"`
	Driver             *model.Driver              `json:"driver,omitempty"`
	TransportOperators []*model.TransportOperator `json:"transportOperators,omitempty"`
}

func (*UserInfoResponse) Format

func (r *UserInfoResponse) Format(user *model.User, driver *model.Driver, tos []*model.TransportOperator)

Jump to

Keyboard shortcuts

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