Documentation ¶
Index ¶
- type Controller
- func (this *Controller) Add(req *http.Request) (int, []byte)
- func (this *Controller) App(req *http.Request, res http.ResponseWriter)
- func (this *Controller) Category(req *http.Request, res http.ResponseWriter)
- func (this *Controller) Get(param martini.Params) (int, []byte)
- func (this *Controller) Gets(req *http.Request) (int, []byte)
- func (this *Controller) Login(session sessions.Session, res http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { as.Controller // contains filtered or unexported fields }
func New ¶
func New() *Controller
func (*Controller) Add ¶
func (this *Controller) Add(req *http.Request) (int, []byte)
发帖 @router /app/articles (login,category,app) [post]
func (*Controller) App ¶
func (this *Controller) App(req *http.Request, res http.ResponseWriter)
根据分类获取所属app的信息
func (*Controller) Category ¶
func (this *Controller) Category(req *http.Request, res http.ResponseWriter)
获取所属category的信息 @param category
func (*Controller) Get ¶
func (this *Controller) Get(param martini.Params) (int, []byte)
获取 @router /app/articles/:id [get]
func (*Controller) Gets ¶
func (this *Controller) Gets(req *http.Request) (int, []byte)
分页获取 @router /app/articles [get]
func (*Controller) Login ¶
func (this *Controller) Login(session sessions.Session, res http.ResponseWriter)
获取登录用户
Click to show internal directories.
Click to hide internal directories.