controller

package
v0.0.0-...-d563f25 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharacterController

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

CharacterController represents the character controller

func NewCharacterController

func NewCharacterController(
	characterService character.ServiceInterface,
	dataManager *data.Manager,
) *CharacterController

NewCharacterController creates a new character controller

func (*CharacterController) GetListCharacter

func (a *CharacterController) GetListCharacter(w http.ResponseWriter, r *http.Request)

GetListCharacter function for get list data characters

func (*CharacterController) PostCreateCharacter

func (a *CharacterController) PostCreateCharacter(w http.ResponseWriter, r *http.Request)

PostCreateCharacter for creating data character

func (*CharacterController) PutUpdateCharacter

func (a *CharacterController) PutUpdateCharacter(w http.ResponseWriter, r *http.Request)

PutUpdateCharacter for update data character

type CharacterList

type CharacterList struct {
	Data  []*character.Characters `json:"data"`
	Total int                     `json:"total"`
}

CharacterList character list and count

type UserController

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

UserController represents the user controller

func NewUserController

func NewUserController(
	userService user.ServiceInterface,
	dataManager *data.Manager,
	utility *u.Utility,
) *UserController

NewUserController creates a new user controller

func (*UserController) GetListUser

func (a *UserController) GetListUser(w http.ResponseWriter, r *http.Request)

GetListUser function for get list data users

func (*UserController) PostCreateUser

func (a *UserController) PostCreateUser(w http.ResponseWriter, r *http.Request)

PostCreateUser for creating data user

func (*UserController) PostLogin

func (a *UserController) PostLogin(w http.ResponseWriter, r *http.Request)

PostLogin for getting authorization ..

type UserList

type UserList struct {
	Data  []*user.Users `json:"data"`
	Total int           `json:"total"`
}

UserList user list and count

Jump to

Keyboard shortcuts

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