user

package
v0.0.0-...-cd133ac Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserCommonRequestFormat

type UserCommonRequestFormat struct {
	Account string `json:"account" form:"account" validate:"required"`
	Pwd     string `json:"pwd" form:"pwd" validate:"required"`
}

type UserResponse

type UserResponse struct {
	User struct {
		Account string `json:"account"`
		Token   string `json:"token"`
	} `json:"user"`
}

func ToUserResponse

func ToUserResponse(u *entities.User, token string) *UserResponse

type UsersController

type UsersController struct {
	Repo user.UserInterface
}

func NewUsersControllers

func NewUsersControllers(usrep user.UserInterface) *UsersController

func (UsersController) GetUserCtrl

func (ctrl UsersController) GetUserCtrl() echo.HandlerFunc

func (UsersController) Login

func (ctrl UsersController) Login() echo.HandlerFunc

func (UsersController) Signup

func (ctrl UsersController) Signup() echo.HandlerFunc

Jump to

Keyboard shortcuts

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