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 ¶
func (req *UpdatePersonRequest) ToSpec() *spec.UpsertPersonUpdateSpec
Click to show internal directories.
Click to hide internal directories.