params

package
v0.0.0-...-5b45539 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrDescribeAccountParamsInvalid describe account params invalid
	ErrDescribeAccountParamsInvalid = errors.New("describe account params invalid")
)

Functions

This section is empty.

Types

type AuthenticateAccount

type AuthenticateAccount struct {
	Login    string
	Email    string
	Password string
	ClientIP string
}

AuthenticateAccount authenticate account params

type CreateAccount

type CreateAccount struct {
	Login    string `binding:"required" validate:"required"`
	Email    string `binding:"required" validate:"required,email"`
	Password string `binding:"required" validate:"required,min=8,max=56"`
	Name     string
	Bio      string
	Location string
	Status   models.UserStatus
}

CreateAccount create account params

type CreateResetPasswordToken

type CreateResetPasswordToken struct {
	Email string
}

CreateResetPasswordToken create reset account password token params

type CreateUnlockToken

type CreateUnlockToken struct {
	Email string
}

CreateUnlockToken create unlock account token params

type DescribeAccount

type DescribeAccount struct {
	ID    int64
	Login string
	Email string
}

DescribeAccount describe account params

func (*DescribeAccount) IsValid

func (params *DescribeAccount) IsValid() error

IsValid return describe account params is valid

type DescribeAccounts

type DescribeAccounts struct {
	database.Pagination[*models.Account]
	Q string
}

DescribeAccounts describe accounts params

type ResetPassword

type ResetPassword struct {
	Token    string
	Password string
}

ResetPassword reset password params

type Unlock

type Unlock struct {
	Login string
	Token string
}

Unlock account token

type UpdateAccount

type UpdateAccount struct {
	Login    string
	Name     *string
	Bio      *string
	Location *string
	Status   *models.UserStatus
}

UpdateAccount update account params

type UpdatePassword

type UpdatePassword struct {
	ID          int64
	Login       string
	Email       string
	Password    string
	NewPassword string
}

UpdatePassword update password params

Jump to

Keyboard shortcuts

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