controllers

package
v0.0.0-...-90eb40b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken() *models.QyToken

获取企业微信通知令牌

func StrParseFloat

func StrParseFloat(s string) float32

func StrParseInt

func StrParseInt(s string) int

字符串转数字

Types

type ConfigController

type ConfigController struct {
	beego.Controller
}

func (*ConfigController) AddSshHost

func (c *ConfigController) AddSshHost()

@Title Post @Description Execute scripts by Name @Param scriptsName path string true "the script you want to run" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /ssh [Post]

func (*ConfigController) SshConfig

func (c *ConfigController) SshConfig()

@Title Get @Description Execute scripts by Name @Param scriptsName path string true "the script you want to run" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /ssh [Get]

type EchartsController

type EchartsController struct {
	beego.Controller
}

func (*EchartsController) Get

func (this *EchartsController) Get()

type ErrorController

type ErrorController struct {
	beego.Controller
}

func (*ErrorController) Error404

func (this *ErrorController) Error404()

404页面处理

type HomeContrller

type HomeContrller struct {
	beego.Controller
}

func (*HomeContrller) Get

func (this *HomeContrller) Get()

type LinuxController

type LinuxController struct {
	beego.Controller
}

func (*LinuxController) ExecCommands

func (c *LinuxController) ExecCommands()

@Title Post @Description Execute scripts by Name @Param scriptsName path string true "the script you want to run" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /ops [Post]

func (*LinuxController) LinuxDetails

func (c *LinuxController) LinuxDetails()

@Title Get @Description Execute scripts by Name @Param scriptsName path string true "the script you want to run" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /details [Get]

func (*LinuxController) LinuxOps

func (c *LinuxController) LinuxOps()

@Title Get @Description Execute scripts by Name @Param scriptsName path string true "the script you want to run" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /ops [Get]

type LogOutController

type LogOutController struct {
	beego.Controller
}

func (*LogOutController) Get

func (this *LogOutController) Get()

type LoginController

type LoginController struct {
	beego.Controller
}

func (*LoginController) Get

func (this *LoginController) Get()

func (*LoginController) Post

func (this *LoginController) Post()

type MainController

type MainController struct {
	beego.Controller
}

func (*MainController) Get

func (c *MainController) Get()

type ProductController

type ProductController struct {
	beego.Controller
}

func (*ProductController) AddProduct

func (c *ProductController) AddProduct()

@Title Get @Description Execute scripts by Name @Param scriptsName path string true "the script you want to run" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /add [Post]

func (*ProductController) GetProduct

func (c *ProductController) GetProduct()

@Title Get @Description Execute scripts by Name @Param scriptsName path string true "the script you want to run" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router / [Get]

type RegisterController

type RegisterController struct {
	beego.Controller
}

func (*RegisterController) Get

func (this *RegisterController) Get()

func (*RegisterController) Post

func (this *RegisterController) Post()

type SalesController

type SalesController struct {
	beego.Controller
}

func (*SalesController) GetSales

func (c *SalesController) GetSales()

@Title Get @Description Execute scripts by Name @Param scriptsName path string true "the script you want to run" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /sales [Get]

type StockController

type StockController struct {
	beego.Controller
}

func (*StockController) Get

func (c *StockController) Get()

func (*StockController) Post

func (c *StockController) Post()

type WechatController

type WechatController struct {
	beego.Controller
}

func (*WechatController) Get

func (c *WechatController) Get()

func (*WechatController) Post

func (c *WechatController) Post()

func (*WechatController) WechatAPI

func (c *WechatController) WechatAPI()

@Title Post @Description Execute scripts by Name @Param scriptsName path string true "the script you want to run" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /send [Post]

Jump to

Keyboard shortcuts

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