user_entity

package
v0.0.0-...-af64e70 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Id       string
	Email    string
	Username string
	Role     string
	Password string
}

type UserLoginRequest

type UserLoginRequest struct {
	Username string `json:"username" validate:"required,min=5,max=30"`
	Password string `json:"password" validate:"required,min=5,max=30"`
}

type UserRegisterRequest

type UserRegisterRequest struct {
	Username string `json:"username" validate:"required,min=5,max=30"`
	Email    string `json:"email" validate:"email"`
	Password string `json:"password" validate:"required,min=5,max=30"`
}

type UserResponse

type UserResponse struct {
	Token string `json:"token,omitempty"`
}

Jump to

Keyboard shortcuts

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