controllers

package
v0.0.0-...-5148cd7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2014 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TOKEN    = "wechat_print_only_key"
	Text     = "text"
	Location = "location"
	Image    = "image"
	Link     = "link"
	Event    = "event"
	Music    = "music"
	News     = "news"
)
View Source
const (
	CATALOG_IMG_DIR = "static/uploads/catalogs"
)
View Source
const (
	EDITOR_IMG_DIR = "static/uploads/editor"
)

Variables

This section is empty.

Functions

func Signature

func Signature(timestamp, nonce string) string

Types

type AdminController

type AdminController struct {
	BaseController
}

func (*AdminController) CheckLogin

func (this *AdminController) CheckLogin()

type ApiController

type ApiController struct {
	BaseController
}

func (*ApiController) Health

func (this *ApiController) Health()

func (*ApiController) Markdown

func (this *ApiController) Markdown()

func (*ApiController) Md5

func (this *ApiController) Md5()

func (*ApiController) Upload

func (this *ApiController) Upload()

type ArticleController

type ArticleController struct {
	AdminController
}

func (*ArticleController) Add

func (this *ArticleController) Add()

func (*ArticleController) Del

func (this *ArticleController) Del()

func (*ArticleController) DoAdd

func (this *ArticleController) DoAdd()

func (*ArticleController) DoEdit

func (this *ArticleController) DoEdit()

func (*ArticleController) Draft

func (this *ArticleController) Draft()

func (*ArticleController) Edit

func (this *ArticleController) Edit()

type BaseController

type BaseController struct {
	beego.Controller
	IsAdmin bool
}

func (*BaseController) AssignIsAdmin

func (this *BaseController) AssignIsAdmin()

func (*BaseController) GetIntWithDefault

func (this *BaseController) GetIntWithDefault(paramKey string, defaultVal int) int

func (*BaseController) JsStorage

func (this *BaseController) JsStorage(action, key string, values ...string)

func (*BaseController) Prepare

func (this *BaseController) Prepare()

func (*BaseController) SetPaginator

func (this *BaseController) SetPaginator(per int, nums int64) *paginator.Paginator

type CatalogController

type CatalogController struct {
	AdminController
}

func (*CatalogController) Add

func (this *CatalogController) Add()

func (*CatalogController) Del

func (this *CatalogController) Del()

func (*CatalogController) DoAdd

func (this *CatalogController) DoAdd()

func (*CatalogController) DoEdit

func (this *CatalogController) DoEdit()

func (*CatalogController) Edit

func (this *CatalogController) Edit()

type Checker

type Checker interface {
	CheckLogin()
}

type LoginController

type LoginController struct {
	BaseController
}

func (*LoginController) DoLogin

func (this *LoginController) DoLogin()

func (*LoginController) Login

func (this *LoginController) Login()

func (*LoginController) Logout

func (this *LoginController) Logout()

type LoveLetterController

type LoveLetterController struct {
	beego.Controller
}

func (*LoveLetterController) Get

func (this *LoveLetterController) Get()

func (*LoveLetterController) Post

func (this *LoveLetterController) Post()

type MainController

type MainController struct {
	BaseController
}

func (*MainController) Get

func (this *MainController) Get()

func (*MainController) ListByCatalog

func (this *MainController) ListByCatalog()

func (*MainController) Read

func (this *MainController) Read()

type MeController

type MeController struct {
	AdminController
}

func (*MeController) Default

func (this *MeController) Default()

type Request

type Request struct {
	XMLName xml.Name `xml:"xml"`

	Location_X, Location_Y float32
	Scale                  int
	Label                  string
	PicUrl                 string
	MsgId                  int
	// contains filtered or unexported fields
}

func DecodeRequest

func DecodeRequest(data []byte) (req *Request, err error)

type Response

type Response struct {
	XMLName xml.Name `xml:"xml"`

	ArticleCount int     `xml:",omitempty"`
	Articles     []*item `xml:"Articles>item,omitempty"`
	FuncFlag     int
	// contains filtered or unexported fields
}

func NewResponse

func NewResponse() (resp *Response)

func (Response) Encode

func (resp Response) Encode() (data []byte, err error)

type WeiXinController

type WeiXinController struct {
	beego.Controller
}

func (*WeiXinController) Get

func (this *WeiXinController) Get()

func (*WeiXinController) IsValid

func (this *WeiXinController) IsValid() (bool, string)

func (*WeiXinController) Post

func (this *WeiXinController) Post()

Jump to

Keyboard shortcuts

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