VIVIMAN
2 years ago
12 changed files with 62 additions and 1165 deletions
@ -1,370 +0,0 @@ |
|||||
package routers |
|
||||
|
|
||||
import ( |
|
||||
beego "github.com/beego/beego/v2/server/web" |
|
||||
"github.com/beego/beego/v2/server/web/context/param" |
|
||||
) |
|
||||
|
|
||||
func init() { |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/:id", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/:id", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Captcha", |
|
||||
Router: "/captcha", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Info", |
|
||||
Router: "/info", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Login", |
|
||||
Router: "/login", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Logout", |
|
||||
Router: "/logout", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Build", |
|
||||
Router: "/build", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetTree", |
|
||||
Router: "/tree", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetOne", |
|
||||
Router: "/:id", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Menu", |
|
||||
Router: "/menu", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:ToolsController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:ToolsController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Center", |
|
||||
Router: "/center", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Avatar", |
|
||||
Router: "/updateAvatar", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Pass", |
|
||||
Router: "/updatePass", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
} |
|
@ -1,415 +0,0 @@ |
|||||
package routers |
|
||||
|
|
||||
import ( |
|
||||
beego "github.com/beego/beego/v2/server/web" |
|
||||
"github.com/beego/beego/v2/server/web/context/param" |
|
||||
) |
|
||||
|
|
||||
func init() { |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DeptController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/:id", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:DictDetailController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/:id", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:JobController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Captcha", |
|
||||
Router: "/captcha", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Info", |
|
||||
Router: "/info", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Login", |
|
||||
Router: "/login", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:LoginController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Logout", |
|
||||
Router: "/logout", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Build", |
|
||||
Router: "/build", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:MenuController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetTree", |
|
||||
Router: "/tree", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetOne", |
|
||||
Router: "/:id", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:RoleController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Menu", |
|
||||
Router: "/menu", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Center", |
|
||||
Router: "/center", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Avatar", |
|
||||
Router: "/updateAvatar", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/admin:UserController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Pass", |
|
||||
Router: "/updatePass", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetAll", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "CpPost", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Post", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"post"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Put", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Delete", |
|
||||
Router: "/", |
|
||||
AllowHTTPMethods: []string{"delete"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "GetOne", |
|
||||
Router: "/:id", |
|
||||
AllowHTTPMethods: []string{"get"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"] = append(beego.GlobalControllerRouter["viviman.top/controllers/vivib:LiCaiController"], |
|
||||
beego.ControllerComments{ |
|
||||
Method: "Menu", |
|
||||
Router: "/menu", |
|
||||
AllowHTTPMethods: []string{"put"}, |
|
||||
MethodParams: param.Make(), |
|
||||
Filters: nil, |
|
||||
Params: nil}) |
|
||||
|
|
||||
} |
|
@ -0,0 +1,8 @@ |
|||||
|
|
||||
|
手动配置 swagger |
||||
|
|
||||
|
#### 代码启动 |
||||
|
```shell |
||||
|
# 重写controllers |
||||
|
bee run -gendoc=true -downdoc=true |
||||
|
``` |
@ -1,94 +1,13 @@ |
|||||
<template> |
<template> |
||||
<div class="app-container"> |
<div class="app-container li-cai"> |
||||
|
<el-table :data="tableData" style="width: 100%"> |
||||
<!--工具栏--> |
<el-table-column prop="date" label="日期" width="180"></el-table-column> |
||||
<div class="head-container"> |
<el-table-column prop="name" label="姓名" width="180"></el-table-column> |
||||
<div v-if="crud.props.searchToggle"> |
<el-table-column prop="address" label="地址"></el-table-column> |
||||
<!-- 搜索 --> |
</el-table> |
||||
<el-input v-model="query.blurry" size="small" clearable placeholder="输入名称搜索" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" /> |
|
||||
|
|
||||
<rrOperation :crud="crud" /> |
|
||||
</div> |
|
||||
<crudOperation :permission="permission" /> |
|
||||
</div> |
|
||||
|
|
||||
<!-- 表单渲染 --> |
|
||||
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="520px"> |
|
||||
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="80px"> |
|
||||
<el-form-item label="角色名称" prop="name"> |
|
||||
<el-input v-model="form.name" style="width: 145px;" /> |
|
||||
</el-form-item> |
|
||||
<el-form-item label="角色权限" prop="permission"> |
|
||||
<el-input v-model="form.permission" style="width: 145px;" /> |
|
||||
</el-form-item> |
|
||||
<el-form-item v-if="form.dataScope === '自定义'" label="数据权限" prop="depts"> |
|
||||
<treeselect v-model="form.depts" :options="depts" multiple style="width: 380px" placeholder="请选择"/> |
|
||||
</el-form-item> |
|
||||
<el-form-item label="描述信息" prop="remark"> |
|
||||
<el-input v-model="form.remark" style="width: 380px;" rows="5" type="textarea"/> |
|
||||
</el-form-item> |
|
||||
</el-form> |
|
||||
<div slot="footer" class="dialog-footer"> |
|
||||
<el-button type="text" @click="crud.cancelCU">取消</el-button> |
|
||||
<el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">确认</el-button> |
|
||||
</div> |
|
||||
</el-dialog> |
|
||||
|
|
||||
<el-row :gutter="15"> |
|
||||
<!--角色管理--> |
|
||||
<el-col :xs="24" :sm="24" :md="16" :lg="16" :xl="17" style="margin-bottom: 10px"> |
|
||||
<el-card class="box-card" shadow="never"> |
|
||||
<div slot="header" class="clearfix"> |
|
||||
<span class="role-span">角色列表</span> |
|
||||
</div> |
|
||||
<el-table ref="table" v-loading="crud.loading" highlight-current-row style="width: 100%;" :data="crud.data" |
|
||||
@selection-change="crud.selectionChangeHandler" @current-change="handleCurrentChange"> |
|
||||
<el-table-column :selectable="checkboxT" type="selection" width="55" /> |
|
||||
<el-table-column v-if="columns.visible('name')" prop="name" label="名称" /> |
|
||||
<el-table-column v-if="columns.visible('permission')" prop="permission" label="角色权限" /> |
|
||||
<el-table-column v-if="columns.visible('remark')" :show-overflow-tooltip="true" prop="remark" label="描述" /> |
|
||||
<el-table-column v-if="columns.visible('createTime')" :show-overflow-tooltip="true" width="135px" prop="createTime" label="创建日期"> |
|
||||
<template slot-scope="scope"> |
|
||||
<span>{{ parseTime(scope.row.createTime) }}</span> |
|
||||
</template> |
|
||||
</el-table-column> |
|
||||
<el-table-column v-permission="['admin','roles:edit','roles:del']" label="操作" width="130px" align="center" fixed="right"> |
|
||||
<template slot-scope="scope"> |
|
||||
<udOperation :data="scope.row" :permission="permission"/> |
|
||||
</template> |
|
||||
</el-table-column> |
|
||||
</el-table> |
|
||||
<!--分页组件--> |
|
||||
<pagination /> |
|
||||
</el-card> |
|
||||
</el-col> |
|
||||
|
|
||||
<!-- 菜单授权 --> |
|
||||
<el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="7"> |
|
||||
<el-card class="box-card" shadow="never"> |
|
||||
<div slot="header" class="clearfix"> |
|
||||
<el-tooltip class="item" effect="dark" content="选择指定角色分配菜单" placement="top"> |
|
||||
<span class="role-span">菜单分配</span> |
|
||||
</el-tooltip> |
|
||||
<el-button v-permission="['admin','roles:edit']" :disabled="!showButton" :loading="menuLoading" |
|
||||
icon="el-icon-check" size="mini" style="float: right; padding: 6px 9px" type="primary" @click="saveMenu">保存</el-button> |
|
||||
</div> |
|
||||
<el-tree ref="menu" :data="menus" :default-checked-keys="menuIds" :props="defaultProps" |
|
||||
show-checkbox node-key="id"/> |
|
||||
</el-card> |
|
||||
</el-col> |
|
||||
</el-row> |
|
||||
</div> |
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script type="text/javascript" src="./licaiJs.js"></script> |
<script type="text/javascript" src="./licaiJs.js"></script> |
||||
|
|
||||
<style rel="stylesheet/scss" lang="scss"> |
<style rel="stylesheet/scss" lang="scss" src="./licaiCss.scss"></style> |
||||
.role-span { |
|
||||
font-weight: bold;color: #303133; |
|
||||
font-size: 15px; |
|
||||
} |
|
||||
/deep/ .el-input-number .el-input__inner { |
|
||||
text-align: left; |
|
||||
} |
|
||||
</style> |
|
||||
|
@ -0,0 +1,15 @@ |
|||||
|
.li-cai { |
||||
|
|
||||
|
.role-span { |
||||
|
font-weight: bold; |
||||
|
color: #303133; |
||||
|
font-size: 15px; |
||||
|
} |
||||
|
|
||||
|
.el-input-number { |
||||
|
.el-input__inner { |
||||
|
text-align: left; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
Loading…
Reference in new issue