Documentation ¶
Index ¶
- Constants
- func Signature(timestamp, nonce string) string
- type AdminController
- type ApiController
- type ArticleController
- type BaseController
- func (this *BaseController) AssignIsAdmin()
- func (this *BaseController) GetIntWithDefault(paramKey string, defaultVal int) int
- func (this *BaseController) JsStorage(action, key string, values ...string)
- func (this *BaseController) Prepare()
- func (this *BaseController) SetPaginator(per int, nums int64) *paginator.Paginator
- type CatalogController
- type Checker
- type LoginController
- type LoveLetterController
- type MainController
- type MeController
- type Request
- type Response
- type WeiXinController
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 ¶
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 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 ¶
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)
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()
Click to show internal directories.
Click to hide internal directories.