Documentation ¶
Index ¶
- type App
- type Auth
- func (c Auth) ChangePassword(oldPassword, newPassword string) revel.Result
- func (c Auth) GetPassword(username, newPassword, smsCode string) revel.Result
- func (c Auth) Login(username, password string) revel.Result
- func (c Auth) Logout() revel.Result
- func (c Auth) Reg(username, password, smsCode string) revel.Result
- type BaseController
- type Comm
- type CompaniesAndPorjects
- type Company
- func (c Company) Add(name, info, phone, address, logo string) revel.Result
- func (c Company) Detail(id int) revel.Result
- func (c Company) Id(id int) revel.Result
- func (c Company) List() revel.Result
- func (c Company) ListMyCompanies() revel.Result
- 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 CompanyUsers
- func (c CompanyUsers) Add(companyId, userId int) revel.Result
- func (c CompanyUsers) AddByCompanyName(companyName string, userId int) revel.Result
- func (c CompanyUsers) Check(companyId, userId int) revel.Result
- func (c CompanyUsers) Delete(companyId, userId int) revel.Result
- func (c CompanyUsers) List(companyId int) revel.Result
- type Project
- func (c Project) Add(companyId int, name, info string) revel.Result
- func (c Project) Detail(companyId, id int) revel.Result
- func (c Project) Id(id int) revel.Result
- func (c Project) ListByCompany(companyId int) revel.Result
- func (c Project) ListByOwner() revel.Result
- func (c Project) ListCompanyAndProject() revel.Result
- func (c Project) Update(id int, name, info string) revel.Result
- type ProjectDetail
- type Task
- type TaskDetail
- type TaskTransfer
- func (c TaskTransfer) Add(companyId, taskId, assignTo int, info string) revel.Result
- func (c TaskTransfer) ListByTaskId(taskId int) revel.Result
- func (c TaskTransfer) Read(companyId, taskId int) revel.Result
- func (c TaskTransfer) UpdateProgress(companyId, taskId, progress int, info string) revel.Result
- type TodoList
- type UploadInfo
- type User
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
BaseController
}
func (Auth) ChangePassword ¶
func (Auth) GetPassword ¶
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) OK ¶
func (c *BaseController) OK(o interface{}) revel.Result
type Comm ¶
type Comm struct {
BaseController
}
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) ListMyCompanies ¶
type CompanyDetail ¶
type CompanyUsers ¶
type CompanyUsers struct {
BaseController
}
func (CompanyUsers) AddByCompanyName ¶
func (c CompanyUsers) AddByCompanyName(companyName string, userId int) revel.Result
type Project ¶
type Project struct {
BaseController
}
func (Project) ListByOwner ¶
func (Project) ListCompanyAndProject ¶
type ProjectDetail ¶
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) UpdateProgress ¶
func (c TaskTransfer) UpdateProgress(companyId, taskId, progress int, info string) revel.Result
type UploadInfo ¶
type UploadInfo struct { RealPath string `json:"realPath"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.