Documentation ¶
Index ¶
- Constants
- type BaseController
- func (ctx *BaseController) Abort500(err error)
- func (c *BaseController) GetMustString(key string, msg string) string
- func (ctx *BaseController) JSONOk(msg string, actions ...string)
- func (ctx *BaseController) JSONOkData(count int, data interface{})
- func (ctx *BaseController) JSONOkH(msg string, maps H)
- func (ctx *BaseController) MustLogin()
- func (ctx *BaseController) Prepare()
- func (this *BaseController) UUID() string
- type ErrorController
- type H
- type IndexController
- type MessageController
- type NestPreparer
- type NoteController
- type PraiseController
- type ResultJsonValue
- type UploadController
- type UploadimgFroala
- type UserController
Constants ¶
View Source
const ( PATH_IMAGE = "assert/images" PATH_VIDEO = "assert/videos" PATH_FILE = "assert/files" )
View Source
const SESSION_USER_KEY = "SESSION_USER_KEY"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
func (*BaseController) Abort500 ¶
func (ctx *BaseController) Abort500(err error)
func (*BaseController) GetMustString ¶
func (c *BaseController) GetMustString(key string, msg string) string
func (*BaseController) JSONOk ¶
func (ctx *BaseController) JSONOk(msg string, actions ...string)
func (*BaseController) JSONOkData ¶
func (ctx *BaseController) JSONOkData(count int, data interface{})
func (*BaseController) JSONOkH ¶
func (ctx *BaseController) JSONOkH(msg string, maps H)
func (*BaseController) MustLogin ¶
func (ctx *BaseController) MustLogin()
func (*BaseController) Prepare ¶
func (ctx *BaseController) Prepare()
func (*BaseController) UUID ¶
func (this *BaseController) UUID() string
type ErrorController ¶
type ErrorController struct {
BaseController
}
func (*ErrorController) Error404 ¶
func (c *ErrorController) Error404()
func (*ErrorController) Error500 ¶
func (c *ErrorController) Error500()
type IndexController ¶
type IndexController struct {
BaseController
}
func (*IndexController) GetComment ¶
func (c *IndexController) GetComment()
@router /comment/:key [get]
func (*IndexController) GetDetail ¶
func (c *IndexController) GetDetail()
@router /details/:key [get]
type MessageController ¶
type MessageController struct {
BaseController
}
func (*MessageController) NestPrepare ¶
func (ctx *MessageController) NestPrepare()
func (*MessageController) NewMessage ¶
func (ctx *MessageController) NewMessage()
@router /new/?:key [post]
type NestPreparer ¶
type NestPreparer interface {
NestPrepare()
}
type NoteController ¶
type NoteController struct {
BaseController
}
func (*NoteController) NestPrepare ¶
func (ctx *NoteController) NestPrepare()
type PraiseController ¶
type PraiseController struct {
BaseController
}
func (*PraiseController) NestPrepare ¶
func (ctx *PraiseController) NestPrepare()
type ResultJsonValue ¶
type UploadController ¶
type UploadController struct { BaseController ImagesFilePath string VideosFilePath string FilesFilePath string }
func (*UploadController) NestPrepare ¶
func (ctx *UploadController) NestPrepare()
func (*UploadController) UploadFile ¶
func (c *UploadController) UploadFile()
@router /uploadfile [post]
func (*UploadController) UploadImg ¶
func (c *UploadController) UploadImg()
图片上传 @router /uploadimg [post]
type UploadimgFroala ¶
type UploadimgFroala struct {
// contains filtered or unexported fields
}
type UserController ¶
type UserController struct {
BaseController
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.