controllers

package
v0.0.0-...-820c7a4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package controllers .

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseController

type BaseController struct {
	beego.Controller
	Member *models.Member
	Scheme string
}

func (*BaseController) ExecuteViewPathTemplate

func (c *BaseController) ExecuteViewPathTemplate(tplName string, data interface{}) (string, error)

ExecuteViewPathTemplate 执行指定的模板并返回执行结果.

func (*BaseController) JsonResult

func (c *BaseController) JsonResult(errCode int, errMsg string, data ...interface{})

JsonResult 响应 json 结果

func (*BaseController) Prepare

func (c *BaseController) Prepare()

Prepare 预处理.

func (*BaseController) SetMember

func (c *BaseController) SetMember(member models.Member)

SetMember 获取或设置当前登录用户信息,如果 MemberId 小于 0 则标识删除 Session

type DispatcherController

type DispatcherController struct {
	BaseController
}

type SchedulerController

type SchedulerController struct {
	BaseController
}

func (*SchedulerController) Index

func (p *SchedulerController) Index()

type TaskController

type TaskController struct {
	BaseController
}

TaskController .

func (*TaskController) Edit

func (p *TaskController) Edit()

func (*TaskController) Index

func (p *TaskController) Index()

Jump to

Keyboard shortcuts

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