Overtime.go 939 B

1234567891011121314151617181920
  1. package routers
  2. import (
  3. "ERP_ams/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. ns := beego.NewNamespace("/Overtime",
  8. beego.NSRouter("/List", &controllers.OvertimeController{}, "*:Overtime_List"), // 管理员审核列表
  9. beego.NSRouter("/User_list", &controllers.OvertimeController{}, "*:Overtime_User_List"), // 用户列表
  10. beego.NSRouter("/Add", &controllers.OvertimeController{}, "*:Overtime_Add"), // 添加加班
  11. beego.NSRouter("/Edit", &controllers.OvertimeController{}, "*:Overtime_Update"), // 修改加班
  12. beego.NSRouter("/Approval", &controllers.OvertimeController{}, "*:Overtime_Approval"), // 加班审批
  13. beego.NSRouter("/Del", &controllers.OvertimeController{}, "*:Overtime_Del"), // 删除加班
  14. beego.NSRouter("/Stat", &controllers.OvertimeController{}, "*:Overtime_Stat"), // 加班统计
  15. )
  16. beego.AddNamespace(ns)
  17. }