models

package
v0.0.0-...-95714bc Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 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 ParamsUserLogin

type ParamsUserLogin struct {
	UserName string `json:"user_name" binding:"required,min=6"`
	Password string `json:"password" binding:"required,min=6,max=20"`
}

type ParamsUserSignUp

type ParamsUserSignUp struct {
	UserName         string `json:"user_name" binding:"required,min=6"`
	OriginalPassword string `json:"original_password" binding:"required,min=6,max=20"`
	ConfirmPassword  string `json:"confirm_password" binding:"required,min=6,max=20,eqfield=OriginalPassword"`
}

type User

type User struct {
	UserID   int64  `json:"user_id" db:"user_id"`
	UserName string `json:"user_name" db:"user_name"`
	Password string `json:"password" db:"password"`
}

Jump to

Keyboard shortcuts

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