controllers

package
v0.0.0-...-f352d09 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PermissionList

func PermissionList() []models.Permission

Types

type Account

type Account struct {
	Base
}

func (*Account) Login

func (a *Account) Login(c *gin.Context)

func (*Account) Register

func (a *Account) Register(c *gin.Context)

type Base

type Base struct {
	Engine *xorm.Engine
	Config config.Config
	Logger utils.ILogger
}

type File

type File struct {
	Base
}

func (*File) Delete

func (f *File) Delete(c *gin.Context)

func (*File) Find

func (f *File) Find(c *gin.Context)

func (*File) ResizeImage

func (f *File) ResizeImage(c *gin.Context)

func (*File) Upload

func (f *File) Upload(c *gin.Context)

type Role

type Role struct {
	Base
}

func (*Role) AddPermissions

func (r *Role) AddPermissions(c *gin.Context)

func (*Role) AddUser

func (r *Role) AddUser(c *gin.Context)

func (*Role) Create

func (r *Role) Create(c *gin.Context)

func (*Role) Delete

func (r *Role) Delete(c *gin.Context)

func (*Role) DeletePermissions

func (r *Role) DeletePermissions(c *gin.Context)

func (*Role) DeleteUsers

func (r *Role) DeleteUsers(c *gin.Context)

func (*Role) List

func (r *Role) List(c *gin.Context)

func (*Role) Permissions

func (r *Role) Permissions(c *gin.Context)

func (*Role) Users

func (r *Role) Users(c *gin.Context)

type User

type User struct {
	Base
}

func (*User) Active

func (u *User) Active(c *gin.Context)

disable user

func (*User) Get

func (u *User) Get(c *gin.Context)

func (*User) List

func (u *User) List(c *gin.Context)

liist all user is_active 1/0

func (*User) Me

func (u *User) Me(c *gin.Context)

func (*User) Roles

func (u *User) Roles(c *gin.Context)

Jump to

Keyboard shortcuts

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