dto

package
v0.0.0-...-77ca5db Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditDriverReq

type EditDriverReq struct {
	FirstName      string `json:"first_name" form:"first_name" validate:"required"`
	LastName       string `json:"last_name" form:"last_name" validate:"required"`
	DateOfBirth    string `json:"date_of_birth" form:"date_of_birth"`
	Age            int    `json:"age" form:"age"`
	Gender         string `json:"gender" form:"gender"`
	ProfilePicture string `json:"profile_picture" form:"profile_picture"`
}

type GetDriverDetailsRes

type GetDriverDetailsRes struct {
	ID                 string    `json:"id"`
	FirstName          string    `json:"first_name"`
	LastName           string    `json:"last_name"`
	Email              string    `json:"email"`
	DateOfBirth        time.Time `json:"date_of_birth"`
	RegistrationNumber string    `json:"registration_number"`
	Age                int       `json:"age"`
	Gender             string    `json:"gender"`
	ProfilePicture     string    `json:"profile_picture"`
}

type LocationReq

type LocationReq struct {
	DriverID string  `json:"driver-id"`
	RouteId  int     `json:"route_id"`
	Lat      float64 `json:"lat"`
	Lng      float64 `json:"lng"`
}

type SeatReq

type SeatReq struct {
	Seat int32 `json:"seat" validate:"required"`
}

type StatusReq

type StatusReq struct {
	Status string `json:"status" validate:"required"`
}

Jump to

Keyboard shortcuts

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