User.go 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package routers
  2. import (
  3. "Cold_Api/conf"
  4. "Cold_Api/controllers"
  5. beego "github.com/beego/beego/v2/server/web"
  6. )
  7. func init() {
  8. ns := beego.NewNamespace(conf.Version,
  9. //---------------------------------- 用户管理
  10. // 用户
  11. beego.NSRouter("/Login_verification", &controllers.AdminController{}, "*:Login_verification"),
  12. beego.NSRouter("/User/Home", &controllers.UserController{}, "*:User_Home"), // 主页
  13. beego.NSRouter("/User/Info", &controllers.UserController{}, "*:User_Info"), // 个人信息
  14. beego.NSRouter("/User/Post", &controllers.UserController{}, "*:User_Post"), // 修改个人信息
  15. beego.NSRouter("/User/WxQRCode", &controllers.UserController{}, "*:User_WxQRCode"), // 获取微信二维码
  16. beego.NSNamespace("/User",
  17. beego.NSBefore(T_pidFilter),
  18. beego.NSRouter("/List", &controllers.UserController{}, "*:User_List"), // 用户列表
  19. beego.NSRouter("/Get", &controllers.UserController{}, "*:User_Get"), // 获取用户信息
  20. beego.NSRouter("/Add", &controllers.UserController{}, "*:User_Add"), // 增加用户
  21. beego.NSRouter("/Edit", &controllers.UserController{}, "*:User_Edit"), // 编辑用户
  22. beego.NSRouter("/Del", &controllers.UserController{}, "*:User_Del"), // 删除用户
  23. beego.NSRouter("/Bind_Device", &controllers.UserController{}, "*:UserDeviceBind_Add"), // 绑定主机
  24. beego.NSRouter("/Unbind_Device", &controllers.UserController{}, "*:UserDeviceBind_Del"), // 解绑主机
  25. beego.NSRouter("/Bind_Device_List", &controllers.UserController{}, "*:UserDeviceBind_List"), // 已绑定主机列表
  26. beego.NSRouter("/Unbind_Device_List", &controllers.UserController{}, "*:UserDeviceUnbind_List"), // 未绑定主机列表
  27. ),
  28. beego.NSRouter("/Admin/List", &controllers.UserController{}, "*:Admin_List"), // 内部用户列表
  29. beego.NSRouter("/Admin/Get", &controllers.UserController{}, "*:Admin_Get"), // 获取内部用户信息
  30. beego.NSRouter("/Admin/Add", &controllers.UserController{}, "*:Admin_Add"), // 增加内部用户
  31. beego.NSRouter("/Admin/Edit", &controllers.UserController{}, "*:Admin_Edit"), // 编辑内部用户
  32. beego.NSRouter("/Admin/Del", &controllers.UserController{}, "*:Admin_Del"), // 删除内部用户
  33. // 内部用户公司绑定
  34. beego.NSRouter("/Admin/CompanyBind_List", &controllers.UserController{}, "*:AdminCompanyBind_List"), // 内部用户公司绑定列表
  35. beego.NSRouter("/Admin/CompanyBind_Add", &controllers.UserController{}, "*:AdminCompanyBind_Add"), // 添加内部用户公司绑定
  36. beego.NSRouter("/Admin/CompanyBind_Del", &controllers.UserController{}, "*:AdminCompanyBind_Del"), // 删除内部用户公司绑定
  37. // 权限
  38. beego.NSRouter("/Power/List", &controllers.UserController{}, "*:Power_List"), // 权限列表
  39. beego.NSRouter("/Power/List_All", &controllers.UserController{}, "*:Power_List_All"), // 所有权限列表
  40. beego.NSRouter("/Power/Get", &controllers.UserController{}, "*:Power_Get"), // 获取权限
  41. beego.NSRouter("/Power/Add", &controllers.UserController{}, "*:Power_Add"), // 添加权限
  42. beego.NSRouter("/Power/Edit", &controllers.UserController{}, "*:Power_Edit"), // 编辑权限
  43. beego.NSRouter("/Power/Del", &controllers.UserController{}, "*:Power_Del"), // 删除权限
  44. // 菜单
  45. beego.NSRouter("/Menu/List", &controllers.UserController{}, "*:User_Menu_List"), // 用户权限绑定的菜单
  46. beego.NSRouter("/Menu/List_All", &controllers.UserController{}, "*:Menu_List_All"), // 权限管理-菜单列表
  47. beego.NSRouter("/Menu/Excel", &controllers.UserController{}, "*:Menu_Excel"), // 导出菜单列表
  48. // 公司管理
  49. beego.NSRouter("/Company/Tree", &controllers.UserController{}, "*:Company_Tree"), // 公司列表
  50. beego.NSRouter("/Company/List", &controllers.UserController{}, "*:Company_List"), // 所有公司列表
  51. beego.NSRouter("/Company/Transport/List", &controllers.UserController{}, "*:Company_Transport_List"), // 运输公司列表
  52. beego.NSRouter("/Company/Add", &controllers.UserController{}, "*:Company_Add"), // 添加公司
  53. beego.NSRouter("/Company/Get", &controllers.UserController{}, "*:Company_Get"), // 添加公司
  54. beego.NSRouter("/Company/Edit", &controllers.UserController{}, "*:Company_Edit"), // 修改公司
  55. beego.NSRouter("/Company/Del", &controllers.UserController{}, "*:Company_Del"), // 删除公司
  56. beego.NSRouter("/Company/Entry", &controllers.UserController{}, "*:Company_Entry"), // 删除公司
  57. beego.NSRouter("/Company/Bill_Excel", &controllers.UserController{}, "*:CompanyBill_Excel"), // 公司账单
  58. beego.NSRouter("/Company/DigitalTwin", &controllers.UserController{}, "*:Company_DigitalTwin"), // 数字孪生
  59. beego.NSRouter("/Company/Pay", &controllers.UserController{}, "*:Company_Pay"), // 充值
  60. beego.NSRouter("/Company/Warning", &controllers.UserController{}, "*:Company_Warning"), // 报警统计
  61. beego.NSRouter("/Company/Charging", &controllers.UserController{}, "*:Company_Charging"), // 报警统计
  62. beego.NSRouter("/WxPay/Get_QRCode", &controllers.UserController{}, "*:WxPay_QRCode"), // 获取微信支付二维码
  63. beego.NSRouter("/WxPay/Notify", &controllers.UserController{}, "*:WxPay_Notify"), // 获取微信支付二维码
  64. beego.NSRouter("/WxPay/GetOrderState", &controllers.UserController{}, "*:WxPay_GetOrderState"), // 获取微信支付状态
  65. )
  66. beego.AddNamespace(ns)
  67. }