beecmf

package module
v0.0.0-...-9031048 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2017 License: MIT Imports: 10 Imported by: 0

README

core

core is a content manage framework of beego!

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AutoRouter

func AutoRouter(c beego.ControllerInterface)

func Run

func Run()

Types

type BaseController

type BaseController struct {
	beego.Controller
}

this is BaseController

func (*BaseController) Display

func (this *BaseController) Display(file string)

func (*BaseController) SetTheme

func (this *BaseController) SetTheme(theme string)

type RestBaseController

type RestBaseController struct {
	beego.Controller
	// contains filtered or unexported fields
}

func (*RestBaseController) CurrentUser

func (this *RestBaseController) CurrentUser() *models.User

func (*RestBaseController) Error

func (this *RestBaseController) Error(message string, data ...interface{})

成功返回, 用法 Error("错误信息") Error("错误信息","跳转链接") Error("错误信息",返回数据struct) Error("错误信息",返回数据struct,"跳转链接")

func (*RestBaseController) Prepare

func (this *RestBaseController) Prepare()

func (*RestBaseController) Success

func (this *RestBaseController) Success(message string, data ...interface{})

成功返回, 用法 Sucsess("成功信息") Success("成功信息","跳转链接") Success("成功信息",返回数据struct) Success("成功信息",返回数据struct,"跳转链接")

func (*RestBaseController) UserId

func (this *RestBaseController) UserId() int64

Directories

Path Synopsis
apps

Jump to

Keyboard shortcuts

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