controller

package
v0.0.0-...-eac86dd Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUserController

type IUserController interface {
	Login(ctx *gin.Context)
	CreateUser(ctx *gin.Context)
	IsLoggedIn(ctx *gin.Context)
	Logout(ctx *gin.Context)
}

func New

func New(userDomain IUserDomain) IUserController

type IUserDomain

type IUserDomain interface {
	CreateUser(user *models.User) error
	Login(username, password string) error
	IsLoggedIn() bool
	Logout()
}

Jump to

Keyboard shortcuts

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