Documentation ¶
Index ¶
- type Controller
- func (this *Controller) Add(req *http.Request) (int, []byte)
- func (this *Controller) Get(param martini.Params) (int, []byte)
- func (this *Controller) Gets(req *http.Request) (int, []byte)
- func (this *Controller) Type(req *http.Request, param martini.Params) (int, []byte)
- func (this *Controller) Update(param martini.Params, req *http.Request) (int, []byte)
- func (this *Controller) User(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 /apps (user) [post]
func (*Controller) Get ¶
func (this *Controller) Get(param martini.Params) (int, []byte)
获取 @router /apps/:path [get]
func (*Controller) Gets ¶
func (this *Controller) Gets(req *http.Request) (int, []byte)
获取总分类信息 @router /apps [get]
func (*Controller) User ¶
func (this *Controller) User(session sessions.Session, res http.ResponseWriter)
获取登陆用户信息
Click to show internal directories.
Click to hide internal directories.