admin

package
v0.0.0-...-2b32d03 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error, result *Result)

Types

type ArticleController

type ArticleController struct {
	beego.Controller
	Params    com.XMap
	Result    *Result
	AdminUser *models.AdminUser
}

func (*ArticleController) Create

func (c *ArticleController) Create()

func (*ArticleController) Finish

func (c *ArticleController) Finish()

func (*ArticleController) List

func (c *ArticleController) List()

func (*ArticleController) One

func (c *ArticleController) One()

func (*ArticleController) Prepare

func (c *ArticleController) Prepare()

type DataList

type DataList []interface{}

type DataMap

type DataMap map[string]interface{}

type IndexController

type IndexController struct {
	beego.Controller
}

func (*IndexController) Index

func (c *IndexController) Index()

type Result

type Result struct {
	Code int         `json:"code"` //0登陆成功
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

func GetResult

func GetResult() *Result

type UserController

type UserController struct {
	beego.Controller
}

func (*UserController) DoLogin

func (c *UserController) DoLogin()

func (*UserController) DoRegist

func (c *UserController) DoRegist()

func (*UserController) Login

func (c *UserController) Login()

func (*UserController) Prepare

func (c *UserController) Prepare()

func (*UserController) Regist

func (c *UserController) Regist()

Jump to

Keyboard shortcuts

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