handler

package
v0.0.0-...-0308a11 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 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 User

type User struct {
	Service service.IUserService
}

func NewUserHandler

func NewUserHandler() *User

func (*User) Delete

func (h *User) Delete(ctx *macaron.Context)

func (*User) Find

func (h *User) Find(search string, page, perPage int) (int, interface{})

func (*User) FindByID

func (h *User) FindByID(sID string) (int, interface{})

func (*User) FindByIdAndRemove

func (h *User) FindByIdAndRemove(sID string) (int, interface{})

func (*User) FindByIdAndReplace

func (h *User) FindByIdAndReplace(user model.User, sID string) (int, interface{})

func (*User) GetList

func (h *User) GetList(ctx *macaron.Context)

func (*User) GetOne

func (h *User) GetOne(ctx *macaron.Context)

func (*User) Post

func (h *User) Post(user model.User, ctx *macaron.Context)

func (*User) Put

func (h *User) Put(user model.User, ctx *macaron.Context)

Jump to

Keyboard shortcuts

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