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) Get(param martini.Params) (int, []byte)
- func (this *Controller) Gets(req *http.Request) (int, []byte)
- func (this *Controller) Owner(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/categorys (app,owner) [post]
func (*Controller) App ¶
func (this *Controller) App(req *http.Request, res http.ResponseWriter)
获取所属app信息
func (*Controller) Get ¶
func (this *Controller) Get(param martini.Params) (int, []byte)
@router /app/categorys/:id [get]
func (*Controller) Gets ¶
func (this *Controller) Gets(req *http.Request) (int, []byte)
@router /app/categorys [get]
func (*Controller) Owner ¶
func (this *Controller) Owner(session sessions.Session, res http.ResponseWriter)
必须是所有者
Click to show internal directories.
Click to hide internal directories.