usersvc

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ErrMsgIDInternalErr  = 1002
	ErrCodeInternalErr   = "internal"      // Example error code for invalid input
	ErrMsgIDBannedDomain = 1003            // New custom message ID
	ErrCodeBannedDomain  = "banned_domain" // New custom error code
)

Variables

This section is empty.

Functions

func HandleCreateUserRequest

func HandleCreateUserRequest(c *gin.Context, s *service.Service)

Types

type CreateUserRequest

type CreateUserRequest struct {
	Name        string `json:"name" validate:"required"`
	Email       string `json:"email" validate:"required,email"`
	Username    string `json:"username" validate:"required,min=3"`
	PhoneNumber string `json:"phone_number" validate:"omitempty,e164"` // Assuming e164 format for phone numbers
}

Jump to

Keyboard shortcuts

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