request

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePersonRequest

type CreatePersonRequest struct {
	FullName string `json:"full_name"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Age      int32  `json:"age"`
	Address  string `json:"address"`
	City     string `json:"city"`
	Phone    string `json:"phone_number"`
	Role     string `json:"role"`
}

func (*CreatePersonRequest) ToSpec

func (req *CreatePersonRequest) ToSpec() *spec.UpsertPersonSpec

type UpdatePersonRequest

type UpdatePersonRequest struct {
	ID       int
	FullName string `json:"full_name"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Age      int32  `json:"age"`
	Address  string `json:"address"`
	City     string `json:"city"`
	Phone    string `json:"phone"`
	Role     string `json:"role"`
}

func (*UpdatePersonRequest) ToSpec

Jump to

Keyboard shortcuts

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