dto

package
v0.0.0-...-6eb8140 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangePasswordReq

type ChangePasswordReq struct {
	OldPassword        string `json:"old_password"`
	NewPassword        string `json:"new_password" validate:"required,min=8"`
	NewPasswordConfirm string `json:"new_password_confirm" validate:"required,min=8,eqfield=NewPassword"`
}

type UserChangeProfileReq

type UserChangeProfileReq struct {
	FirstName   string `form:"first_name" json:"first_name,omitempty"`
	LastName    string `form:"last_name" json:"last_name,omitempty"`
	Email       string `form:"email,omitempty" json:"email,omitempty" validate:"omitempty,email"`
	Gender      string `form:"gender" json:"gender,omitempty"`
	DateOfBirth string `form:"date_of_birth" json:"date_of_birth,omitempty"`
	Age         int    `form:"age" json:"age,omitempty"`
	Image       string `form:"image,omitempty"`
}

type UserRegistrationsResp

type UserRegistrationsResp struct {
	ID          string `json:"id"`
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name"`
	Email       string `json:"email"`
	PhoneNumber string `json:"phone_number"`
	Role        string `json:"role"`
	ImageUrl    string `json:"image_url"`
}

Jump to

Keyboard shortcuts

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