controllers

package
v0.0.0-...-66cb340 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2015 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IMG_EXT = []string{"jpg", "jpeg", "png", "bmp", "webp", "JPG", "JPEG", "PNG", "BMP", "WEBP"}
View Source
var LAST_LOGIN_TIME = time.Now().Unix()
View Source
var LOGIN_COUNT = 0
View Source
var LOGIN_LOCK_TIMES int
View Source
var PAGE_SIZE int
View Source
var RELOGIN_PERIOD int64

Functions

This section is empty.

Types

type BaseController

type BaseController struct {
	beego.Controller
}

type ErrorController

type ErrorController struct {
	beego.Controller
}

func (*ErrorController) Error403

func (c *ErrorController) Error403()

func (*ErrorController) Error404

func (c *ErrorController) Error404()

type FrontMessage

type FrontMessage struct {
	PostId    string `json:"postId"`
	PostTitle string `json:"postTitle"`
	GuestName string `json:"guestName"`
	Content   string `json:"content"`
}

type FrontPeply

type FrontPeply struct {
	MessageId string `json:"messageId"`
	Reply     string `json:"reply"`
}

type FrontPost

type FrontPost struct {
	Id      string `json:"id"`
	Title   string `json:"title"`
	Tag     string `json:"tag"`
	Content string `json:"content"`
}

type MainController

type MainController struct {
	BaseController
}

func (*MainController) DeleteMessage

func (this *MainController) DeleteMessage()

func (*MainController) DeletePost

func (this *MainController) DeletePost()

func (*MainController) Get

func (this *MainController) Get()

func (*MainController) ImgUp

func (this *MainController) ImgUp()

func (*MainController) ListMessage

func (this *MainController) ListMessage()

func (*MainController) LoginPage

func (this *MainController) LoginPage()

func (*MainController) Logout

func (this *MainController) Logout()

func (*MainController) Main

func (this *MainController) Main()

func (*MainController) MessagePage

func (this *MainController) MessagePage()

func (*MainController) PostPage

func (this *MainController) PostPage()

func (*MainController) ReplyMessage

func (this *MainController) ReplyMessage()

func (*MainController) ResetPwd

func (this *MainController) ResetPwd()

func (*MainController) SavePost

func (this *MainController) SavePost()

func (*MainController) UserPage

func (this *MainController) UserPage()

func (*MainController) UserUpdate

func (this *MainController) UserUpdate()

func (*MainController) ValidUser

func (this *MainController) ValidUser()

func (*MainController) WritePage

func (this *MainController) WritePage()

type PostController

type PostController struct {
	BaseController
}

func (*PostController) ListPosts

func (this *PostController) ListPosts()

func (*PostController) OnePost

func (this *PostController) OnePost()

func (*PostController) Posts

func (this *PostController) Posts()

func (*PostController) SubmitMsg

func (this *PostController) SubmitMsg()

type ResEntity

type ResEntity struct {
	Success bool        `json:"success"`
	Msg     string      `json:"msg"`
	Data    interface{} `json:"data"`
}

type ResPost

type ResPost struct {
	Post     *models.Post      `json:"post"`
	Messages *[]models.Message `json:"messages"`
}

type UserControlelr

type UserControlelr struct {
	BaseController
}

func (*UserControlelr) Author

func (this *UserControlelr) Author()

Jump to

Keyboard shortcuts

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