controller

package
v0.0.0-...-1bf48be Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleController

type RoleController struct {
	// contains filtered or unexported fields
}

func NewRoleController

func NewRoleController(roleService *service.RoleService) *RoleController

func (*RoleController) Create

func (uh *RoleController) Create(w http.ResponseWriter, r *http.Request)

func (*RoleController) Delete

func (uh *RoleController) Delete(w http.ResponseWriter, r *http.Request)

func (*RoleController) GetMany

func (uh *RoleController) GetMany(w http.ResponseWriter, r *http.Request)

func (*RoleController) GetOne

func (uh *RoleController) GetOne(w http.ResponseWriter, r *http.Request)

func (*RoleController) Update

func (uh *RoleController) Update(w http.ResponseWriter, r *http.Request)

type UserController

type UserController struct {
	// contains filtered or unexported fields
}

func NewUserController

func NewUserController(
	userService *service.UserService,
	roleService *service.RoleService,
) *UserController

func (*UserController) Create

func (uh *UserController) Create(w http.ResponseWriter, r *http.Request)

func (*UserController) Delete

func (uh *UserController) Delete(w http.ResponseWriter, r *http.Request)

func (*UserController) GetMany

func (uh *UserController) GetMany(w http.ResponseWriter, r *http.Request)

func (*UserController) GetOne

func (uh *UserController) GetOne(w http.ResponseWriter, r *http.Request)

func (*UserController) Update

func (uh *UserController) Update(w http.ResponseWriter, r *http.Request)

func (*UserController) UpdatePassword

func (uh *UserController) UpdatePassword(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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