Percentage.go 1.5 KB

123456789101112131415161718192021222324
  1. package routers
  2. import (
  3. "ERP_storage/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. percentage := beego.NewNamespace("/Percentage",
  8. beego.NSRouter("/List", &controllers.PercentageController{}, "*:Percentage_List"), // 提成列表
  9. beego.NSRouter("/User_List", &controllers.PercentageController{}, "*:Percentage_User_List"), // 提成列表 - 员工
  10. beego.NSRouter("/Get", &controllers.PercentageController{}, "*:Percentage_Get"), // 提成详情
  11. beego.NSRouter("/Add", &controllers.PercentageController{}, "*:Percentage_Add"), // 添加提成
  12. beego.NSRouter("/Edit", &controllers.PercentageController{}, "*:Percentage_Edit"), // 编辑提成
  13. beego.NSRouter("/Del", &controllers.PercentageController{}, "*:Percentage_Del"), // 删除提成
  14. beego.NSRouter("/Admin_Del", &controllers.PercentageController{}, "*:Percentage_Admin_Del"), // 管理员 删除提成
  15. beego.NSRouter("/Approval", &controllers.PercentageController{}, "*:Percentage_Approval"), // 提成审核
  16. beego.NSRouter("/Remit", &controllers.PercentageController{}, "*:Percentage_Remit"), // 打款明细
  17. beego.NSRouter("/User/List", &controllers.PercentageController{}, "*:User_List"), // 提成管理-员工搜索
  18. beego.NSRouter("/Submit_Audit", &controllers.PercentageController{}, "*:Percentage_Submit_Audit"), // 提交审核
  19. )
  20. beego.AddNamespace(percentage)
  21. }