User.go 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package routers
  2. import (
  3. "ERP_user/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. //-----------
  8. beego.Router("/", &controllers.UserController{}, "*:Login_verification")
  9. beego.Router("/Login_verification", &controllers.UserController{}, "*:Login_verification") // 获取未读消息
  10. //-----------用户管理
  11. beego.Router("/User/List", &controllers.UserController{}, "*:List") //
  12. beego.Router("/User/Get", &controllers.UserController{}, "*:Get") //
  13. beego.Router("/User/Info", &controllers.UserController{}, "*:Info") //
  14. beego.Router("/User/Post", &controllers.UserController{}, "*:Post") //
  15. beego.Router("/User/Add", &controllers.UserController{}, "*:Add") //
  16. beego.Router("/User/Edit", &controllers.UserController{}, "*:Edit") //
  17. beego.Router("/User/Del", &controllers.UserController{}, "*:Del") //
  18. beego.Router("/User/Leave", &controllers.UserController{}, "*:Leave") //离职
  19. //-----------权限管理
  20. beego.Router("/Power/List", &controllers.PowerController{}, "*:List") //
  21. beego.Router("/Power/Get", &controllers.PowerController{}, "*:Get") //
  22. beego.Router("/Power/Add", &controllers.PowerController{}, "*:Add") //
  23. beego.Router("/Power/Edit", &controllers.PowerController{}, "*:Edit") //
  24. beego.Router("/Power/Sys_List", &controllers.PowerController{}, "*:Sys_List") //
  25. beego.Router("/Power/Edit_Menu", &controllers.PowerController{}, "*:Edit_Menu") //
  26. beego.Router("/Power/Del", &controllers.PowerController{}, "*:Del") //
  27. //-----------系统日志管理
  28. beego.Router("/SysLogs/List", &controllers.SysLogsController{}, "*:List") //
  29. beego.Router("/SysLogs/DISTINCT_Class", &controllers.SysLogsController{}, "*:List_DISTINCT_Class") // 获取分类列表
  30. //-----------用户日志管理
  31. beego.Router("/UserLogs/List", &controllers.UserLogsController{}, "*:List") //
  32. beego.Router("/UserLogs/DISTINCT_Class", &controllers.UserLogsController{}, "*:List_DISTINCT_Class") // 获取分类列表
  33. //-----------消息通知
  34. beego.Router("/News/List", &controllers.NewsController{}, "*:List") //
  35. beego.Router("/News/See", &controllers.NewsController{}, "*:See") //
  36. //-----------菜单
  37. beego.Router("/Menu/List", &controllers.MenuController{}, "*:List") // 菜单列表
  38. beego.Router("/Menu/User_List", &controllers.MenuController{}, "*:User_List") // 用户绑定菜单列表
  39. //-----------部门
  40. beego.Router("/Dept/List", &controllers.DeptController{}, "*:List") // 部门列表
  41. //-----------岗位
  42. beego.Router("/Post/List", &controllers.DeptController{}, "*:Post_List") // 岗位列表
  43. }