Documentation ¶
Index ¶
- type CommandController
- func (c *CommandController) DeleteBy(id int64, ctx iris.Context) interface{}
- func (c *CommandController) Get(ctx iris.Context) interface{}
- func (c *CommandController) GetBy(id int64) interface{}
- func (c *CommandController) PostBy(id int64, ctx iris.Context) interface{}
- func (c *CommandController) Put(ctx iris.Context) interface{}
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 (*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
Click to show internal directories.
Click to hide internal directories.