Documentation ¶
Index ¶
- type AttachmentController
- type AuthorController
- type BaseController
- type CollectionController
- type DocumentController
- type FollowController
- type ImageController
- type JsonResponse
- type MainController
- type PageController
- type SpaceController
- func (this *SpaceController) AddMember()
- func (this *SpaceController) Collection()
- func (this *SpaceController) Document()
- func (this *SpaceController) Index()
- func (this *SpaceController) List()
- func (this *SpaceController) Member()
- func (this *SpaceController) ModifyMember()
- func (this *SpaceController) RemoveMember()
- func (this *SpaceController) Search()
- type TemplateController
- func (this *TemplateController) DebugLog(message string)
- func (this *TemplateController) ErrorLog(message string)
- func (this *TemplateController) GetClientIp() string
- func (this *TemplateController) GetDocumentPrivilege(space map[string]string) (isVisit, isEditor, isManager bool)
- func (this *TemplateController) GetLogInfoByCtx() map[string]interface{}
- func (this *TemplateController) GetRangeInt(key string, def int, min int, max int) (n int, err error)
- func (this *TemplateController) InfoLog(message string)
- func (this *TemplateController) IsGet() bool
- func (this *TemplateController) IsPost() bool
- func (this *TemplateController) IsRoot() bool
- func (this *TemplateController) JsonError(message interface{}, data ...interface{})
- func (this *TemplateController) JsonSuccess(message interface{}, data ...interface{})
- func (this *TemplateController) Prepare()
- func (this *TemplateController) RecordLog(message string, level int)
- func (this *TemplateController) SetPaginator(per int, nums int64) *utils.Paginator
- func (this *TemplateController) ViewError(content string, redirect ...string)
- func (this *TemplateController) ViewLayout(viewName, layout string)
- func (this *TemplateController) WarningLog(message string)
- type UploadJsonResponse
- type UploadResponse
- type UserController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachmentController ¶ added in v0.1.3
type AttachmentController struct {
BaseController
}
func (*AttachmentController) Delete ¶ added in v0.1.3
func (this *AttachmentController) Delete()
func (*AttachmentController) Download ¶ added in v0.1.3
func (this *AttachmentController) Download()
func (*AttachmentController) Image ¶ added in v0.1.3
func (this *AttachmentController) Image()
func (*AttachmentController) Page ¶ added in v0.1.3
func (this *AttachmentController) Page()
func (*AttachmentController) Upload ¶ added in v0.1.3
func (this *AttachmentController) Upload()
type AuthorController ¶
type AuthorController struct {
BaseController
}
type BaseController ¶
type BaseController struct {
TemplateController
}
type CollectionController ¶
type CollectionController struct {
BaseController
}
func (*CollectionController) Add ¶
func (this *CollectionController) Add()
func (*CollectionController) Cancel ¶
func (this *CollectionController) Cancel()
type DocumentController ¶
type DocumentController struct {
BaseController
}
type FollowController ¶
type FollowController struct {
BaseController
}
func (*FollowController) Add ¶
func (this *FollowController) Add()
func (*FollowController) Cancel ¶
func (this *FollowController) Cancel()
type ImageController ¶
type ImageController struct {
BaseController
}
func (*ImageController) Upload ¶
func (this *ImageController) Upload()
type JsonResponse ¶
type MainController ¶
type MainController struct {
BaseController
}
func (*MainController) About ¶
func (this *MainController) About()
func (*MainController) Default ¶
func (this *MainController) Default()
func (*MainController) Index ¶
func (this *MainController) Index()
type PageController ¶
type PageController struct {
BaseController
}
type SpaceController ¶
type SpaceController struct {
BaseController
}
func (*SpaceController) AddMember ¶
func (this *SpaceController) AddMember()
func (*SpaceController) Collection ¶
func (this *SpaceController) Collection()
func (*SpaceController) Document ¶
func (this *SpaceController) Document()
func (*SpaceController) Index ¶
func (this *SpaceController) Index()
func (*SpaceController) List ¶
func (this *SpaceController) List()
func (*SpaceController) Member ¶
func (this *SpaceController) Member()
func (*SpaceController) ModifyMember ¶
func (this *SpaceController) ModifyMember()
func (*SpaceController) RemoveMember ¶
func (this *SpaceController) RemoveMember()
func (*SpaceController) Search ¶
func (this *SpaceController) Search()
type TemplateController ¶
type TemplateController struct { beego.Controller UserId string User map[string]string // contains filtered or unexported fields }
func (*TemplateController) DebugLog ¶
func (this *TemplateController) DebugLog(message string)
func (*TemplateController) ErrorLog ¶
func (this *TemplateController) ErrorLog(message string)
func (*TemplateController) GetClientIp ¶
func (this *TemplateController) GetClientIp() string
get client ip
func (*TemplateController) GetDocumentPrivilege ¶
func (this *TemplateController) GetDocumentPrivilege(space map[string]string) (isVisit, isEditor, isManager bool)
func (*TemplateController) GetLogInfoByCtx ¶ added in v0.1.2
func (this *TemplateController) GetLogInfoByCtx() map[string]interface{}
func (*TemplateController) GetRangeInt ¶ added in v0.1.3
func (*TemplateController) InfoLog ¶
func (this *TemplateController) InfoLog(message string)
func (*TemplateController) JsonError ¶
func (this *TemplateController) JsonError(message interface{}, data ...interface{})
return json error
func (*TemplateController) JsonSuccess ¶
func (this *TemplateController) JsonSuccess(message interface{}, data ...interface{})
return json success
func (*TemplateController) RecordLog ¶
func (this *TemplateController) RecordLog(message string, level int)
insert action log
func (*TemplateController) SetPaginator ¶
func (this *TemplateController) SetPaginator(per int, nums int64) *utils.Paginator
paginator
func (*TemplateController) ViewError ¶
func (this *TemplateController) ViewError(content string, redirect ...string)
view layout
func (*TemplateController) ViewLayout ¶
func (this *TemplateController) ViewLayout(viewName, layout string)
view layout
func (*TemplateController) WarningLog ¶
func (this *TemplateController) WarningLog(message string)
type UploadJsonResponse ¶ added in v0.1.3
type UploadResponse ¶
type UserController ¶
type UserController struct {
BaseController
}
func (*UserController) Follow ¶
func (this *UserController) Follow()
func (*UserController) FollowPage ¶
func (this *UserController) FollowPage()
func (*UserController) FollowUser ¶
func (this *UserController) FollowUser()
func (*UserController) Index ¶
func (this *UserController) Index()
func (*UserController) Info ¶
func (this *UserController) Info()
func (*UserController) List ¶
func (this *UserController) List()
Click to show internal directories.
Click to hide internal directories.