package
Version:
v0.0.0-...-cfa269c
Opens a new window with list of versions in this module.
Published: Aug 17, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
DEFAULT_PAGE = 1
DEFAULT_PER_PAGE = 20
)
type BaseQuery struct {
Page int `query:"page"`
Limit int `query:"limit"`
Keyword string `query:"keyword"`
Sort string `query:"sort"`
}
type Login struct {
Email string `json:"email" validate:"required,email"`
Password string `json:"password" validate:"required"`
Role constant.UserRole `json:"-"`
}
type Register struct {
Name string `json:"name" validate:"required"`
Email string `json:"email" validate:"required,email"`
PhoneNumber string `json:"phone_number" validate:"required"`
Password string `json:"password" validate:"required"`
Role constant.UserRole `json:"-"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.