controller

package
v0.0.0-...-f291b3d Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandController

type CommandController struct {
	Service service.CommandService
}

CommandController command controller

func New

func New() *CommandController

New a new controller

func (*CommandController) DeleteBy

func (c *CommandController) DeleteBy(id int64, ctx iris.Context) interface{}

DeleteBy delete command by ID

func (*CommandController) Get

func (c *CommandController) Get(ctx iris.Context) interface{}

Get get all existing commands

func (*CommandController) GetBy

func (c *CommandController) GetBy(id int64) interface{}

GetBy get command by ID

func (*CommandController) PostBy

func (c *CommandController) PostBy(id int64, ctx iris.Context) interface{}

PostBy update a command

func (*CommandController) Put

func (c *CommandController) Put(ctx iris.Context) interface{}

Put create a new command

Jump to

Keyboard shortcuts

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