frontend

package
v0.0.0-...-e394574 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: MIT Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	beego.Controller
	FlashBag *beego.FlashData

	CurrentLoginUser *models.Users
	SettingData      map[string]string
	StartTime        int64
	HandlerSeconds   float64
	// contains filtered or unexported fields
}

func (*Base) AjaxError

func (Base *Base) AjaxError(message string, code uint16)

ajax错误返回

func (*Base) AjaxSuccess

func (Base *Base) AjaxSuccess(message string, data interface{})

ajax成功返回

func (*Base) Back

func (Base *Base) Back()

跳转到前一页

func (*Base) ErrorHandler

func (Base *Base) ErrorHandler(err error)

抛出500

func (*Base) Finish

func (Base *Base) Finish()

func (*Base) FlashError

func (Base *Base) FlashError(message string)

保存失败的Flash信息

func (*Base) FlashSuccess

func (Base *Base) FlashSuccess(message string)

保存成功的Flash信息

func (*Base) Prepare

func (Base *Base) Prepare()

func (*Base) RedirectTo

func (Base *Base) RedirectTo(url string)

重定向

func (*Base) ValidatorAuto

func (Base *Base) ValidatorAuto(frontendData interface{})

自动化的表单验证器

type DashboardController

type DashboardController struct {
	Base
}

func (*DashboardController) MemberAnswers

func (this *DashboardController) MemberAnswers()

@router /user/:user_id/answers [get]

func (*DashboardController) MemberQuestions

func (this *DashboardController) MemberQuestions()

@router /user/:user_id [get]

type IndexController

type IndexController struct {
	Base
}

func (*IndexController) CaptchaShow

func (this *IndexController) CaptchaShow()

@router /captcha [get]

func (*IndexController) Index

func (this *IndexController) Index()

@router / [get]

type MemberController

type MemberController struct {
	Base
}

func (*MemberController) Answers

func (this *MemberController) Answers()

@router /member/answers [get]

func (*MemberController) ChangeAvatar

func (this *MemberController) ChangeAvatar()

@router /member/avatar [get]

func (*MemberController) ChangeAvatarHandler

func (this *MemberController) ChangeAvatarHandler()

@router /member/avatar [post]

func (*MemberController) ChangePassword

func (this *MemberController) ChangePassword()

@router /member/password [get]

func (*MemberController) ChangePasswordHandler

func (this *MemberController) ChangePasswordHandler()

@router /member/password [post]

func (*MemberController) Index

func (this *MemberController) Index()

@router /member [get]

func (*MemberController) Logout

func (this *MemberController) Logout()

@router /member/logout [get]

func (*MemberController) Profile

func (this *MemberController) Profile()

@router /member/profile [get]

func (*MemberController) Questions

func (this *MemberController) Questions()

@router /member/questions [get]

func (*MemberController) SaveProfileHandler

func (this *MemberController) SaveProfileHandler()

@router /member/profile [post]

func (*MemberController) SendActiveMail

func (this *MemberController) SendActiveMail()

@router /member/active/mail/send [get]

func (*MemberController) SendActiveMailHandler

func (this *MemberController) SendActiveMailHandler()

@router /member/active/mail/send [post]

type QuestionController

type QuestionController struct {
	Base
}

func (*QuestionController) AnswerHandler

func (this *QuestionController) AnswerHandler()

@router /member/questions/:id [post]

func (*QuestionController) Create

func (this *QuestionController) Create()

@router /member/questions/create [get]

func (*QuestionController) Edit

func (this *QuestionController) Edit()

@router /member/questions/:question_id/edit [get]

func (*QuestionController) Show

func (this *QuestionController) Show()

@router /questions/:id [get]

func (*QuestionController) Store

func (this *QuestionController) Store()

@router /member/questions/create [post]

func (*QuestionController) Update

func (this *QuestionController) Update()

@router /member/questions/:question_id/edit [post]

type UploadController

type UploadController struct {
	Base
}

func (*UploadController) Image

func (this *UploadController) Image()

@router /member/upload/image [post]

func (*UploadController) Prepare

func (this *UploadController) Prepare()

type UserController

type UserController struct {
	Base
}

func (*UserController) ActiveHandler

func (this *UserController) ActiveHandler()

@router /user/active [get]

func (*UserController) FindPassword

func (this *UserController) FindPassword()

@router /password/find [get]

func (*UserController) FindPasswordHandler

func (this *UserController) FindPasswordHandler()

@router /password/find [post]

func (*UserController) Login

func (this *UserController) Login()

@router /login [get]

func (*UserController) LoginHandler

func (this *UserController) LoginHandler()

@router /login [post]

func (*UserController) PasswordReset

func (this *UserController) PasswordReset()

@router /password/reset [get]

func (*UserController) PasswordResetHandler

func (this *UserController) PasswordResetHandler()

@router /password/reset [post]

func (*UserController) Register

func (this *UserController) Register()

@router /register [get]

func (*UserController) RegisterHandler

func (this *UserController) RegisterHandler()

@router /register [post]

Jump to

Keyboard shortcuts

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