controllers

package
v0.0.0-...-aae1d97 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseController

type BaseController struct {
	beego.Controller
}

BaseController

func (*BaseController) GetInt32Slice

func (c *BaseController) GetInt32Slice(key string) (res []int32)

func (*BaseController) GetInt64Slice

func (c *BaseController) GetInt64Slice(key string) (res []int64)

func (*BaseController) GetIntSlice

func (c *BaseController) GetIntSlice(key string) (res []int)

func (*BaseController) Options

func (c *BaseController) Options()

func (*BaseController) Prepare

func (c *BaseController) Prepare()

type HostController

type HostController struct {
	BaseController
}

主机管理

func (*HostController) Add

func (c *HostController) Add()

@Summary 添加主机 @Description 添加主机信息 @Param body body models.Host true "Host" @Success 200 {object} doc.ApiResponse @router / [post]

func (*HostController) All

func (c *HostController) All()

@Summary 获取主机列表 @Description 获取所有主机列表 @Param hostname query string false "hostname" @Param ip query string false "ip" @Param page query int false "page" @Param pageSize query int false "pageSize" @Success 200 {object} doc.ApiResponse @router / [get]

func (*HostController) Delete

func (c *HostController) Delete()

@Summary 删除单个主机 @Description 删除单个主机信息 @Param id path int true "id" @Success 200 {object} doc.ApiResponse @router /:id [delete]

func (*HostController) DeleteMulti

func (c *HostController) DeleteMulti()

@Summary 批量删除主机 @Description 批量删除主机 @Param ids query int true "ids" @Param ids query int true "ids" @Success 200 {object} doc.ApiResponse @router / [delete]

func (*HostController) One

func (c *HostController) One()

@Summary 获取主机信息 @Description 获取单个主机详细信息 @Param id path int true "id" @Success 200 {object} doc.ApiResponse @router /:id [get]

func (*HostController) Update

func (c *HostController) Update()

@Summary 修改主机 @Description 修改主机信息 @Param body body models.Host true "Host" @Success 200 {object} doc.ApiResponse @router / [put]

type MetaComponentController

type MetaComponentController struct {
	BaseController
}

组件管理

func (*MetaComponentController) Add

func (c *MetaComponentController) Add()

@Summary 添加组件 @Description 添加组件信息 @Param body body models.MetaComponent true "MetaComponent" @Success 200 {object} doc.ApiResponse @router / [post]

func (*MetaComponentController) All

func (c *MetaComponentController) All()

@Summary 获取组件列表 @Description 获取所有组件列表 @Param name query string false "name" @Param version query string false "version" @Param page query int false "page" @Param pageSize query int false "pageSize" @Success 200 {object} doc.ApiResponse @router / [get]

func (*MetaComponentController) Delete

func (c *MetaComponentController) Delete()

@Summary 删除单个组件 @Description 删除单个组件信息 @Param id path int true "id" @Success 200 {object} doc.ApiResponse @router /:id [delete]

func (*MetaComponentController) DeleteMulti

func (c *MetaComponentController) DeleteMulti()

@Summary 批量删除组件 @Description 批量删除组件 @Param ids query int true "ids" @Param ids query int true "ids" @Success 200 {object} doc.ApiResponse @router / [delete]

func (*MetaComponentController) One

func (c *MetaComponentController) One()

@Summary 获取组件信息 @Description 获取单个组件详细信息 @Param id path int true "id" @Success 200 {object} doc.ApiResponse @router /:id [get]

func (*MetaComponentController) Update

func (c *MetaComponentController) Update()

@Summary 修改组件 @Description 修改组件信息 @Param body body models.MetaComponent true "MetaComponent" @Success 200 {object} doc.ApiResponse @router / [put]

type PropertyController

type PropertyController struct {
	BaseController
}

组件属性

func (*PropertyController) Add

func (c *PropertyController) Add()

@Summary 添加组件属性 @Description 添加组件属性信息 @Param body body models.Property true "Property" @Success 200 {object} doc.ApiResponse @router / [post]

func (*PropertyController) All

func (c *PropertyController) All()

@Summary 获取组件属性列表 @Description 获取所有组件属性列表 @Param variable query string false "variable" @Param label query string false "label" @Param type query string false "type" @Param page query int false "page" @Param pageSize query int false "pageSize" @Success 200 {object} doc.ApiResponse @router / [get]

func (*PropertyController) Delete

func (c *PropertyController) Delete()

@Summary 删除单个组件属性 @Description 删除单个组件属性信息 @Param id path int true "id" @Success 200 {object} doc.ApiResponse @router /:id [delete]

func (*PropertyController) DeleteMulti

func (c *PropertyController) DeleteMulti()

@Summary 批量删除组件属性 @Description 批量删除组件属性 @Param ids query int true "ids" @Param ids query int true "ids" @Success 200 {object} doc.ApiResponse @router / [delete]

func (*PropertyController) One

func (c *PropertyController) One()

@Summary 获取组件属性信息 @Description 获取单个组件属性详细信息 @Param id path int true "id" @Success 200 {object} doc.ApiResponse @router /:id [get]

func (*PropertyController) Update

func (c *PropertyController) Update()

@Summary 添加组件属性 @Description 添加组件属性信息 @Param body body models.Property true "Property" @Success 200 {object} doc.ApiResponse @router / [put]

type UserController

type UserController struct {
	BaseController
}

用户管理

func (*UserController) Add

func (c *UserController) Add()

@Summary 添加用户 @Description 添加用户信息 @Param body body models.User true "User" @Success 200 {object} doc.ApiResponse @router / [post]

func (*UserController) All

func (c *UserController) All()

@Summary 获取用户列表 @Description 获取所有用户列表 @Param username query string false "username" @Param name query string false "name" @Param page query int false "page" @Param pageSize query int false "pageSize" @Success 200 {object} doc.ApiResponse @router / [get]

func (*UserController) Delete

func (c *UserController) Delete()

@Summary 删除单个用户 @Description 删除单个用户信息 @Param id path int true "id" @Success 200 {object} doc.ApiResponse @router /:id [delete]

func (*UserController) DeleteMulti

func (c *UserController) DeleteMulti()

@Summary 批量删除用户 @Description 批量删除用户 @Param ids query int false "ids" @Param ids query int false "ids" @Param username query string false "username" @Param name query string false "name" @Success 200 {object} doc.ApiResponse @router / [delete]

func (*UserController) GetUserInfo

func (c *UserController) GetUserInfo()

@Summary 获取登录用户信息 @Description 获取登录用户信息 @Success 200 {object} doc.ApiResponse @router /getUserInfo [get]

func (*UserController) Login

func (c *UserController) Login()

@Summary 用户登录 @Description 用户登录 @Param body body models.User true "User" @Success 200 {object} doc.ApiResponse @router /login [post]

func (*UserController) Logout

func (c *UserController) Logout()

@Summary 用户登出 @Description 用户登出 @Success 200 {object} doc.ApiResponse @router /logout [post]

func (*UserController) One

func (c *UserController) One()

@Summary 获取用户信息 @Description 获取单个用户详细信息 @Param id path int true "id" @Success 200 {object} doc.ApiResponse @router /:id [get]

Jump to

Keyboard shortcuts

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