Documentation ¶
Index ¶
- Constants
- func ExportToRedactor(f *models.Flow) (flow *models.RedactorFlow, err error)
- func GetHmacToken(data map[string]interface{}, key []byte) (tokenString string, err error)
- type AuthController
- type CommonController
- type DashboardController
- type DeviceActionController
- func (c *DeviceActionController) Delete()
- func (c *DeviceActionController) GetAll()
- func (c *DeviceActionController) GetByDevice()
- func (c *DeviceActionController) GetOne()
- func (c *DeviceActionController) Post()
- func (c *DeviceActionController) Put()
- func (c *DeviceActionController) Search()
- func (c *DeviceActionController) URLMapping()
- type DeviceController
- func (c *DeviceController) Delete()
- func (c *DeviceController) GetActions()
- func (c *DeviceController) GetAll()
- func (c *DeviceController) GetGroup()
- func (c *DeviceController) GetOne()
- func (c *DeviceController) GetStatuses()
- func (c *DeviceController) Post()
- func (c *DeviceController) Put()
- func (c *DeviceController) Search()
- func (c *DeviceController) URLMapping()
- type DeviceStateController
- type EmailItemController
- type EmailTemplateController
- type ErrorController
- type FlowController
- func (c *FlowController) Delete()
- func (c *FlowController) GetAll()
- func (c *FlowController) GetOne()
- func (c *FlowController) GetOneFull()
- func (c *FlowController) GetOneRedactor()
- func (c *FlowController) GetWorkers()
- func (c *FlowController) Post()
- func (c *FlowController) Put()
- func (c *FlowController) Search()
- func (c *FlowController) URLMapping()
- func (c *FlowController) UpdateRedactor()
- type ImageController
- type LogController
- type MapController
- type MapElementController
- func (c *MapElementController) Delete()
- func (c *MapElementController) GetAll()
- func (c *MapElementController) GetOne()
- func (c *MapElementController) Post()
- func (c *MapElementController) Put()
- func (c *MapElementController) PutElementOnly()
- func (c *MapElementController) Sort()
- func (c *MapElementController) URLMapping()
- type MapLayerController
- type NodeController
- type NotifrController
- type Request
- type RoleController
- func (c *RoleController) Delete()
- func (c *RoleController) GetAccessList()
- func (c *RoleController) GetAll()
- func (c *RoleController) GetOne()
- func (c *RoleController) Post()
- func (c *RoleController) Put()
- func (c *RoleController) PutAccessList()
- func (c *RoleController) Search()
- func (c *RoleController) URLMapping()
- type ScriptController
- type UserController
- type WorkerController
- type WorkflowController
- func (c *WorkflowController) Delete()
- func (c *WorkflowController) GetAll()
- func (c *WorkflowController) GetOne()
- func (c *WorkflowController) Post()
- func (c *WorkflowController) Put()
- func (c *WorkflowController) Search()
- func (c *WorkflowController) URLMapping()
- func (c *WorkflowController) UpdateScenario()
- type WorkflowScenarioController
- func (c *WorkflowScenarioController) Delete()
- func (c *WorkflowScenarioController) GetAll()
- func (c *WorkflowScenarioController) GetOne()
- func (c *WorkflowScenarioController) Post()
- func (c *WorkflowScenarioController) Put()
- func (c *WorkflowScenarioController) Search()
- func (c *WorkflowScenarioController) URLMapping()
Constants ¶
const ADMIN_ID = 1
Variables ¶
This section is empty.
Functions ¶
func ExportToRedactor ¶
func ExportToRedactor(f *models.Flow) (flow *models.RedactorFlow, err error)
Types ¶
type AuthController ¶
type AuthController struct {
CommonController
}
AuthController operations for Auth
func (*AuthController) AccessList ¶
func (c *AuthController) AccessList()
func (*AuthController) Recovery ¶
func (h *AuthController) Recovery()
@Title Recovery @Description user account page @Param body @Success 201 {object} @Failure 403 @router /recovery [post]
func (*AuthController) Reset ¶
func (h *AuthController) Reset()
@Title Reset @Description user account page @Param body @Success 201 {object} @Failure 403 @router /reset [post]
func (*AuthController) SignIn ¶
func (h *AuthController) SignIn()
@Title SignIn @Description user account page @Param body @Success 201 {object} @Failure 403 @router /signin [get]
func (*AuthController) SignOut ¶
func (h *AuthController) SignOut()
@Title SignOut @Description user account page @Param body @Success 201 {object} @Failure 403 @router /signout [post]
type CommonController ¶
type CommonController struct {
beego.Controller
}
func (*CommonController) ErrHan ¶
func (c *CommonController) ErrHan(code int, message string)
func (*CommonController) GetTemplate ¶
func (c *CommonController) GetTemplate() string
func (*CommonController) Prepare ¶
func (c *CommonController) Prepare()
type DashboardController ¶
type DashboardController struct {
CommonController
}
DashboardController operations for Dashboard
func (*DashboardController) Delete ¶
func (c *DashboardController) Delete()
Delete ... @Title Delete @Description delete the Dashboard @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*DashboardController) GetAll ¶
func (c *DashboardController) GetAll()
GetAll ... @Title GetAll @Description get Dashboard @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Dashboard @Failure 403 @router / [get]
func (*DashboardController) GetOne ¶
func (c *DashboardController) GetOne()
GetOne ... @Title GetOne @Description get Dashboard by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Dashboard @Failure 403 :id is empty @router /:id [get]
func (*DashboardController) Post ¶
func (c *DashboardController) Post()
Post ... @Title Create @Description create Dashboard @Param body body models.Dashboard true "body for Dashboard content" @Success 201 {object} models.Dashboard @Failure 403 body is empty @router / [post]
func (*DashboardController) Put ¶
func (c *DashboardController) Put()
Put ... @Title Put @Description update the Dashboard @Param id path string true "The id you want to update" @Param body body models.Dashboard true "body for Dashboard content" @Success 200 {object} models.Dashboard @Failure 403 :id is not int @router /:id [put]
type DeviceActionController ¶
type DeviceActionController struct {
CommonController
}
DeviceActionController operations for DeviceAction
func (*DeviceActionController) Delete ¶
func (c *DeviceActionController) Delete()
Delete ... @Title Delete @Description delete the DeviceAction @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*DeviceActionController) GetAll ¶
func (c *DeviceActionController) GetAll()
GetAll ... @Title GetAll @Description get DeviceAction @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.DeviceAction @Failure 403 @router / [get]
func (*DeviceActionController) GetByDevice ¶
func (c *DeviceActionController) GetByDevice()
GetByDevice ... @Title GetByDevice @Description get DeviceState by id @Param id path string true "The key for staticblock" @Success 200 {object} models.DeviceState @Failure 403 :id is empty @router /:id [get]
func (*DeviceActionController) GetOne ¶
func (c *DeviceActionController) GetOne()
GetOne ... @Title GetOne @Description get DeviceAction by id @Param id path string true "The key for staticblock" @Success 200 {object} models.DeviceAction @Failure 403 :id is empty @router /:id [get]
func (*DeviceActionController) Post ¶
func (c *DeviceActionController) Post()
Post ... @Title Create @Description create DeviceAction @Param body body models.DeviceAction true "body for DeviceAction content" @Success 201 {object} models.DeviceAction @Failure 403 body is empty @router / [post]
func (*DeviceActionController) Put ¶
func (c *DeviceActionController) Put()
Put ... @Title Put @Description update the DeviceAction @Param id path string true "The id you want to update" @Param body body models.DeviceAction true "body for DeviceAction content" @Success 200 {object} models.DeviceAction @Failure 403 :id is not int @router /:id [put]
func (*DeviceActionController) Search ¶
func (c *DeviceActionController) Search()
func (*DeviceActionController) URLMapping ¶
func (c *DeviceActionController) URLMapping()
URLMapping ...
type DeviceController ¶
type DeviceController struct {
CommonController
}
DeviceController operations for Device
func (*DeviceController) Delete ¶
func (c *DeviceController) Delete()
Delete ... @Title Delete @Description delete the Device @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*DeviceController) GetActions ¶
func (c *DeviceController) GetActions()
GetActions ... @Title GetActions @Description get device Actions by id @Param id path string true @Success 200 {object} models.Device @Failure 403 :id is empty @router /:id/actions [get]
func (*DeviceController) GetAll ¶
func (c *DeviceController) GetAll()
GetAll ... @Title GetAll @Description get Device @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Device @Failure 403 @router / [get]
func (*DeviceController) GetGroup ¶
func (c *DeviceController) GetGroup()
GetGroup ... @Title GetGroup @Description get Device by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Device @Failure 403 :id is empty @router / [get]
func (*DeviceController) GetOne ¶
func (c *DeviceController) GetOne()
GetOne ... @Title GetOne @Description get Device by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Device @Failure 403 :id is empty @router /:id [get]
func (*DeviceController) GetStatuses ¶ added in v0.0.7
func (c *DeviceController) GetStatuses()
func (*DeviceController) Post ¶
func (c *DeviceController) Post()
Post ... @Title Create @Description create Device @Param body body models.Device true "body for Device content" @Success 201 {object} models.Device @Failure 403 body is empty @router / [post]
func (*DeviceController) Put ¶
func (c *DeviceController) Put()
Put ... @Title Put @Description update the Device @Param id path string true "The id you want to update" @Param body body models.Device true "body for Device content" @Success 200 {object} models.Device @Failure 403 :id is not int @router /:id [put]
func (*DeviceController) Search ¶
func (c *DeviceController) Search()
type DeviceStateController ¶
type DeviceStateController struct {
CommonController
}
DeviceStateController operations for DeviceState
func (*DeviceStateController) Delete ¶
func (c *DeviceStateController) Delete()
Delete ... @Title Delete @Description delete the DeviceState @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*DeviceStateController) GetAll ¶
func (c *DeviceStateController) GetAll()
GetAll ... @Title GetAll @Description get DeviceState @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.DeviceState @Failure 403 @router / [get]
func (*DeviceStateController) GetByDevice ¶
func (c *DeviceStateController) GetByDevice()
GetByDevice ... @Title GetByDevice @Description get DeviceState by id @Param id path string true "The key for staticblock" @Success 200 {object} models.DeviceState @Failure 403 :id is empty @router /:id [get]
func (*DeviceStateController) GetOne ¶
func (c *DeviceStateController) GetOne()
GetOne ... @Title GetOne @Description get DeviceState by id @Param id path string true "The key for staticblock" @Success 200 {object} models.DeviceState @Failure 403 :id is empty @router /:id [get]
func (*DeviceStateController) Post ¶
func (c *DeviceStateController) Post()
Post ... @Title Create @Description create DeviceState @Param body body models.DeviceState true "body for DeviceState content" @Success 201 {object} models.DeviceState @Failure 403 body is empty @router / [post]
func (*DeviceStateController) Put ¶
func (c *DeviceStateController) Put()
Put ... @Title Put @Description update the DeviceState @Param id path string true "The id you want to update" @Param body body models.DeviceState true "body for DeviceState content" @Success 200 {object} models.DeviceState @Failure 403 :id is not int @router /:id [put]
func (*DeviceStateController) URLMapping ¶
func (c *DeviceStateController) URLMapping()
URLMapping ...
type EmailItemController ¶
type EmailItemController struct {
CommonController
}
func (*EmailItemController) Delete ¶
func (i *EmailItemController) Delete()
func (*EmailItemController) GetAll ¶
func (i *EmailItemController) GetAll()
func (*EmailItemController) GetOne ¶
func (i *EmailItemController) GetOne()
func (*EmailItemController) GetTree ¶
func (i *EmailItemController) GetTree()
func (*EmailItemController) Post ¶
func (i *EmailItemController) Post()
func (*EmailItemController) Put ¶
func (i *EmailItemController) Put()
func (*EmailItemController) UpdateTree ¶
func (i *EmailItemController) UpdateTree()
type EmailTemplateController ¶
type EmailTemplateController struct {
CommonController
}
func (*EmailTemplateController) Delete ¶
func (e *EmailTemplateController) Delete()
func (*EmailTemplateController) GetAll ¶
func (e *EmailTemplateController) GetAll()
@Title Get All @Description get Email Template @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.EmailTemplate @Failure 403 @router / [get]
func (*EmailTemplateController) GetOne ¶
func (e *EmailTemplateController) GetOne()
func (*EmailTemplateController) Post ¶
func (e *EmailTemplateController) Post()
func (*EmailTemplateController) Preview ¶
func (e *EmailTemplateController) Preview()
func (*EmailTemplateController) Put ¶
func (e *EmailTemplateController) Put()
func (*EmailTemplateController) Search ¶ added in v0.0.5
func (c *EmailTemplateController) Search()
type ErrorController ¶
type ErrorController struct {
CommonController
}
Beego supports 404, 401, 403, 500, 503 error handling by default. You can also define custom error handling page.
http://beego.me/docs/mvc/controller/errors.md
func (*ErrorController) Error401 ¶
func (c *ErrorController) Error401()
func (*ErrorController) Error403 ¶
func (c *ErrorController) Error403()
func (*ErrorController) Error404 ¶
func (c *ErrorController) Error404()
func (*ErrorController) Error500 ¶
func (c *ErrorController) Error500()
func (*ErrorController) ErrorDb ¶
func (c *ErrorController) ErrorDb()
func (*ErrorController) Prepare ¶
func (c *ErrorController) Prepare()
type FlowController ¶
type FlowController struct {
CommonController
}
FlowController operations for Flow
func (*FlowController) Delete ¶
func (c *FlowController) Delete()
Delete ... @Title Delete @Description delete the Flow @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*FlowController) GetAll ¶
func (c *FlowController) GetAll()
GetAll ... @Title GetAll @Description get Flow @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Flow @Failure 403 @router / [get]
func (*FlowController) GetOne ¶
func (c *FlowController) GetOne()
GetOne ... @Title GetOne @Description get Flow by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Flow @Failure 403 :id is empty @router /:id [get]
func (*FlowController) GetOneFull ¶
func (c *FlowController) GetOneFull()
GetOne ... @Title GetOne @Description get Flow by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Flow @Failure 403 :id is empty @router /:id [get]
func (*FlowController) GetOneRedactor ¶
func (c *FlowController) GetOneRedactor()
func (*FlowController) GetWorkers ¶
func (c *FlowController) GetWorkers()
func (*FlowController) Post ¶
func (c *FlowController) Post()
Post ... @Title Create @Description create Flow @Param body body models.Flow true "body for Flow content" @Success 201 {object} models.Flow @Failure 403 body is empty @router / [post]
func (*FlowController) Put ¶
func (c *FlowController) Put()
Put ... @Title Put @Description update the Flow @Param id path string true "The id you want to update" @Param body body models.Flow true "body for Flow content" @Success 200 {object} models.Flow @Failure 403 :id is not int @router /:id [put]
func (*FlowController) Search ¶
func (c *FlowController) Search()
func (*FlowController) UpdateRedactor ¶
func (c *FlowController) UpdateRedactor()
type ImageController ¶
type ImageController struct {
CommonController
}
ImageController operations for Image
func (*ImageController) Delete ¶
func (c *ImageController) Delete()
Delete ... @Title Delete @Description delete the Image @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*ImageController) GetAll ¶
func (c *ImageController) GetAll()
GetAll ... @Title GetAll @Description get Image @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Image @Failure 403 @router / [get]
func (*ImageController) GetOne ¶
func (c *ImageController) GetOne()
GetOne ... @Title GetOne @Description get Image by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Image @Failure 403 :id is empty @router /:id [get]
func (*ImageController) Post ¶
func (c *ImageController) Post()
Post ... @Title Create @Description create Image @Param body body models.Image true "body for Image content" @Success 201 {object} models.Image @Failure 403 body is empty @router / [post]
func (*ImageController) Put ¶
func (c *ImageController) Put()
Put ... @Title Put @Description update the Image @Param id path string true "The id you want to update" @Param body body models.Image true "body for Image content" @Success 200 {object} models.Image @Failure 403 :id is not int @router /:id [put]
func (*ImageController) Upload ¶
func (c *ImageController) Upload()
type LogController ¶
type LogController struct {
CommonController
}
LogController operations for Log
func (*LogController) Delete ¶
func (c *LogController) Delete()
Delete ... @Title Delete @Description delete the Log @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*LogController) GetAll ¶
func (c *LogController) GetAll()
GetAll ... @Title GetAll @Description get Log @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Log @Failure 403 @router / [get]
func (*LogController) GetOne ¶
func (c *LogController) GetOne()
GetOne ... @Title GetOne @Description get Log by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Log @Failure 403 :id is empty @router /:id [get]
func (*LogController) Post ¶
func (c *LogController) Post()
Post ... @Title Create @Description create Log @Param body body models.Log true "body for Log content" @Success 201 {object} models.Log @Failure 403 body is empty @router / [post]
func (*LogController) Put ¶
func (c *LogController) Put()
Put ... @Title Put @Description update the Log @Param id path string true "The id you want to update" @Param body body models.Log true "body for Log content" @Success 200 {object} models.Log @Failure 403 :id is not int @router /:id [put]
type MapController ¶
type MapController struct {
CommonController
}
MapController operations for Map
func (*MapController) Delete ¶
func (c *MapController) Delete()
Delete ... @Title Delete @Description delete the Map @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*MapController) GetAll ¶
func (c *MapController) GetAll()
GetAll ... @Title GetAll @Description get Map @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Map @Failure 403 @router / [get]
func (*MapController) GetFull ¶
func (c *MapController) GetFull()
func (*MapController) GetOne ¶
func (c *MapController) GetOne()
GetOne ... @Title GetOne @Description get Map by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Map @Failure 403 :id is empty @router /:id [get]
func (*MapController) Post ¶
func (c *MapController) Post()
Post ... @Title Create @Description create Map @Param body body models.Map true "body for Map content" @Success 201 {object} models.Map @Failure 403 body is empty @router / [post]
func (*MapController) Put ¶
func (c *MapController) Put()
Put ... @Title Put @Description update the Map @Param id path string true "The id you want to update" @Param body body models.Map true "body for Map content" @Success 200 {object} models.Map @Failure 403 :id is not int @router /:id [put]
type MapElementController ¶
type MapElementController struct {
CommonController
}
MapElementController operations for MapElement
func (*MapElementController) Delete ¶
func (c *MapElementController) Delete()
Delete ... @Title Delete @Description delete the MapElement @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*MapElementController) GetAll ¶
func (c *MapElementController) GetAll()
GetAll ... @Title GetAll @Description get MapElement @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.MapElement @Failure 403 @router / [get]
func (*MapElementController) GetOne ¶
func (c *MapElementController) GetOne()
GetOne ... @Title GetOne @Description get MapElement by id @Param id path string true "The key for staticblock" @Success 200 {object} models.MapElement @Failure 403 :id is empty @router /:id [get]
func (*MapElementController) Post ¶
func (c *MapElementController) Post()
Post ... @Title Create @Description create MapElement @Param body body models.MapElement true "body for MapElement content" @Success 201 {object} models.MapElement @Failure 403 body is empty @router / [post]
func (*MapElementController) Put ¶
func (c *MapElementController) Put()
Put ... @Title Put @Description update the MapElement @Param id path string true "The id you want to update" @Param body body models.MapElement true "body for MapElement content" @Success 200 {object} models.MapElement @Failure 403 :id is not int @router /:id [put]
func (*MapElementController) PutElementOnly ¶
func (c *MapElementController) PutElementOnly()
PutElementOnly ... @Title PutElementOnly @Description update the MapElement @Param id path string true "The id you want to update" @Param body body models.MapElement true "body for MapElement content" @Success 200 {object} models.MapElement @Failure 403 :id is not int @router /:id [put]
func (*MapElementController) Sort ¶
func (c *MapElementController) Sort()
func (*MapElementController) URLMapping ¶
func (c *MapElementController) URLMapping()
URLMapping ...
type MapLayerController ¶
type MapLayerController struct {
CommonController
}
MapLayerController operations for MapLayer
func (*MapLayerController) Delete ¶
func (c *MapLayerController) Delete()
Delete ... @Title Delete @Description delete the MapLayer @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*MapLayerController) GetAll ¶
func (c *MapLayerController) GetAll()
GetAll ... @Title GetAll @Description get MapLayer @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.MapLayer @Failure 403 @router / [get]
func (*MapLayerController) GetOne ¶
func (c *MapLayerController) GetOne()
GetOne ... @Title GetOne @Description get MapLayer by id @Param id path string true "The key for staticblock" @Success 200 {object} models.MapLayer @Failure 403 :id is empty @router /:id [get]
func (*MapLayerController) Post ¶
func (c *MapLayerController) Post()
Post ... @Title Create @Description create MapLayer @Param body body models.MapLayer true "body for MapLayer content" @Success 201 {object} models.MapLayer @Failure 403 body is empty @router / [post]
func (*MapLayerController) Put ¶
func (c *MapLayerController) Put()
Put ... @Title Put @Description update the MapLayer @Param id path string true "The id you want to update" @Param body body models.MapLayer true "body for MapLayer content" @Success 200 {object} models.MapLayer @Failure 403 :id is not int @router /:id [put]
func (*MapLayerController) Sort ¶
func (c *MapLayerController) Sort()
type NodeController ¶
type NodeController struct {
CommonController
}
NodeController operations for Node
func (*NodeController) Delete ¶
func (c *NodeController) Delete()
Delete ... @Title Delete @Description delete the Node @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*NodeController) GetAll ¶
func (c *NodeController) GetAll()
GetAll ... @Title GetAll @Description get Node @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Node @Failure 403 @router / [get]
func (*NodeController) GetOne ¶
func (c *NodeController) GetOne()
GetOne ... @Title GetOne @Description get Node by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Node @Failure 403 :id is empty @router /:id [get]
func (*NodeController) Post ¶
func (c *NodeController) Post()
Post ... @Title Create @Description create Node @Param body body models.Node true "body for Node content" @Success 201 {object} models.Node @Failure 403 body is empty @router / [post]
func (*NodeController) Put ¶
func (c *NodeController) Put()
Put ... @Title Put @Description update the Node @Param id path string true "The id you want to update" @Param body body models.Node true "body for Node content" @Success 200 {object} models.Node @Failure 403 :id is not int @router /:id [put]
type NotifrController ¶ added in v0.0.5
type NotifrController struct {
CommonController
}
NotifrController operations for Notifr
func (*NotifrController) Delete ¶ added in v0.0.5
func (c *NotifrController) Delete()
Delete ... @Title Delete @Description delete the Notifr @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*NotifrController) GetAll ¶ added in v0.0.5
func (c *NotifrController) GetAll()
GetAll ... @Title GetAll @Description get Notifr @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.MessageDeliverie @Failure 403 @router / [get]
func (*NotifrController) GetOne ¶ added in v0.0.5
func (c *NotifrController) GetOne()
GetOne ... @Title GetOne @Description get Notify by id @Param id path string true "The key for staticblock" @Success 200 {object} models.MessageDeliverie @Failure 403 :id is empty @router /:id [get]
func (*NotifrController) Post ¶ added in v0.0.5
func (c *NotifrController) Post()
Post ... @Title Create @Description create Notifr @Param body body models.MessageDeliverie true "body for Notifr content" @Success 201 {object} models.MessageDeliverie @Failure 403 body is empty @router / [post]
func (NotifrController) Repeat ¶ added in v0.0.5
func (c NotifrController) Repeat()
func (*NotifrController) URLMapping ¶ added in v0.0.5
func (c *NotifrController) URLMapping()
URLMapping ...
type RoleController ¶
type RoleController struct {
CommonController
}
RoleController operations for Role
func (*RoleController) Delete ¶
func (c *RoleController) Delete()
Delete ... @Title Delete @Description delete the Role @Param name path string true "The name you want to delete" @Success 200 {string} delete success! @Failure 403 name is empty @router /:name [delete]
func (*RoleController) GetAccessList ¶
func (c *RoleController) GetAccessList()
func (*RoleController) GetAll ¶
func (c *RoleController) GetAll()
GetAll ... @Title GetAll @Description get Role @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Role @Failure 403 @router / [get]
func (*RoleController) GetOne ¶
func (c *RoleController) GetOne()
GetOne ... @Title GetOne @Description get Role by name @Param name path string true "The key for staticblock" @Success 200 {object} models.Role @Failure 403 :name is empty @router /:name [get]
func (*RoleController) Post ¶
func (c *RoleController) Post()
Post ... @Title Create @Description create Role @Param body body models.Role true "body for Role content" @Success 201 {object} models.Role @Failure 403 body is empty @router / [post]
func (*RoleController) Put ¶
func (c *RoleController) Put()
Put ... @Title Put @Description update the Role @Param name path string true "The name you want to update" @Param body body models.Role true "body for Role content" @Success 200 {object} models.Role @Failure 403 :name is not int @router /:name [put]
func (*RoleController) PutAccessList ¶
func (c *RoleController) PutAccessList()
func (*RoleController) Search ¶
func (c *RoleController) Search()
type ScriptController ¶
type ScriptController struct {
CommonController
}
ScriptController operations for Script
func (*ScriptController) Delete ¶
func (c *ScriptController) Delete()
Delete ... @Title Delete @Description delete the Script @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*ScriptController) Exec ¶
func (c *ScriptController) Exec()
Post ... @Title Post @Description exec the Script @Param id path string true "The id you want to update" @Param body body models.Script true "body for Script content" @Success 200 {object} models.Script @Failure 403 :id is not int @router /:id/exec [post]
func (*ScriptController) GetAll ¶
func (c *ScriptController) GetAll()
GetAll ... @Title GetAll @Description get Script @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Script @Failure 403 @router / [get]
func (*ScriptController) GetOne ¶
func (c *ScriptController) GetOne()
GetOne ... @Title GetOne @Description get Script by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Script @Failure 403 :id is empty @router /:id [get]
func (*ScriptController) Post ¶
func (c *ScriptController) Post()
Post ... @Title Create @Description create Script @Param body body models.Script true "body for Script content" @Success 201 {object} models.Script @Failure 403 body is empty @router / [post]
func (*ScriptController) Put ¶
func (c *ScriptController) Put()
Put ... @Title Put @Description update the Script @Param id path string true "The id you want to update" @Param body body models.Script true "body for Script content" @Success 200 {object} models.Script @Failure 403 :id is not int @router /:id [put]
func (*ScriptController) Search ¶
func (c *ScriptController) Search()
type UserController ¶
type UserController struct {
CommonController
}
UserController operations for User
func (*UserController) Delete ¶
func (c *UserController) Delete()
Delete ... @Title Delete @Description delete the User @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*UserController) GetAll ¶
func (c *UserController) GetAll()
GetAll ... @Title GetAll @Description get User @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.User @Failure 403 @router / [get]
func (*UserController) GetOne ¶
func (c *UserController) GetOne()
GetOne ... @Title GetOne @Description get User by id @Param id path string true "The key for staticblock" @Success 200 {object} models.User @Failure 403 :id is empty @router /:id [get]
func (*UserController) Post ¶
func (c *UserController) Post()
Post ... @Title Create @Description create User @Param body body models.User true "body for User content" @Success 201 {object} models.User @Failure 403 body is empty @router / [post]
func (*UserController) Put ¶
func (c *UserController) Put()
Put ... @Title Put @Description update the User @Param id path string true "The id you want to update" @Param body body models.User true "body for User content" @Success 200 {object} models.User @Failure 403 :id is not int @router /:id [put]
func (*UserController) Search ¶
func (c *UserController) Search()
func (*UserController) UpdateStatus ¶
func (c *UserController) UpdateStatus()
type WorkerController ¶
type WorkerController struct {
CommonController
}
WorkerController operations for Worker
func (*WorkerController) Delete ¶
func (c *WorkerController) Delete()
Delete ... @Title Delete @Description delete the Worker @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*WorkerController) GetAll ¶
func (c *WorkerController) GetAll()
GetAll ... @Title GetAll @Description get Worker @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Worker @Failure 403 @router / [get]
func (*WorkerController) GetOne ¶
func (c *WorkerController) GetOne()
GetOne ... @Title GetOne @Description get Worker by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Worker @Failure 403 :id is empty @router /:id [get]
func (*WorkerController) Post ¶
func (c *WorkerController) Post()
Post ... @Title Create @Description create Worker @Param body body models.Worker true "body for Worker content" @Success 201 {object} models.Worker @Failure 403 body is empty @router / [post]
func (*WorkerController) Put ¶
func (c *WorkerController) Put()
Put ... @Title Put @Description update the Worker @Param id path string true "The id you want to update" @Param body body models.Worker true "body for Worker content" @Success 200 {object} models.Worker @Failure 403 :id is not int @router /:id [put]
type WorkflowController ¶
type WorkflowController struct {
CommonController
}
WorkflowController operations for Workflow
func (*WorkflowController) Delete ¶
func (c *WorkflowController) Delete()
Delete ... @Title Delete @Description delete the Workflow @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*WorkflowController) GetAll ¶
func (c *WorkflowController) GetAll()
GetAll ... @Title GetAll @Description get Workflow @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Workflow @Failure 403 @router / [get]
func (*WorkflowController) GetOne ¶
func (c *WorkflowController) GetOne()
GetOne ... @Title GetOne @Description get Workflow by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Workflow @Failure 403 :id is empty @router /:id [get]
func (*WorkflowController) Post ¶
func (c *WorkflowController) Post()
Post ... @Title Create @Description create Workflow @Param body body models.Workflow true "body for Workflow content" @Success 201 {object} models.Workflow @Failure 403 body is empty @router / [post]
func (*WorkflowController) Put ¶
func (c *WorkflowController) Put()
Put ... @Title Put @Description update the Workflow @Param id path string true "The id you want to update" @Param body body models.Workflow true "body for Workflow content" @Success 200 {object} models.Workflow @Failure 403 :id is not int @router /:id [put]
func (*WorkflowController) Search ¶ added in v0.0.5
func (c *WorkflowController) Search()
func (*WorkflowController) UpdateScenario ¶ added in v0.0.5
func (c *WorkflowController) UpdateScenario()
UpdateScenario ... @Title UpdateScenario @Description update the Workflow @Param id path string true "The id you want to update" @Param body body models.Workflow true "body for Workflow content" @Success 200 {object} models.Workflow @Failure 403 :id is not int @router /:id [put]
type WorkflowScenarioController ¶ added in v0.0.5
type WorkflowScenarioController struct {
CommonController
}
WorkflowScenarioController oprations for WorkflowScenario
func (*WorkflowScenarioController) Delete ¶ added in v0.0.5
func (c *WorkflowScenarioController) Delete()
Delete ... @Title Delete @Description delete the WorkflowScenario @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]
func (*WorkflowScenarioController) GetAll ¶ added in v0.0.5
func (c *WorkflowScenarioController) GetAll()
GetAll ... @Title Get All @Description get WorkflowScenario @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.WorkflowScenario @Failure 403 @router / [get]
func (*WorkflowScenarioController) GetOne ¶ added in v0.0.5
func (c *WorkflowScenarioController) GetOne()
GetOne ... @Title Get One @Description get WorkflowScenario by id @Param id path string true "The key for staticblock" @Success 200 {object} models.WorkflowScenario @Failure 403 :id is empty @router /:id [get]
func (*WorkflowScenarioController) Post ¶ added in v0.0.5
func (c *WorkflowScenarioController) Post()
Post ... @Title Post @Description create WorkflowScenario @Param body body models.WorkflowScenario true "body for WorkflowScenario content" @Success 201 {int} models.WorkflowScenario @Failure 403 body is empty @router / [post]
func (*WorkflowScenarioController) Put ¶ added in v0.0.5
func (c *WorkflowScenarioController) Put()
Put ... @Title Put @Description update the WorkflowScenario @Param id path string true "The id you want to update" @Param body body models.WorkflowScenario true "body for WorkflowScenario content" @Success 200 {object} models.WorkflowScenario @Failure 403 :id is not int @router /:id [put]
func (*WorkflowScenarioController) Search ¶ added in v0.0.5
func (c *WorkflowScenarioController) Search()
func (*WorkflowScenarioController) URLMapping ¶ added in v0.0.5
func (c *WorkflowScenarioController) URLMapping()
URLMapping ...