userdto

package
v0.0.0-...-56c28a5 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 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 BasicRegisterRequest

type BasicRegisterRequest struct {
	FirstName string
	LastName  string
	Phone     string
	Password  string
}

type CompleteRegisterRequest

type CompleteRegisterRequest struct {
	UserID       uint
	Email        string
	NationalCode string
	ProfilePic   *multipart.FileHeader
	TemplateFile string
	EmailSubject string
}

type CredentialResponse

type CredentialResponse struct {
	ID         uint   `json:"id"`
	FirstName  string `json:"firstName"`
	LastName   string `json:"lastName"`
	Phone      string `json:"phone"`
	Email      string `json:"email"`
	NationalID string `json:"nationalID"`
	ProfilePic string `json:"profilePic"`
	Status     string `json:"status"`
}

type ForgotPasswordRequest

type ForgotPasswordRequest struct {
	Phone string
}

type GetPermissionRolesRequest

type GetPermissionRolesRequest struct {
	PermissionID uint
	Offset       int
	Limit        int
}

type GetUsersListRequest

type GetUsersListRequest struct {
	Statuses []uint
	Offset   int
	Limit    int
}

type LoginRequest

type LoginRequest struct {
	Phone    string
	Password string
}

type NewRoleRequest

type NewRoleRequest struct {
	Name          string
	PermissionIDs []uint
}

type OTPData

type OTPData struct {
	OTP      string `json:"otp"`
	Attempts int    `json:"attempts"`
}

type PermissionResponse

type PermissionResponse struct {
	ID          uint   `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Category    string `json:"category"`
}

type ResetPasswordRequest

type ResetPasswordRequest struct {
	UserID   uint
	Password string
}

type RoleResponse

type RoleResponse struct {
	ID          uint                 `json:"id"`
	Name        string               `json:"name"`
	Permissions []PermissionResponse `json:"permissions"`
}

type UpdateProfileRequest

type UpdateProfileRequest struct {
	UserID       uint
	FirstName    *string
	LastName     *string
	Email        *string
	NationalCode *string
	ProfilePic   *multipart.FileHeader
	TemplateFile string
	EmailSubject string
}

type UpdateRoleRequest

type UpdateRoleRequest struct {
	RoleID        uint
	Name          *string
	PermissionIDs []uint
}

type UpdateUserRolesRequest

type UpdateUserRolesRequest struct {
	UserID  uint
	RoleIDs []uint
}

type UserInfoResponse

type UserInfoResponse struct {
	AccessToken  string               `json:"accessToken"`
	RefreshToken string               `json:"refreshToken"`
	FirstName    string               `json:"firstName"`
	LastName     string               `json:"lastName"`
	Permissions  []PermissionResponse `json:"permissions"`
}

type UserResponse

type UserResponse struct {
	ID uint `json:"id"`
}

type VerifyEmailRequest

type VerifyEmailRequest struct {
	UserID uint
	Email  string
	OTP    string
}

type VerifyPhoneRequest

type VerifyPhoneRequest struct {
	Phone string
	OTP   string
}

Jump to

Keyboard shortcuts

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