controllers

package
v0.0.0-...-7fa1929 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2015 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	BaseController
}

func (App) Index

func (c App) Index() revel.Result

type Auth

type Auth struct {
	BaseController
}

func (Auth) ChangePassword

func (c Auth) ChangePassword(oldPassword, newPassword string) revel.Result

func (Auth) GetPassword

func (c Auth) GetPassword(username, newPassword, smsCode string) revel.Result

func (Auth) Login

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

func (Auth) Logout

func (c Auth) Logout() revel.Result

func (Auth) Reg

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

type BaseController

type BaseController struct {
	*revel.Controller
	User *models.Users
}

func (*BaseController) Before

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

Before is called prior to the controller method

func (*BaseController) Err

func (c *BaseController) Err(message string) revel.Result

func (*BaseController) OK

func (c *BaseController) OK(o interface{}) revel.Result

type Comm

type Comm struct {
	BaseController
}

func (Comm) SendSms

func (c Comm) SendSms(username string) revel.Result

func (Comm) Upload

func (c Comm) Upload(fileType string) revel.Result

上传文件

type CompaniesAndPorjects

type CompaniesAndPorjects struct {
	Companys *lib.MyCompanies            `json:"companys"`
	Projects map[string][]models.Project `json:"projects"`
}

type Company

type Company struct {
	BaseController
}

func (Company) Add

func (c Company) Add(name, info, phone, address, logo string) revel.Result

func (Company) Detail

func (c Company) Detail(id int) revel.Result

func (Company) Id

func (c Company) Id(id int) revel.Result

func (Company) List

func (c Company) List() revel.Result

func (Company) ListMyCompanies

func (c Company) ListMyCompanies() revel.Result

func (Company) Update

func (c Company) Update(id int, name, info, phone, address string) revel.Result
func (c Company) UpdateLogo(id int, logo string) revel.Result

type CompanyDetail

type CompanyDetail struct {
	Company      models.Company        `json:"company"`
	Projects     []models.Project      `json:"projects"`
	UserProfiles []models.UserProfiles `json:"userProfiles"`
}

type CompanyUsers

type CompanyUsers struct {
	BaseController
}

func (CompanyUsers) Add

func (c CompanyUsers) Add(companyId, userId int) revel.Result

func (CompanyUsers) AddByCompanyName

func (c CompanyUsers) AddByCompanyName(companyName string, userId int) revel.Result

func (CompanyUsers) Check

func (c CompanyUsers) Check(companyId, userId int) revel.Result

func (CompanyUsers) Delete

func (c CompanyUsers) Delete(companyId, userId int) revel.Result

func (CompanyUsers) List

func (c CompanyUsers) List(companyId int) revel.Result

type Project

type Project struct {
	BaseController
}

func (Project) Add

func (c Project) Add(companyId int, name, info string) revel.Result

func (Project) Detail

func (c Project) Detail(companyId, id int) revel.Result

func (Project) Id

func (c Project) Id(id int) revel.Result

func (Project) ListByCompany

func (c Project) ListByCompany(companyId int) revel.Result

func (Project) ListByOwner

func (c Project) ListByOwner() revel.Result

func (Project) ListCompanyAndProject

func (c Project) ListCompanyAndProject() revel.Result

func (Project) Update

func (c Project) Update(id int, name, info string) revel.Result

type ProjectDetail

type ProjectDetail struct {
	Project      *models.Project                `json:"project"`
	Tasks        []models.Task                  `json:"tasks"`
	UserProfiles map[string]models.UserProfiles `json:"userProfiles"`
}

type Task

type Task struct {
	BaseController
}

func (Task) Add

func (c Task) Add(companyId, projectId, priority, inChargeUserId int, name, info string, deadline time.Time) revel.Result

func (Task) Detail

func (c Task) Detail(companyId, taskId int) revel.Result

func (Task) Done

func (c Task) Done(companyId, taskId int) revel.Result

func (Task) ListTodo

func (c Task) ListTodo() revel.Result

我负责的、未完成的

type TaskDetail

type TaskDetail struct {
	Task              models.Task                    `json:"task"`
	TaskTransfers     []models.TaskTransfer          `json:"taskTransfers"`
	TaskTransferUsers map[string]models.UserProfiles `json:"taskTransferUsers"`
	Owner             models.UserProfiles            `json:"owner"`
	InChargeUser      models.UserProfiles            `json:"inChargeUser"`
	Company           models.Company                 `json:"company"`
	Project           models.Project                 `json:"project"`
}

type TaskTransfer

type TaskTransfer struct {
	BaseController
}

func (TaskTransfer) Add

func (c TaskTransfer) Add(companyId, taskId, assignTo int, info string) revel.Result

func (TaskTransfer) ListByTaskId

func (c TaskTransfer) ListByTaskId(taskId int) revel.Result

func (TaskTransfer) Read

func (c TaskTransfer) Read(companyId, taskId int) revel.Result

修改为已读

func (TaskTransfer) UpdateProgress

func (c TaskTransfer) UpdateProgress(companyId, taskId, progress int, info string) revel.Result

type TodoList

type TodoList struct {
	TasksInCharge  []models.Task                  `json:"tasksInCharge"`
	TasksOwnedByMe []models.Task                  `json:"tasksOwnedByMe"`
	Users          map[string]models.UserProfiles `json:"users"`
	Projects       map[string]models.Project      `json:"projects"`
	Transfers      map[string]models.TaskTransfer `json:"transfers"`
}

type UploadInfo

type UploadInfo struct {
	RealPath string `json:"realPath"`
	// contains filtered or unexported fields
}

type User

type User struct {
	BaseController
}

func (User) EditProfile

func (c User) EditProfile(name, phone, avatar, avatar_thumb1, avatar_thumb2 string) revel.Result

func (User) Index

func (c User) Index() revel.Result

func (User) Me

func (c User) Me() revel.Result

type UserInfo

type UserInfo struct {
	User        *models.Users        `json:"user"`
	UserProfile *models.UserProfiles `json:"userProfile"`
}

Jump to

Keyboard shortcuts

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