mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:00:54 +00:00
commit
621c25396e
@ -55,6 +55,12 @@ type ControllerComments struct {
|
||||
MethodParams []*param.MethodParam
|
||||
}
|
||||
|
||||
type ControllerCommentsSlice []ControllerComments
|
||||
|
||||
func (p ControllerCommentsSlice) Len() int { return len(p) }
|
||||
func (p ControllerCommentsSlice) Less(i, j int) bool { return p[i].Router < p[j].Router }
|
||||
func (p ControllerCommentsSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
|
||||
|
||||
// Controller defines some basic http request handler operations, such as
|
||||
// http context, template and view, session and xsrf.
|
||||
type Controller struct {
|
||||
|
Loading…
Reference in New Issue
Block a user