router.go 865 B

1234567891011121314151617181920212223242526
  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. beego.NSRouter("/UpFileToken", &controllers.UpFileController{}, "*:ConfigUpFileToken"),
  10. beego.NSRouter("/Flow_Pool", &controllers.UserController{}, "*:Flow_Pool"), // 流量池
  11. // 系统日志
  12. beego.NSRouter("/System/LogsClass", &controllers.LogsController{}, "*:LogsClass"), // 获取未读消息
  13. beego.NSRouter("/System/LogsList", &controllers.LogsController{}, "*:LogsList"), // 获取未读消息
  14. // 操作日志
  15. beego.NSRouter("/System/UserLogsClass", &controllers.LogsController{}, "*:UserLogsClass"), // 获取未读消息
  16. beego.NSRouter("/System/UserLogsList", &controllers.LogsController{}, "*:UserLogsList"), // 获取未读消息
  17. )
  18. beego.AddNamespace(ns)
  19. }