Documentation ¶
Index ¶
- type Admin
- func (c Admin) AddDepartment() revel.Result
- func (c Admin) AddUser() revel.Result
- func (c Admin) DelDepartment(id int) revel.Result
- func (c Admin) DelUser(id int) revel.Result
- func (c Admin) DoAddDepartment(name, info string, parent_id int) revel.Result
- func (c Admin) DoAddUser(username, password, name, phone, phone1, position, email string, ...) revel.Result
- func (c Admin) DoEditDepartment(id int, name, info string, parent_id int) revel.Result
- func (c Admin) DoEditUser(id int, username, password, name, phone, phone1, position, email string, ...) revel.Result
- func (c Admin) EditDepartment(id int) revel.Result
- func (c Admin) EditUser(id int) revel.Result
- func (c Admin) Import() revel.Result
- func (c Admin) ListDepartment() revel.Result
- func (c Admin) ListUser(limit, offset int) revel.Result
- func (c Admin) SetDepartmentLeader() revel.Result
- type App
- func (c App) AddLeave() revel.Result
- func (c App) CheckLeave() revel.Result
- func (c App) DoAddLeave(reason string, leave_type int, startdate, enddate time.Time, address string, ...) revel.Result
- func (c App) DoCheckLeave(id int, action string) revel.Result
- func (c App) DoEditProfile(password, phone, phone1, email string) revel.Result
- func (c App) EditProfile() revel.Result
- func (c App) ListLeave() revel.Result
- func (c App) ViewCheckDetail(id int) revel.Result
- func (c App) ViewLeave(id int) revel.Result
- type Auth
- type BaseController
- type G
- type Upload
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 (Admin) DoAddDepartment ¶
func (Admin) DoEditDepartment ¶
func (Admin) DoEditUser ¶
func (Admin) ListDepartment ¶
func (Admin) SetDepartmentLeader ¶
type App ¶
type App struct {
BaseController
}
func (App) CheckLeave ¶
func (App) DoAddLeave ¶
func (App) DoEditProfile ¶
func (App) EditProfile ¶
type Auth ¶
type Auth struct {
BaseController
}
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
Click to show internal directories.
Click to hide internal directories.