Documentation ¶
Index ¶
- Constants
- type Account
- func (c *Account) DoLogin(username, password, return_to string) r.Result
- func (c *Account) DoLoginBrowserID(assertion, return_to string) r.Result
- func (c *Account) DoSignup(account *models.Account, password, return_to string) r.Result
- func (c *Account) Login(return_to string) r.Result
- func (c *Account) Logout(return_to string) r.Result
- func (c *Account) Reauth(code string, id string) r.Result
- func (c *Account) Signup(return_to string) r.Result
- type AdminDomain
- type Callback
- type CallbackError
- type CommonDomain
- type Dashboard
- type Filter
- type Organization
- type PlatformAdmin
- type PlatformDomain
- func (c *PlatformDomain) CheckAccessProject(user, project string) (u *models.PlatformUser, p *models.Project, access int16, po *repo.Platform)
- func (c *PlatformDomain) CheckAccessProjectAndClose(user, project string) (*models.PlatformUser, *models.Project, int16)
- func (c *PlatformDomain) CheckAccessProjectRenderArgs(user, project string) (*models.PlatformUser, *models.Project, *repo.Platform)
- func (c *PlatformDomain) CheckAccessProjectRenderArgsAndClose(user, project string) (*models.PlatformUser, *models.Project)
- func (c *PlatformDomain) CheckProject(user, project string) (mProject *models.Project, po *repo.Platform)
- func (c *PlatformDomain) CheckProjectAndClose(user, project string) *models.Project
- func (c *PlatformDomain) CheckUser() (u *models.PlatformUser, po *repo.Platform)
- func (c *PlatformDomain) CheckUserAndClose() *models.PlatformUser
- type PlatformUser
- type Project
- func (c Project) Create() r.Result
- func (c Project) CreateLink() r.Result
- func (c Project) Delete(user, project string) r.Result
- func (c Project) DoCreate(project *models.Project) r.Result
- func (c Project) DoDelete(user, project string) r.Result
- func (c Project) Explore() r.Result
- func (c Project) ListLink() r.Result
- func (c Project) Rename(user, project string) r.Result
- func (c Project) Setting(user, project string) r.Result
- func (c Project) Show(user, project string) r.Result
- type Resource
- type Source
- type Target
Constants ¶
View Source
const ( USERNAME = "user" EMAIL = "email" ACCOUNTID = "aid" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct{ CommonDomain }
总账户接口 姿势: BrowserID(persona) -> Account -> AppUser
func (*Account) DoLoginBrowserID ¶
BrowserID协议登录
type AdminDomain ¶
type AdminDomain struct{ CommonDomain }
后台管理
func (*AdminDomain) CheckAdmin ¶
func (c *AdminDomain) CheckAdmin() (u *models.Account, po *repo.Common)
管理员身份验证持久化
func (*AdminDomain) CheckAdminAndClose ¶
func (c *AdminDomain) CheckAdminAndClose() (u *models.Account)
管理员身份验证持久化
type CallbackError ¶
type CallbackError struct { Url string `json:"url"` Code int `json:"code"` Msg string `json:"msg"` }
错误信息
type CommonDomain ¶
type CommonDomain struct{ *r.Controller }
边缘层
func (*CommonDomain) CheckAccount ¶
func (c *CommonDomain) CheckAccount() (u *models.Account, po *repo.Common)
账号状态
func (*CommonDomain) CheckAccountAndClose ¶
func (c *CommonDomain) CheckAccountAndClose() *models.Account
账号状态
func (*CommonDomain) Return ¶
func (c *CommonDomain) Return(return_to string) r.Result
返回Referer页或者return_to页
func (*CommonDomain) SetLogin ¶
func (c *CommonDomain) SetLogin(account *models.Account)
func (*CommonDomain) SetLogout ¶
func (c *CommonDomain) SetLogout()
type Dashboard ¶
type Dashboard struct{ PlatformDomain }
type Organization ¶
type Organization struct{ PlatformDomain }
type PlatformAdmin ¶
type PlatformAdmin struct{ AdminDomain }
平台管理
func (*PlatformAdmin) Index ¶
func (c *PlatformAdmin) Index() r.Result
type PlatformDomain ¶
type PlatformDomain struct{ CommonDomain }
平台
func (*PlatformDomain) CheckAccessProject ¶
func (c *PlatformDomain) CheckAccessProject(user, project string) (u *models.PlatformUser, p *models.Project, access int16, po *repo.Platform)
检查权限
func (*PlatformDomain) CheckAccessProjectAndClose ¶
func (c *PlatformDomain) CheckAccessProjectAndClose(user, project string) (*models.PlatformUser, *models.Project, int16)
检查权限
func (*PlatformDomain) CheckAccessProjectRenderArgs ¶
func (c *PlatformDomain) CheckAccessProjectRenderArgs(user, project string) (*models.PlatformUser, *models.Project, *repo.Platform)
检查编辑权限 setter
func (*PlatformDomain) CheckAccessProjectRenderArgsAndClose ¶
func (c *PlatformDomain) CheckAccessProjectRenderArgsAndClose(user, project string) (*models.PlatformUser, *models.Project)
检查编辑权限 setter
func (*PlatformDomain) CheckProject ¶
func (c *PlatformDomain) CheckProject(user, project string) (mProject *models.Project, po *repo.Platform)
统一参数解析 mProject setter
func (*PlatformDomain) CheckProjectAndClose ¶
func (c *PlatformDomain) CheckProjectAndClose(user, project string) *models.Project
统一参数解析 mProject setter
func (*PlatformDomain) CheckUser ¶
func (c *PlatformDomain) CheckUser() (u *models.PlatformUser, po *repo.Platform)
用户状态
func (*PlatformDomain) CheckUserAndClose ¶
func (c *PlatformDomain) CheckUserAndClose() *models.PlatformUser
用户状态
Source Files ¶
Click to show internal directories.
Click to hide internal directories.