123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- package routers
- import (
- "Cold_Api/conf"
- "Cold_Api/controllers"
- beego "github.com/beego/beego/v2/server/web"
- )
- func init() {
- ns := beego.NewNamespace(conf.Version,
- //---------------------------------- 用户管理
- // 用户
- beego.NSRouter("/Login_verification", &controllers.AdminController{}, "*:Login_verification"),
- beego.NSRouter("/User/Home", &controllers.UserController{}, "*:User_Home"), // 主页
- beego.NSRouter("/User/Info", &controllers.UserController{}, "*:User_Info"), // 个人信息
- beego.NSRouter("/User/Post", &controllers.UserController{}, "*:User_Post"), // 修改个人信息
- beego.NSRouter("/User/WxQRCode", &controllers.UserController{}, "*:User_WxQRCode"), // 获取微信二维码
- beego.NSNamespace("/User",
- beego.NSBefore(T_pidFilter),
- beego.NSRouter("/List", &controllers.UserController{}, "*:User_List"), // 用户列表
- beego.NSRouter("/Get", &controllers.UserController{}, "*:User_Get"), // 获取用户信息
- beego.NSRouter("/Add", &controllers.UserController{}, "*:User_Add"), // 增加用户
- beego.NSRouter("/Edit", &controllers.UserController{}, "*:User_Edit"), // 编辑用户
- beego.NSRouter("/Del", &controllers.UserController{}, "*:User_Del"), // 删除用户
- beego.NSRouter("/Bind_Device", &controllers.UserController{}, "*:UserDeviceBind_Add"), // 绑定主机
- beego.NSRouter("/Unbind_Device", &controllers.UserController{}, "*:UserDeviceBind_Del"), // 解绑主机
- beego.NSRouter("/Bind_Device_List", &controllers.UserController{}, "*:UserDeviceBind_List"), // 已绑定主机列表
- beego.NSRouter("/Unbind_Device_List", &controllers.UserController{}, "*:UserDeviceUnbind_List"), // 未绑定主机列表
- ),
- beego.NSRouter("/Admin/List", &controllers.UserController{}, "*:Admin_List"), // 内部用户列表
- beego.NSRouter("/Admin/Get", &controllers.UserController{}, "*:Admin_Get"), // 获取内部用户信息
- beego.NSRouter("/Admin/Add", &controllers.UserController{}, "*:Admin_Add"), // 增加内部用户
- beego.NSRouter("/Admin/Edit", &controllers.UserController{}, "*:Admin_Edit"), // 编辑内部用户
- beego.NSRouter("/Admin/Del", &controllers.UserController{}, "*:Admin_Del"), // 删除内部用户
- // 内部用户公司绑定
- beego.NSRouter("/Admin/CompanyBind_List", &controllers.UserController{}, "*:AdminCompanyBind_List"), // 内部用户公司绑定列表
- beego.NSRouter("/Admin/CompanyBind_Add", &controllers.UserController{}, "*:AdminCompanyBind_Add"), // 添加内部用户公司绑定
- beego.NSRouter("/Admin/CompanyBind_Del", &controllers.UserController{}, "*:AdminCompanyBind_Del"), // 删除内部用户公司绑定
- // 权限
- beego.NSRouter("/Power/List", &controllers.UserController{}, "*:Power_List"), // 权限列表
- beego.NSRouter("/Power/List_All", &controllers.UserController{}, "*:Power_List_All"), // 所有权限列表
- beego.NSRouter("/Power/Get", &controllers.UserController{}, "*:Power_Get"), // 获取权限
- beego.NSRouter("/Power/Add", &controllers.UserController{}, "*:Power_Add"), // 添加权限
- beego.NSRouter("/Power/Edit", &controllers.UserController{}, "*:Power_Edit"), // 编辑权限
- beego.NSRouter("/Power/Del", &controllers.UserController{}, "*:Power_Del"), // 删除权限
- // 菜单
- beego.NSRouter("/Menu/List", &controllers.UserController{}, "*:User_Menu_List"), // 用户权限绑定的菜单
- beego.NSRouter("/Menu/List_All", &controllers.UserController{}, "*:Menu_List_All"), // 权限管理-菜单列表
- beego.NSRouter("/Menu/Excel", &controllers.UserController{}, "*:Menu_Excel"), // 导出菜单列表
- // 公司管理
- beego.NSRouter("/Company/Tree", &controllers.UserController{}, "*:Company_Tree"), // 公司列表
- beego.NSRouter("/Company/List", &controllers.UserController{}, "*:Company_List"), // 所有公司列表
- beego.NSRouter("/Company/Transport/List", &controllers.UserController{}, "*:Company_Transport_List"), // 运输公司列表
- beego.NSRouter("/Company/Add", &controllers.UserController{}, "*:Company_Add"), // 添加公司
- beego.NSRouter("/Company/Get", &controllers.UserController{}, "*:Company_Get"), // 添加公司
- beego.NSRouter("/Company/Edit", &controllers.UserController{}, "*:Company_Edit"), // 修改公司
- beego.NSRouter("/Company/Del", &controllers.UserController{}, "*:Company_Del"), // 删除公司
- beego.NSRouter("/Company/Entry", &controllers.UserController{}, "*:Company_Entry"), // 删除公司
- beego.NSRouter("/Company/Bill_Excel", &controllers.UserController{}, "*:CompanyBill_Excel"), // 公司账单
- beego.NSRouter("/Company/DigitalTwin", &controllers.UserController{}, "*:Company_DigitalTwin"), // 数字孪生
- beego.NSRouter("/Company/Pay", &controllers.UserController{}, "*:Company_Pay"), // 充值
- beego.NSRouter("/Company/Warning", &controllers.UserController{}, "*:Company_Warning"), // 报警统计
- beego.NSRouter("/Company/Charging", &controllers.UserController{}, "*:Company_Charging"), // 报警统计
- beego.NSRouter("/WxPay/Get_QRCode", &controllers.UserController{}, "*:WxPay_QRCode"), // 获取微信支付二维码
- beego.NSRouter("/WxPay/Notify", &controllers.UserController{}, "*:WxPay_Notify"), // 获取微信支付二维码
- beego.NSRouter("/WxPay/GetOrderState", &controllers.UserController{}, "*:WxPay_GetOrderState"), // 获取微信支付状态
- )
- beego.AddNamespace(ns)
- }
|