controllers

package
v0.0.0-...-28c635c Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2015 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	BaseController
}

func (Admin) AddDepartment

func (c Admin) AddDepartment() revel.Result

func (Admin) AddUser

func (c Admin) AddUser() revel.Result

func (Admin) DelDepartment

func (c Admin) DelDepartment(id int) revel.Result

func (Admin) DelUser

func (c Admin) DelUser(id int) revel.Result

func (Admin) DoAddDepartment

func (c Admin) DoAddDepartment(name, info string, parent_id int) revel.Result

func (Admin) DoAddUser

func (c Admin) DoAddUser(username, password, name, phone, phone1, position, email string, department_id, employment_type, gender, level, is_leader int, join_date, birth_date time.Time) revel.Result

func (Admin) DoEditDepartment

func (c Admin) DoEditDepartment(id int, name, info string, parent_id int) revel.Result

func (Admin) DoEditUser

func (c Admin) DoEditUser(id int, username, password, name, phone, phone1, position, email string, department_id, employment_type, gender, level, is_leader int, join_date, birth_date time.Time) revel.Result

func (Admin) EditDepartment

func (c Admin) EditDepartment(id int) revel.Result

func (Admin) EditUser

func (c Admin) EditUser(id int) revel.Result

func (Admin) Import

func (c Admin) Import() revel.Result

func (Admin) ListDepartment

func (c Admin) ListDepartment() revel.Result

func (Admin) ListUser

func (c Admin) ListUser(limit, offset int) revel.Result

* 用户管理

func (Admin) SetDepartmentLeader

func (c Admin) SetDepartmentLeader() revel.Result

type App

type App struct {
	BaseController
}

func (App) AddLeave

func (c App) AddLeave() revel.Result

func (App) CheckLeave

func (c App) CheckLeave() revel.Result

func (App) DoAddLeave

func (c App) DoAddLeave(reason string, leave_type int, startdate, enddate time.Time, address string, onway_date int, filepath string) revel.Result

func (App) DoCheckLeave

func (c App) DoCheckLeave(id int, action string) revel.Result

func (App) DoEditProfile

func (c App) DoEditProfile(password, phone, phone1, email string) revel.Result

func (App) EditProfile

func (c App) EditProfile() revel.Result

func (App) ListLeave

func (c App) ListLeave() revel.Result

func (App) ViewCheckDetail

func (c App) ViewCheckDetail(id int) revel.Result

func (App) ViewLeave

func (c App) ViewLeave(id int) revel.Result

type Auth

type Auth struct {
	BaseController
}

func (Auth) DoLogin

func (c Auth) DoLogin(username, password string) revel.Result

func (Auth) Login

func (c Auth) Login() revel.Result

func (Auth) Logout

func (c Auth) Logout() revel.Result

type BaseController

type BaseController struct {
	*revel.Controller
	User        *models.Users
	UserProfile *models.UserProfiles
	IsAdmin     bool
	// contains filtered or unexported fields
}

func (*BaseController) Before

func (c *BaseController) Before() revel.Result

Before is called prior to the controller method

func (*BaseController) GRender

func (c *BaseController) GRender(extraRenderArgs ...interface{}) revel.Result

type G

type G struct {
	Path string
}

type Upload

type Upload struct {
	BaseController
}

func (Upload) DoUploadFile

func (c Upload) DoUploadFile() revel.Result

Jump to

Keyboard shortcuts

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